diff options
author | jkarlin@chromium.org <jkarlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-09 22:16:15 +0000 |
---|---|---|
committer | jkarlin@chromium.org <jkarlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-09 22:16:15 +0000 |
commit | 5584eab1352afd0d2db7fa856fbbc886522e1732 (patch) | |
tree | 61df6d86bbd692659b4a7910c5954a5fd5251eed /content/browser/loader/stream_resource_handler.cc | |
parent | aa52489e2c6c7637c1d8c34424b5e1576dae7705 (diff) | |
download | chromium_src-5584eab1352afd0d2db7fa856fbbc886522e1732.zip chromium_src-5584eab1352afd0d2db7fa856fbbc886522e1732.tar.gz chromium_src-5584eab1352afd0d2db7fa856fbbc886522e1732.tar.bz2 |
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
Review URL: https://codereview.chromium.org/129173002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243994 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/loader/stream_resource_handler.cc')
-rw-r--r-- | content/browser/loader/stream_resource_handler.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/browser/loader/stream_resource_handler.cc b/content/browser/loader/stream_resource_handler.cc index 67309e8..7c241bd 100644 --- a/content/browser/loader/stream_resource_handler.cc +++ b/content/browser/loader/stream_resource_handler.cc @@ -57,6 +57,12 @@ bool StreamResourceHandler::OnWillStart(int request_id, return true; } +bool StreamResourceHandler::OnBeforeNetworkStart(int request_id, + const GURL& url, + bool* defer) { + return true; +} + bool StreamResourceHandler::OnWillRead(int request_id, scoped_refptr<net::IOBuffer>* buf, int* buf_size, |