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

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

Issue 465363003: ResourceScheduler get visual signal from RenderViewHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Do not throttle when should not Created 6 years, 4 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 74ac16d3d42be6fa23f226b134817d030364d3c1..6b3fb180870a3907f771389bf8f296ff39be05a7 100644
--- a/content/browser/loader/resource_scheduler.h
+++ b/content/browser/loader/resource_scheduler.h
@@ -103,7 +103,7 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
// Signals from the UI thread, posted as tasks on the IO thread:
// Called when a renderer is created.
- void OnClientCreated(int child_id, int route_id);
+ void OnClientCreated(int child_id, int route_id, bool is_visible);
// Called when a renderer is destroyed.
void OnClientDeleted(int child_id, int route_id);
@@ -136,6 +136,8 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
void OnLoadingStateChanged(int child_id, int route_id, bool is_loaded);
+ bool IsClientVisibleForTesting(int child_id, int route_id);
+
private:
class RequestQueue;
class ScheduledResourceRequest;
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698