Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1176)

Issue 2149413002: Re-reland: Add MemoryCoordinator (Closed)

Created:
4 years, 5 months ago by bashi
Modified:
4 years, 5 months ago
Reviewers:
haraken, chrisha, jam, dcheng
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, droger+watchlist_chromium.org, viettrungluu+watch_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-reland: Add MemoryCoordinator This is fourth attempt... Pass InterfacePtr instead of InterfaceRegistry to avoid dependency from components/memory_coordinator to shell/services Original description: This CL adds MemoryCoordinator mojo interface and its implementation. When --enable-features=MemoryCoordinator is specified the browser and renderers create their MemoryCoordinators. MemoryCoordinatorImpl (which lives in the browser process) creates a mojo message pipe when a renderer is launched. This CL doesn't add actual handling of memory events, which will be implemented in follow-up CLs. BUG=617492 TBR=chrisha@chromium.org,haraken@chromium.org,dcheng@chromium.org,jam@chromium.org Committed: https://crrev.com/77f19b3affd0f29a77d1db1eebb6cc00e5a45898 Cr-Commit-Position: refs/heads/master@{#406247}

Patch Set 1 #

Patch Set 2 : diff (remove mc -> shell dependency) #

Total comments: 7

Patch Set 3 : rebase #

Patch Set 4 : explicit #

Patch Set 5 : Always pass MemoryCoordinatorHandlePtr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -35 lines) Patch
M components/memory_coordinator.gypi View 1 2 chunks +19 lines, -1 line 0 comments Download
M components/memory_coordinator/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + components/memory_coordinator/browser/BUILD.gn View 1 chunk +9 lines, -3 lines 0 comments Download
A components/memory_coordinator/browser/memory_coordinator.h View 1 chunk +42 lines, -0 lines 0 comments Download
A components/memory_coordinator/browser/memory_coordinator.cc View 1 chunk +56 lines, -0 lines 0 comments Download
M components/memory_coordinator/child/BUILD.gn View 1 1 chunk +4 lines, -1 line 0 comments Download
M components/memory_coordinator/child/child_memory_coordinator_impl.h View 1 2 3 2 chunks +13 lines, -6 lines 0 comments Download
M components/memory_coordinator/child/child_memory_coordinator_impl.cc View 1 2 3 4 1 chunk +16 lines, -5 lines 0 comments Download
M components/memory_coordinator/child/child_memory_coordinator_impl_unittest.cc View 1 2 3 4 5 chunks +46 lines, -19 lines 0 comments Download
M components/memory_coordinator/common/BUILD.gn View 1 chunk +6 lines, -0 lines 0 comments Download
A components/memory_coordinator/common/memory_coordinator_features.h View 1 chunk +24 lines, -0 lines 0 comments Download
A components/memory_coordinator/common/memory_coordinator_features.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M components/memory_coordinator/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A components/memory_coordinator/public/interfaces/memory_coordinator.mojom View 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.h View 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
A content/browser/memory/memory_coordinator_browsertest.cc View 1 chunk +36 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 chunks +14 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
dcheng
https://codereview.chromium.org/2149413002/diff/20001/components/memory_coordinator/child/child_memory_coordinator_impl.cc File components/memory_coordinator/child/child_memory_coordinator_impl.cc (right): https://codereview.chromium.org/2149413002/diff/20001/components/memory_coordinator/child/child_memory_coordinator_impl.cc#newcode12 components/memory_coordinator/child/child_memory_coordinator_impl.cc:12: if (parent_.is_bound()) { (Btw, why would this not be ...
4 years, 5 months ago (2016-07-19 02:14:23 UTC) #7
bashi
https://codereview.chromium.org/2149413002/diff/20001/components/memory_coordinator/child/child_memory_coordinator_impl.cc File components/memory_coordinator/child/child_memory_coordinator_impl.cc (right): https://codereview.chromium.org/2149413002/diff/20001/components/memory_coordinator/child/child_memory_coordinator_impl.cc#newcode12 components/memory_coordinator/child/child_memory_coordinator_impl.cc:12: if (parent_.is_bound()) { On 2016/07/19 02:14:23, dcheng wrote: > ...
4 years, 5 months ago (2016-07-19 02:24:49 UTC) #10
dcheng
https://codereview.chromium.org/2149413002/diff/20001/components/memory_coordinator/child/child_memory_coordinator_impl.cc File components/memory_coordinator/child/child_memory_coordinator_impl.cc (right): https://codereview.chromium.org/2149413002/diff/20001/components/memory_coordinator/child/child_memory_coordinator_impl.cc#newcode12 components/memory_coordinator/child/child_memory_coordinator_impl.cc:12: if (parent_.is_bound()) { On 2016/07/19 02:24:49, bashi1 wrote: > ...
4 years, 5 months ago (2016-07-19 04:54:07 UTC) #13
bashi
https://codereview.chromium.org/2149413002/diff/20001/components/memory_coordinator/child/child_memory_coordinator_impl.cc File components/memory_coordinator/child/child_memory_coordinator_impl.cc (right): https://codereview.chromium.org/2149413002/diff/20001/components/memory_coordinator/child/child_memory_coordinator_impl.cc#newcode12 components/memory_coordinator/child/child_memory_coordinator_impl.cc:12: if (parent_.is_bound()) { On 2016/07/19 04:54:07, dcheng wrote: > ...
4 years, 5 months ago (2016-07-19 06:02:08 UTC) #14
dcheng
LGTM https://codereview.chromium.org/2149413002/diff/20001/components/memory_coordinator/child/child_memory_coordinator_impl.cc File components/memory_coordinator/child/child_memory_coordinator_impl.cc (right): https://codereview.chromium.org/2149413002/diff/20001/components/memory_coordinator/child/child_memory_coordinator_impl.cc#newcode12 components/memory_coordinator/child/child_memory_coordinator_impl.cc:12: if (parent_.is_bound()) { On 2016/07/19 06:02:08, bashi1 wrote: ...
4 years, 5 months ago (2016-07-19 07:19:05 UTC) #15
bashi
tasak@ and tzik@ helped me to build chrome with this CL on win/gyp and it ...
4 years, 5 months ago (2016-07-19 11:14:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2149413002/80001
4 years, 5 months ago (2016-07-19 11:15:06 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-19 11:20:02 UTC) #23
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 11:20:06 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 11:22:58 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/77f19b3affd0f29a77d1db1eebb6cc00e5a45898
Cr-Commit-Position: refs/heads/master@{#406247}

Powered by Google App Engine
This is Rietveld 408576698