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

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

Issue 1117923004: Run load state update timer only when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cpu
Patch Set: Add comments Created 5 years, 7 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..659487122d60ee3e276ad27944dfe95007b02b81 100644
--- a/content/browser/loader/resource_scheduler.h
+++ b/content/browser/loader/resource_scheduler.h
@@ -150,6 +150,9 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
bool IsClientVisibleForTesting(int child_id, int route_id);
+ // Returns true if at least one client is currently loading.
+ bool HasLoadingClients() const;
+
private:
enum ClientState {
// Observable client.

Powered by Google App Engine
This is Rietveld 408576698