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

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

Issue 8519001: Schedule idle timer of render thread when user is idle. Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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/content_renderer.gypi ('k') | content/renderer/idle_user_detector.h » ('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 ff45b1ee435f4352d0aff3365e4a1fe432e87a8d..7bab5bb1df5f3d1b9af0c8d229ce09e7148ed595 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -93,6 +93,10 @@ class ContentRendererClient {
// all widgets are hidden.
virtual bool RunIdleHandlerWhenWidgetsHidden() = 0;
+ // Returns true if the renderer process should schedule the idle handler when
+ // the user is idle.
+ virtual bool RunIdleHandlerWhenUserIdle() = 0;
+
// Returns true if the given url can create popup windows.
virtual bool AllowPopup(const GURL& creator) = 0;
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/idle_user_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698