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

Issue 1303203002: Add MemoryPurgeController (Closed)

Created:
5 years, 4 months ago by bashi
Modified:
5 years, 4 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add MemoryPurgeController No client so far. Follow-up CLs will add actual clients. Design doc: https://docs.google.com/document/d/1TbtkhXpjw_8lftLwELuEPEgcyWfXuVLuqW2KYJZeaBA/edit?pli=1 Non trivial changes from the design doc: - MemoryPurgeController owns its clients. - Page owns MemoryPurgeController (because core/ and modules/ will want to access MemoryPurgeController to register clients) I chose Page as the owner of the controller because it has the same lifetime of WebView. BUG=520496 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201116

Patch Set 1 #

Total comments: 4

Patch Set 2 : Ready for review #

Patch Set 3 : export #

Total comments: 4

Patch Set 4 : #

Total comments: 13

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -0 lines) Patch
M Source/core/page/Page.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A Source/platform/MemoryPurgeController.h View 1 2 3 4 5 1 chunk +74 lines, -0 lines 0 comments Download
A Source/platform/MemoryPurgeController.cpp View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (4 generated)
bashi
I'm trying to implement MemoryPurgeController. Does this make sense?
5 years, 4 months ago (2015-08-21 08:01:32 UTC) #2
haraken
+tkent-san and dcheng for design review. > - Page owns MemoryPurgeController (because core/ and modules/ ...
5 years, 4 months ago (2015-08-21 12:29:24 UTC) #4
dcheng
On 2015/08/21 at 12:29:24, haraken wrote: > +tkent-san and dcheng for design review. > > ...
5 years, 4 months ago (2015-08-21 15:04:14 UTC) #5
dcheng
https://codereview.chromium.org/1303203002/diff/1/Source/platform/MemoryPurgeController.h File Source/platform/MemoryPurgeController.h (right): https://codereview.chromium.org/1303203002/diff/1/Source/platform/MemoryPurgeController.h#newcode14 Source/platform/MemoryPurgeController.h:14: Inactive, Suggestion: we should prefer enum class for both ...
5 years, 4 months ago (2015-08-21 15:04:19 UTC) #6
haraken
On 2015/08/21 15:04:14, dcheng wrote: > On 2015/08/21 at 12:29:24, haraken wrote: > > +tkent-san ...
5 years, 4 months ago (2015-08-21 15:13:34 UTC) #7
dcheng
On 2015/08/21 at 15:13:34, haraken wrote: > On 2015/08/21 15:04:14, dcheng wrote: > > On ...
5 years, 4 months ago (2015-08-21 15:21:24 UTC) #8
tkent
On 2015/08/21 12:29:24, haraken wrote: > +tkent-san and dcheng for design review. > > > ...
5 years, 4 months ago (2015-08-24 00:03:53 UTC) #9
bashi
Thanks all for feedbacks! PS#3 is ready for review. Could you take another look? https://codereview.chromium.org/1303203002/diff/1/Source/platform/MemoryPurgeController.h ...
5 years, 4 months ago (2015-08-25 02:34:23 UTC) #10
tkent
https://codereview.chromium.org/1303203002/diff/40001/Source/platform/MemoryPurgeController.h File Source/platform/MemoryPurgeController.h (right): https://codereview.chromium.org/1303203002/diff/40001/Source/platform/MemoryPurgeController.h#newcode45 Source/platform/MemoryPurgeController.h:45: void registerClient(MemoryPurgeClient* client) { m_clients.add(client); } Do you allow ...
5 years, 4 months ago (2015-08-25 03:09:31 UTC) #11
bashi
https://codereview.chromium.org/1303203002/diff/40001/Source/platform/MemoryPurgeController.h File Source/platform/MemoryPurgeController.h (right): https://codereview.chromium.org/1303203002/diff/40001/Source/platform/MemoryPurgeController.h#newcode45 Source/platform/MemoryPurgeController.h:45: void registerClient(MemoryPurgeClient* client) { m_clients.add(client); } On 2015/08/25 03:09:31, ...
5 years, 4 months ago (2015-08-25 03:36:44 UTC) #12
tkent
https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h File Source/platform/MemoryPurgeController.h (right): https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h#newcode45 Source/platform/MemoryPurgeController.h:45: void registerClient(MemoryPurgeClient* client) Is it ok to call registerClient/unregisterClient ...
5 years, 4 months ago (2015-08-25 03:45:59 UTC) #13
haraken
LGTM on my side. https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.cpp File Source/platform/MemoryPurgeController.cpp (right): https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.cpp#newcode24 Source/platform/MemoryPurgeController.cpp:24: purgeMemory(MemoryPurgeMode::InactiveTab); This method will be ...
5 years, 4 months ago (2015-08-25 03:46:08 UTC) #14
haraken
https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h File Source/platform/MemoryPurgeController.h (right): https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h#newcode51 Source/platform/MemoryPurgeController.h:51: void unregisterClient(MemoryPurgeClient* client) On 2015/08/25 03:45:59, tkent wrote: > ...
5 years, 4 months ago (2015-08-25 03:47:03 UTC) #15
tkent
https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h File Source/platform/MemoryPurgeController.h (right): https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h#newcode51 Source/platform/MemoryPurgeController.h:51: void unregisterClient(MemoryPurgeClient* client) On 2015/08/25 03:47:03, haraken wrote: > ...
5 years, 4 months ago (2015-08-25 03:50:19 UTC) #16
haraken
https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h File Source/platform/MemoryPurgeController.h (right): https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h#newcode51 Source/platform/MemoryPurgeController.h:51: void unregisterClient(MemoryPurgeClient* client) On 2015/08/25 03:50:19, tkent wrote: > ...
5 years, 4 months ago (2015-08-25 03:52:35 UTC) #17
bashi
https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.cpp File Source/platform/MemoryPurgeController.cpp (right): https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.cpp#newcode24 Source/platform/MemoryPurgeController.cpp:24: purgeMemory(MemoryPurgeMode::InactiveTab); On 2015/08/25 03:46:08, haraken wrote: > > This ...
5 years, 4 months ago (2015-08-25 04:52:58 UTC) #18
tkent
https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h File Source/platform/MemoryPurgeController.h (right): https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h#newcode51 Source/platform/MemoryPurgeController.h:51: void unregisterClient(MemoryPurgeClient* client) On 2015/08/25 03:52:35, haraken wrote: > ...
5 years, 4 months ago (2015-08-25 04:58:08 UTC) #19
haraken
On 2015/08/25 04:58:08, tkent wrote: > https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h > File Source/platform/MemoryPurgeController.h (right): > > https://codereview.chromium.org/1303203002/diff/60001/Source/platform/MemoryPurgeController.h#newcode51 > ...
5 years, 4 months ago (2015-08-25 05:05:12 UTC) #20
tkent
On 2015/08/25 05:05:12, haraken wrote: > We're assuming that classes that need to inherit from ...
5 years, 4 months ago (2015-08-25 05:07:21 UTC) #21
bashi
On 2015/08/25 05:07:21, tkent wrote: > On 2015/08/25 05:05:12, haraken wrote: > > We're assuming ...
5 years, 4 months ago (2015-08-25 05:11:27 UTC) #22
tkent
lgtm
5 years, 4 months ago (2015-08-25 05:12:30 UTC) #23
bashi
Thanks!
5 years, 4 months ago (2015-08-25 05:28:36 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303203002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303203002/100001
5 years, 4 months ago (2015-08-25 05:28:53 UTC) #27
commit-bot: I haz the power
5 years, 4 months ago (2015-08-25 09:34:50 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201116

Powered by Google App Engine
This is Rietveld 408576698