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

Issue 2359723006: Make HttpNetworkSession a client of memory coordinator (Closed)

Created:
4 years, 3 months ago by hajimehoshi
Modified:
4 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, xunjieli
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make HttpNetworkSession a client of memory coordinator When the memory coordinator is enabled, HttpNetworkSession becomes a client of the memory coordinator instead of installing MemoryPressureListener. In the implmentation of this CL, both MemoryPressureListener and MemoryCoordinatorClient are installed regardless of the flag, but as default MemoryCoordinator is not enabled and when MemoryCoordinator is enabled by a flag, we plan to suppress MemoryPressureMonitor features. Design Doc: https://docs.google.com/document/d/1a69mMr7jI7qK0OfKNlrZ350xiXizVMCCe8orGX7K8Uo/edit?ts=57d7968b# BUG=639700 Committed: https://crrev.com/8156e7c5f7b94c717ccc4a97eb1dc09f8e6723a6 Cr-Commit-Position: refs/heads/master@{#421761}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address on reviews #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -2 lines) Patch
M net/http/http_network_session.h View 4 chunks +7 lines, -2 lines 0 comments Download
M net/http/http_network_session.cc View 1 3 chunks +21 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (11 generated)
hajimehoshi
PTAL
4 years, 3 months ago (2016-09-23 10:04:54 UTC) #4
Ryan Sleevi
TL;DR: I'm sorry that I've written more feedback than this CL, but I'm not comfortable ...
4 years, 3 months ago (2016-09-23 14:50:19 UTC) #7
haraken
On 2016/09/23 14:50:19, Ryan Sleevi (slow) wrote: > TL;DR: I'm sorry that I've written more ...
4 years, 2 months ago (2016-09-26 00:00:12 UTC) #9
bashi
Ryan, Thank you for the detailed feedback. I tried to address your comments as much ...
4 years, 2 months ago (2016-09-26 02:08:10 UTC) #10
chrisha
On 2016/09/23 14:50:19, Ryan Sleevi (slow) wrote: > TL;DR: I'm sorry that I've written more ...
4 years, 2 months ago (2016-09-26 14:29:38 UTC) #11
Ryan Sleevi
https://codereview.chromium.org/2359723006/diff/1/net/http/http_network_session.cc File net/http/http_network_session.cc (right): https://codereview.chromium.org/2359723006/diff/1/net/http/http_network_session.cc#newcode413 net/http/http_network_session.cc:413: // have such limitation so far though. I often ...
4 years, 2 months ago (2016-09-26 15:15:59 UTC) #12
hajimehoshi
Thank you! (we're discussing interfaces vs callbacks and not conclude yet). https://codereview.chromium.org/2359723006/diff/1/net/http/http_network_session.cc File net/http/http_network_session.cc (right): ...
4 years, 2 months ago (2016-09-27 11:39:29 UTC) #13
hajimehoshi
+haraken
4 years, 2 months ago (2016-09-28 07:41:35 UTC) #16
haraken
Currently we only have only one API, so using callback function would make more sense ...
4 years, 2 months ago (2016-09-28 08:56:04 UTC) #17
Ryan Sleevi
On 2016/09/28 08:56:04, haraken wrote: > Currently we only have only one API, so using ...
4 years, 2 months ago (2016-09-29 01:52:48 UTC) #18
Ryan Sleevi
Despite my nits, I'm going to LGTM, but if and only if one thing gets ...
4 years, 2 months ago (2016-09-29 02:02:09 UTC) #19
Ryan Sleevi
On 2016/09/29 02:02:09, Ryan Sleevi (slow) wrote: > MemoryCoordinatorClient's destructor should be protected-virtual, not public, ...
4 years, 2 months ago (2016-09-29 02:04:47 UTC) #20
bashi
On 2016/09/29 02:04:47, Ryan Sleevi (slow) wrote: > On 2016/09/29 02:02:09, Ryan Sleevi (slow) wrote: ...
4 years, 2 months ago (2016-09-29 02:21:53 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/2359723006/20001
4 years, 2 months ago (2016-09-29 05:19:03 UTC) #23
hajimehoshi
On 2016/09/29 02:21:53, bashi1 wrote: > On 2016/09/29 02:04:47, Ryan Sleevi (slow) wrote: > > ...
4 years, 2 months ago (2016-09-29 05:20:02 UTC) #24
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-29 06:19:04 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 06:21:10 UTC) #28
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8156e7c5f7b94c717ccc4a97eb1dc09f8e6723a6
Cr-Commit-Position: refs/heads/master@{#421761}

Powered by Google App Engine
This is Rietveld 408576698