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; |