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

Issue 129173002: Adds the new URLRequest::OnBeforeNetworkStart hook to the (Closed)

Created:
6 years, 11 months ago by jkarlin
Modified:
6 years, 4 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka, darin-cc_chromium.org, jam, joi+watch-content_chromium.org, willchan no longer on Chromium, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@defer_1_net
Visibility:
Public.

Description

Adds the new URLRequest::OnBeforeNetworkStart hook to the ResourceThrottle so that the ResourceScheduler can eventually throttle closer to the start of network usage. This is the second step in the design doc: https://docs.google.com/document/d/1TSI3jwozVB_nueWJxzi8uKbgDfsGZRZqw8tvtD-P1Iw/edit?usp=sharing The third step is to create the new ResourceScheduler. BUG=328741 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243994

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -1 line) Patch
M content/browser/download/download_resource_handler.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/download/save_file_resource_handler.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/download/save_file_resource_handler.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/loader/async_resource_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/loader/certificate_resource_handler.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/loader/certificate_resource_handler.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/loader/detachable_resource_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/loader/detachable_resource_handler.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/loader/layered_resource_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/loader/layered_resource_handler.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 8 chunks +74 lines, -1 line 0 comments Download
M content/browser/loader/resource_handler.h View 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/loader/resource_loader.h View 2 chunks +3 lines, -0 lines 3 comments Download
M content/browser/loader/resource_loader.cc View 2 chunks +17 lines, -0 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/loader/stream_resource_handler.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/loader/stream_resource_handler.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/loader/sync_resource_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/loader/sync_resource_handler.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/loader/throttling_resource_handler.h View 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/loader/throttling_resource_handler.cc View 3 chunks +42 lines, -0 lines 0 comments Download
M content/public/browser/resource_throttle.h View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 13 (0 generated)
jkarlin
6 years, 11 months ago (2014-01-08 20:02:44 UTC) #1
James Simonsen
lgtm This looks like a great plan. Thanks for tackling this. You might want to ...
6 years, 11 months ago (2014-01-08 23:33:12 UTC) #2
jkarlin
asanka@chromium.org: Please review changes in download/ jochen@chromium.org: Please review changes in content/public/browser willchan@chromium.org: CC'ing you ...
6 years, 11 months ago (2014-01-09 12:16:33 UTC) #3
jochen (gone - plz use gerrit)
lgtm
6 years, 11 months ago (2014-01-09 12:19:40 UTC) #4
asanka
/download/ lgtm
6 years, 11 months ago (2014-01-09 16:06:11 UTC) #5
willchan no longer on Chromium
/cc mmenke I just had one nit about the new URLRequest::Delegate API that's implemented by ...
6 years, 11 months ago (2014-01-09 17:04:02 UTC) #6
mmenke
https://codereview.chromium.org/129173002/diff/1/content/browser/loader/resource_loader.h File content/browser/loader/resource_loader.h (right): https://codereview.chromium.org/129173002/diff/1/content/browser/loader/resource_loader.h#newcode69 content/browser/loader/resource_loader.h:69: virtual void OnBeforeNetworkStart(net::URLRequest* request, On 2014/01/09 17:04:03, willchan wrote: ...
6 years, 11 months ago (2014-01-09 17:52:21 UTC) #7
willchan no longer on Chromium
https://codereview.chromium.org/129173002/diff/1/content/browser/loader/resource_loader.h File content/browser/loader/resource_loader.h (right): https://codereview.chromium.org/129173002/diff/1/content/browser/loader/resource_loader.h#newcode69 content/browser/loader/resource_loader.h:69: virtual void OnBeforeNetworkStart(net::URLRequest* request, On 2014/01/09 17:52:22, mmenke wrote: ...
6 years, 11 months ago (2014-01-09 18:00:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jkarlin@chromium.org/129173002/1
6 years, 11 months ago (2014-01-09 18:34:22 UTC) #9
jkarlin
On 2014/01/09 18:00:35, willchan wrote: > https://codereview.chromium.org/129173002/diff/1/content/browser/loader/resource_loader.h > File content/browser/loader/resource_loader.h (right): > > https://codereview.chromium.org/129173002/diff/1/content/browser/loader/resource_loader.h#newcode69 > ...
6 years, 11 months ago (2014-01-09 18:36:18 UTC) #10
commit-bot: I haz the power
Change committed as 243994
6 years, 11 months ago (2014-01-09 22:16:17 UTC) #11
darin (slow to review)
https://codereview.chromium.org/129173002/diff/1/content/public/browser/resource_throttle.h File content/public/browser/resource_throttle.h (right): https://codereview.chromium.org/129173002/diff/1/content/public/browser/resource_throttle.h#newcode28 content/public/browser/resource_throttle.h:28: virtual void OnBeforeNetworkStart(bool* defer) {} Sorry, I only stumbled ...
6 years, 4 months ago (2014-07-25 20:26:49 UTC) #12
jkarlin
6 years, 4 months ago (2014-07-28 18:53:06 UTC) #13
Message was sent while issue was closed.
On 2014/07/25 20:26:49, darin wrote:
>
https://codereview.chromium.org/129173002/diff/1/content/public/browser/resou...
> File content/public/browser/resource_throttle.h (right):
> 
>
https://codereview.chromium.org/129173002/diff/1/content/public/browser/resou...
> content/public/browser/resource_throttle.h:28: virtual void
> OnBeforeNetworkStart(bool* defer) {}
> Sorry, I only stumbled upon this now, but this method is pretty obviously
> misnamed. It isn't consistent with the other methods on this interface. I
might
> suggest a name like WillStartUsingNetwork, and it seems like it should be
listed
> after WillStartRequest but before WillRedirectRequest, right so that the
methods
> are ordered in a sensible fashion.

Thanks for the catch.  Out for review:
https://codereview.chromium.org/424753005/

Powered by Google App Engine
This is Rietveld 408576698