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

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: Get visual signal from RenderViewHostImpl 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_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);

Powered by Google App Engine
This is Rietveld 408576698