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

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

Issue 782903002: Breakdown ClientLoadedTime histograms into buckets based on number of clients. Fix RequestTimeThrot… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed. Created 5 years, 11 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 2b8d7373b4f2c92f20ee194a182e4680a413cb25..e5190d119e35b12b78467ecbb99aef2d91cb7f43 100644
--- a/content/browser/loader/resource_scheduler.h
+++ b/content/browser/loader/resource_scheduler.h
@@ -176,6 +176,9 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
// Called when a ScheduledResourceRequest is destroyed.
void RemoveRequest(ScheduledResourceRequest* request);
+ // Get the total number of Clients the ResourceScheduler knows about.
+ size_t GetNumClients() const;
mmenke 2015/01/06 19:30:03 optional: Not sure having a method to do this get
aiolos (Not reviewing) 2015/01/07 22:28:16 Done.
+
// These calls may update the ThrottleState of all clients, and have the
// potential to be re-entrant.
// Called when a Client newly becomes active loading.
@@ -220,6 +223,7 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
bool should_coalesce_;
bool should_throttle_;
ClientMap client_map_;
+ size_t num_clients_;
mmenke 2015/01/06 19:30:03 Not used any more.
aiolos (Not reviewing) 2015/01/07 22:28:16 Done.
size_t active_clients_loading_;
size_t coalesced_clients_;
// This is a repeating timer to initiate requests on COALESCED Clients.
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.cc » ('j') | content/browser/loader/resource_scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698