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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 1133143003: [Android] Suspend shared timers for hidden renderers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@input_remove_suspend
Patch Set: Use ContentRendererClient Created 5 years, 3 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 | « content/child/child_thread_impl.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 8d840e9648067343bbea7f98cf9dc9d21a937d30..031fc8101e7054b4937d5f6d0bb8091e178b1380 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -186,6 +186,10 @@ class CONTENT_EXPORT ContentRendererClient {
// all widgets are hidden.
virtual bool RunIdleHandlerWhenWidgetsHidden();
+ // Returns true if the renderer process should allow shared timer suspension
+ // after the process has been backgrounded. Defaults to false.
+ virtual bool AllowTimerSuspensionWhenProcessBackgrounded();
+
// Returns true if a popup window should be allowed.
virtual bool AllowPopup();
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698