Reviewers: chrisha (slow), haraken
CL:
https://codereview.chromium.org/2094583002/Message:
PTAL
If this looks ok I'll ask OWNERS reviews.
Description:
Use memory coordinator when --enable-memory-coordinator is specified
This CL adds --enable-memory-coordinator flag which:
- makes the browser connects to a ChildMemoryCoordinator when a renderer is
launched
- disables memory pressure listener on renderers
This CL also adds a blink API for setting memory allocation mode.
A ChildMemoryCoordinator in a renderer calls the API based on memory events it
receives. The API is empty now and it will be implemented in follow-up CLs.
BUG=617492
Base URL:
https://chromium.googlesource.com/chromium/src.git@masterAffected files (+357, -8 lines):
M components/memory_coordinator.gypi
M components/memory_coordinator/DEPS
A + components/memory_coordinator/browser/BUILD.gn
A components/memory_coordinator/browser/memory_state_notifier.h
A components/memory_coordinator/browser/memory_state_notifier.cc
M components/memory_coordinator/child/BUILD.gn
A components/memory_coordinator/child/blink_memory_coordinator_client.h
A components/memory_coordinator/child/blink_memory_coordinator_client.cc
M components/memory_coordinator/child/child_memory_coordinator_impl.h
M components/memory_coordinator/child/child_memory_coordinator_impl.cc
M components/memory_coordinator/public/interfaces/child_memory_coordinator.mojom
M content/browser/BUILD.gn
M content/browser/DEPS
M content/browser/browser_main_loop.h
M content/browser/browser_main_loop.cc
A content/browser/memory/memory_state_notifier_browsertest.cc
M content/browser/renderer_host/render_process_host_impl.cc
M content/content_browser.gypi
M content/content_renderer.gypi
M content/content_tests.gypi
M content/public/common/content_switches.h
M content/public/common/content_switches.cc
M content/renderer/BUILD.gn
M content/renderer/DEPS
M content/renderer/render_thread_impl.cc
M content/test/BUILD.gn
M third_party/WebKit/Source/web/WebMemoryCoordinator.cpp
M third_party/WebKit/public/web/WebMemoryCoordinator.h