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

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

Issue 8513008: Schedule idle handler in the foreground tab based on CPU usage and user activity. (Closed) 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
Index: content/public/renderer/render_thread.h
diff --git a/content/public/renderer/render_thread.h b/content/public/renderer/render_thread.h
index 2140e70eab82063c732d36c4bb3a08d4e55b834f..ef4caafc4f7d21a995e61f6a5569e916425d2f0c 100644
--- a/content/public/renderer/render_thread.h
+++ b/content/public/renderer/render_thread.h
@@ -96,6 +96,11 @@ class CONTENT_EXPORT RenderThread : public IPC::Message::Sender {
virtual void SetIdleNotificationDelayInMs(
int64 idle_notification_delay_in_ms) = 0;
+ // Causes the idle handler to skip sending idle notifications
+ // on the two next scheduled calls, so idle notifications are
+ // not sent for at least one notification delay.
+ virtual void PostponeIdleNotification() = 0;
+
#if defined(OS_WIN)
// Request that the given font be loaded by the browser so it's cached by the
// OS. Please see ChildProcessHost::PreCacheFont for details.

Powered by Google App Engine
This is Rietveld 408576698