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/async_resource_handler.h | |
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/async_resource_handler.h')
-rw-r--r-- | content/browser/loader/async_resource_handler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/loader/async_resource_handler.h b/content/browser/loader/async_resource_handler.h index f603f4f..2de156c 100644 --- a/content/browser/loader/async_resource_handler.h +++ b/content/browser/loader/async_resource_handler.h @@ -49,6 +49,9 @@ class AsyncResourceHandler : public ResourceHandler, virtual bool OnWillStart(int request_id, const GURL& url, bool* defer) OVERRIDE; + virtual bool OnBeforeNetworkStart(int request_id, + const GURL& url, + bool* defer) OVERRIDE; virtual bool OnWillRead(int request_id, scoped_refptr<net::IOBuffer>* buf, int* buf_size, |