Index: content/browser/loader/resource_scheduler.h |
diff --git a/content/browser/loader/resource_scheduler.h b/content/browser/loader/resource_scheduler.h |
index d9711134421c71273abead5be7807bddee68940c..3c417cb9025268e374fb6ab46fadd54b8a112805 100644 |
--- a/content/browser/loader/resource_scheduler.h |
+++ b/content/browser/loader/resource_scheduler.h |
@@ -17,6 +17,7 @@ |
#include "net/base/request_priority.h" |
namespace net { |
+class HostPortPair; |
class URLRequest; |
} |
@@ -107,12 +108,22 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe { |
// Returns the number of requests with priority < LOW that are currently in |
// flight. |
- size_t GetNumDelayableRequestsInFlight(Client* client) const; |
+ void GetNumDelayableRequestsInFlight( |
+ Client* client, |
James Simonsen
2013/11/14 19:22:44
These need to be indented 4 spaces. They're a line
oystein (OOO til 10th of July)
2013/11/14 19:51:50
Done.
|
+ const net::HostPortPair& active_request_host, |
+ size_t* total_delayable, |
+ size_t* total_for_active_host) const; |
+ |
+ enum ShouldStartReqResult { |
+ DO_NOT_START_REQUEST__STOP_SEARCHING = -2, |
+ DO_NOT_START_REQUEST__KEEP_SEARCHING = -1, |
+ START_REQUEST = 1, |
+ }; |
// Returns true if the request should start. This is the core scheduling |
// algorithm. |
- bool ShouldStartRequest(ScheduledResourceRequest* request, |
- Client* client) const; |
+ ShouldStartReqResult ShouldStartRequest(ScheduledResourceRequest* request, |
+ Client* client) const; |
// Returns the client ID for the given |child_id| and |route_id| combo. |
ClientId MakeClientId(int child_id, int route_id); |