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

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: Created 6 years, 10 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/loader/resource_scheduler.h
diff --git a/content/browser/loader/resource_scheduler.h b/content/browser/loader/resource_scheduler.h
index b374b6ccb3b22e66cfdaed114b6f14aa4b633b0e..4dfb4b7dd6d7fa093c9e11f1f6623096f8c241e5 100644
--- a/content/browser/loader/resource_scheduler.h
+++ b/content/browser/loader/resource_scheduler.h
@@ -112,13 +112,11 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
// results of ShouldStartRequest().
void LoadAnyStartablePendingRequests(Client* client);
- // Returns the number of requests with priority < LOW that are currently in
+ // Returns the number of requests with same host that are currently in
// flight.
- void GetNumDelayableRequestsInFlight(
+ size_t GetNumSameHostRequestsInFlight(
Client* client,
- const net::HostPortPair& active_request_host,
- size_t* total_delayable,
- size_t* total_for_active_host) const;
+ const net::HostPortPair& active_request_host) const;
enum ShouldStartReqResult {
DO_NOT_START_REQUEST_AND_STOP_SEARCHING = -2,

Powered by Google App Engine
This is Rietveld 408576698