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

Issue 2363353002: Document memory coordinator (Closed)

Created:
4 years, 2 months ago by bashi
Modified:
4 years, 2 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, gavinp+memory_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Document memory coordinator The current headers lack explanations of thread guarantees, lifetime management, and how to implement MemoryCoordinatorClient. Add these explanations. Also, this CL stops exposing ClientList from MemoryCoordinatorClientRegistry. BUG=617492 Committed: https://crrev.com/0cf58aaf5fd61c0047cbe51d3a484f01607b43ec Cr-Commit-Position: refs/heads/master@{#421099}

Patch Set 1 #

Total comments: 14

Patch Set 2 : comments #

Total comments: 2

Patch Set 3 : could -> can #

Total comments: 2

Patch Set 4 : comments #

Total comments: 9

Patch Set 5 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -9 lines) Patch
M base/memory/memory_coordinator_client.h View 1 2 3 4 2 chunks +23 lines, -2 lines 0 comments Download
M base/memory/memory_coordinator_client_registry.h View 1 2 chunks +17 lines, -5 lines 0 comments Download
M base/memory/memory_coordinator_client_registry.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/memory/child_memory_coordinator_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
bashi
dcheng@: could you review as an owner of base/ ?
4 years, 2 months ago (2016-09-26 02:07:42 UTC) #2
dcheng
https://codereview.chromium.org/2363353002/diff/1/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2363353002/diff/1/base/memory/memory_coordinator_client.h#newcode15 base/memory/memory_coordinator_client.h:15: // respond memory state changes. Unlike MemoryPressureListener, this is ...
4 years, 2 months ago (2016-09-26 04:55:08 UTC) #3
bashi
Thank you for review! https://codereview.chromium.org/2363353002/diff/1/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2363353002/diff/1/base/memory/memory_coordinator_client.h#newcode15 base/memory/memory_coordinator_client.h:15: // respond memory state changes. ...
4 years, 2 months ago (2016-09-26 05:57:22 UTC) #5
dcheng
lgtm https://codereview.chromium.org/2363353002/diff/20001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2363353002/diff/20001/base/memory/memory_coordinator_client.h#newcode35 base/memory/memory_coordinator_client.h:35: // changes. An initial state is NORMAL. See ...
4 years, 2 months ago (2016-09-26 06:01:50 UTC) #6
bashi
(Added chrisha@ and haraken@) Thanks. I'll wait for Ryan's response.
4 years, 2 months ago (2016-09-26 06:17:11 UTC) #8
haraken
Thanks, LGTM on my side
4 years, 2 months ago (2016-09-26 06:21:49 UTC) #9
hajimehoshi
non-owner lgtm https://codereview.chromium.org/2363353002/diff/40001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2363353002/diff/40001/base/memory/memory_coordinator_client.h#newcode16 base/memory/memory_coordinator_client.h:16: // stateful mechanism and clients receive notifications ...
4 years, 2 months ago (2016-09-26 07:08:13 UTC) #11
bashi
https://codereview.chromium.org/2363353002/diff/40001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2363353002/diff/40001/base/memory/memory_coordinator_client.h#newcode16 base/memory/memory_coordinator_client.h:16: // stateful mechanism and clients receive notifications only when ...
4 years, 2 months ago (2016-09-26 07:54:13 UTC) #12
chrisha
https://codereview.chromium.org/2363353002/diff/60001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2363353002/diff/60001/base/memory/memory_coordinator_client.h#newcode16 base/memory/memory_coordinator_client.h:16: // stateful mechanism and clients that receive notifications only ...
4 years, 2 months ago (2016-09-26 14:10:45 UTC) #13
Ryan Sleevi
LGTM w/ Chris' additional suggestions https://codereview.chromium.org/2363353002/diff/60001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2363353002/diff/60001/base/memory/memory_coordinator_client.h#newcode19 base/memory/memory_coordinator_client.h:19: // seconds. On 2016/09/26 ...
4 years, 2 months ago (2016-09-26 15:05:17 UTC) #14
chrisha
On 2016/09/26 15:05:17, Ryan Sleevi (slow) wrote: > LGTM w/ Chris' additional suggestions > > ...
4 years, 2 months ago (2016-09-26 15:10:09 UTC) #15
bashi
Thank you for review Ryan and Chris! I'm going to submit this CL. Please let ...
4 years, 2 months ago (2016-09-26 23:08:10 UTC) #16
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/2363353002/80001
4 years, 2 months ago (2016-09-26 23:09:06 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/284574)
4 years, 2 months ago (2016-09-27 00:12:20 UTC) #21
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/2363353002/80001
4 years, 2 months ago (2016-09-27 00:13:52 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/148627)
4 years, 2 months ago (2016-09-27 02:02:44 UTC) #25
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/2363353002/80001
4 years, 2 months ago (2016-09-27 02:39:50 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-27 04:16:07 UTC) #29
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 04:19:07 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0cf58aaf5fd61c0047cbe51d3a484f01607b43ec
Cr-Commit-Position: refs/heads/master@{#421099}

Powered by Google App Engine
This is Rietveld 408576698