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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.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
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_impl.h
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index 269af9215f943228470130f189116c1b93a1381d..7cb177180642333a5c6362141eabe965c1c13ef3 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -164,11 +164,17 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
}
// Called when a RenderViewHost is created.
- void OnRenderViewHostCreated(int child_id, int route_id);
+ void OnRenderViewHostCreated(int child_id, int route_id, bool is_visible);
// Called when a RenderViewHost is deleted.
void OnRenderViewHostDeleted(int child_id, int route_id);
+ // Called when a RenderViewHost is hidden.
+ void OnRenderViewHostWasHidden(int child_id, int route_id);
+
+ // Called when a RenderViewHost is shown.
+ void OnRenderViewHostWasShown(int child_id, int route_id);
+
// Force cancels any pending requests for the given process.
void CancelRequestsForProcess(int child_id);
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698