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

Unified Diff: content/browser/loader/resource_scheduler.h

Issue 180843016: Cache total_delayable_count for in_flight_requests in ResourceScheduler (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: update accounting method Created 6 years, 8 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
« no previous file with comments | « AUTHORS ('k') | content/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_scheduler.h
diff --git a/content/browser/loader/resource_scheduler.h b/content/browser/loader/resource_scheduler.h
index cd8f054788eee04dbcbcac302eabc4528ba7e416..0e918f10c6d07b2e5467551026ee2257267abe83 100644
--- a/content/browser/loader/resource_scheduler.h
+++ b/content/browser/loader/resource_scheduler.h
@@ -92,7 +92,7 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
bool operator()(const ScheduledResourceRequest* a,
const ScheduledResourceRequest* b) const;
};
- struct Client;
+ class Client;
typedef int64 ClientId;
typedef std::map<ClientId, Client*> ClientMap;
@@ -101,9 +101,6 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
// Called when a ScheduledResourceRequest is destroyed.
void RemoveRequest(ScheduledResourceRequest* request);
- // Unthrottles the |request| and adds it to |client|.
- void StartRequest(ScheduledResourceRequest* request, Client* client);
-
// Update the queue position for |request|, possibly causing it to start
// loading.
//
@@ -114,29 +111,6 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
net::RequestPriority new_priority,
int intra_priority_value);
- // Attempts to load any pending requests in |client|, based on the
- // results of ShouldStartRequest().
- void LoadAnyStartablePendingRequests(Client* client);
-
- // Returns the number of requests with priority < LOW that are currently in
- // flight.
- void GetNumDelayableRequestsInFlight(
- Client* client,
- const net::HostPortPair& active_request_host,
- size_t* total_delayable,
- size_t* total_for_active_host) const;
-
- enum ShouldStartReqResult {
- DO_NOT_START_REQUEST_AND_STOP_SEARCHING = -2,
- DO_NOT_START_REQUEST_AND_KEEP_SEARCHING = -1,
- START_REQUEST = 1,
- };
-
- // Returns true if the request should start. This is the core scheduling
- // algorithm.
- 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);
« no previous file with comments | « AUTHORS ('k') | content/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698