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

Unified Diff: content/browser/renderer_host/resource_queue.h

Issue 8296017: Revert 105659 - Delay network requests on startup if any webRequest or webNavigation extensions a... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/resource_queue.h
===================================================================
--- content/browser/renderer_host/resource_queue.h (revision 105660)
+++ content/browser/renderer_host/resource_queue.h (working copy)
@@ -28,7 +28,8 @@
virtual void Initialize(ResourceQueue* resource_queue) = 0;
// Should return true if it wants the |request| to not be started at this
- // point. Use ResourceQueue::StartDelayedRequests to restart requests.
+ // point. To start the delayed request, ResourceQueue::StartDelayedRequest
+ // should be used.
virtual bool ShouldDelayRequest(
net::URLRequest* request,
const ResourceDispatcherHostRequestInfo& request_info,
@@ -73,10 +74,11 @@
// |request_id| is no longer valid.
void RemoveRequest(const GlobalRequestID& request_id);
- // A delegate should call StartDelayedRequests when it wants to allow all
- // its delayed requests to start. If it was the last delegate that required
- // a request to be delayed, that request will be started.
- void StartDelayedRequests(ResourceQueueDelegate* delegate);
+ // A delegate should call StartDelayedRequest when it wants to allow the
+ // request to start. If it was the last delegate that demanded the request
+ // to be delayed, the request will be started.
+ void StartDelayedRequest(ResourceQueueDelegate* delegate,
+ const GlobalRequestID& request_id);
private:
typedef std::map<GlobalRequestID, net::URLRequest*> RequestMap;

Powered by Google App Engine
This is Rietveld 408576698