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

Issue 2679903002: Replace OnMemoryStateChange() with OnPurgeMemory() in net/ (Closed)

Created:
3 years, 10 months ago by bashi
Modified:
3 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace OnMemoryStateChange() with OnPurgeMemory() in net/ When we implemented MemoryCoordinatorClients in net/, there was only one callback called OnMemoryStateChange(). Recently we added another callback called OnPurgeMemory() to handle "existing allocations" and "future allocations" separately (See [1] for the motivation). This CL replaces OnMemoryStateChange() with OnPurgeMemory() because all clients in net/ actually free up memory. Note: MemoryCoordinatorClient and MemoryPressureListener won't be enabled at the same time. This means that either OnMemoryPressure() or OnPurgeMemory() can be called. [1] https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/project-trim/s96xSirL2Hs/18uq1zfHEgAJ BUG=684287, 617492 Review-Url: https://codereview.chromium.org/2679903002 Cr-Commit-Position: refs/heads/master@{#449178} Committed: https://chromium.googlesource.com/chromium/src/+/56b23f3064d47916ee13dadbbb7e87e2d15b80fd

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -51 lines) Patch
M net/http/http_network_session.h View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_network_session.cc View 1 chunk +2 lines, -16 lines 0 comments Download
M net/sdch/sdch_owner.h View 1 chunk +1 line, -1 line 1 comment Download
M net/sdch/sdch_owner.cc View 1 chunk +2 lines, -16 lines 0 comments Download
M net/ssl/ssl_client_session_cache.h View 1 chunk +1 line, -1 line 0 comments Download
M net/ssl/ssl_client_session_cache.cc View 1 chunk +2 lines, -16 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
bashi
rsleevi@: haraken@ is working on adding documents right now. Would you please review this CL ...
3 years, 10 months ago (2017-02-07 08:11:41 UTC) #4
Ryan Sleevi
LGTM thanks :) (Sorry for the delay; reviewing the documentation CL first helped me understand ...
3 years, 10 months ago (2017-02-08 17:05:59 UTC) #7
xunjieli
https://codereview.chromium.org/2679903002/diff/1/net/sdch/sdch_owner.h File net/sdch/sdch_owner.h (right): https://codereview.chromium.org/2679903002/diff/1/net/sdch/sdch_owner.h#newcode166 net/sdch/sdch_owner.h:166: void OnMemoryPressure( These three classes all subscribe to MemoryPressureListener ...
3 years, 10 months ago (2017-02-08 17:26:51 UTC) #9
Ryan Sleevi
On 2017/02/08 17:26:51, xunjieli wrote: > https://codereview.chromium.org/2679903002/diff/1/net/sdch/sdch_owner.h > File net/sdch/sdch_owner.h (right): > > https://codereview.chromium.org/2679903002/diff/1/net/sdch/sdch_owner.h#newcode166 > ...
3 years, 10 months ago (2017-02-08 17:27:37 UTC) #10
bashi
On 2017/02/08 17:27:37, Ryan Sleevi wrote: > On 2017/02/08 17:26:51, xunjieli wrote: > > https://codereview.chromium.org/2679903002/diff/1/net/sdch/sdch_owner.h ...
3 years, 10 months ago (2017-02-08 23:53:09 UTC) #13
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/2679903002/1
3 years, 10 months ago (2017-02-08 23:54:19 UTC) #15
haraken
LGTM
3 years, 10 months ago (2017-02-09 00:51:11 UTC) #16
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 01:26:40 UTC) #19
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/56b23f3064d47916ee13dadbbb7e...

Powered by Google App Engine
This is Rietveld 408576698