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

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

Issue 8463019: Convert render thread idle delays from seconds to milliseconds. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Address comments, fix compile error in test_support_content. 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 | « chrome/renderer/extensions/extension_dispatcher.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/render_thread.h
diff --git a/content/public/renderer/render_thread.h b/content/public/renderer/render_thread.h
index 3566c647892a2d382d4ffe6b03433f276a57a091..2140e70eab82063c732d36c4bb3a08d4e55b834f 100644
--- a/content/public/renderer/render_thread.h
+++ b/content/public/renderer/render_thread.h
@@ -86,15 +86,15 @@ class CONTENT_EXPORT RenderThread : public IPC::Message::Sender {
const std::string& v8_extension_name) const = 0;
// Schedule a call to IdleHandler with the given initial delay.
- virtual void ScheduleIdleHandler(double initial_delay_s) = 0;
+ virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0;
// A task we invoke periodically to assist with idle cleanup.
virtual void IdleHandler() = 0;
// Get/Set the delay for how often the idle handler is called.
- virtual double GetIdleNotificationDelayInS() const = 0;
- virtual void SetIdleNotificationDelayInS(
- double idle_notification_delay_in_s) = 0;
+ virtual int64 GetIdleNotificationDelayInMs() const = 0;
+ virtual void SetIdleNotificationDelayInMs(
+ int64 idle_notification_delay_in_ms) = 0;
#if defined(OS_WIN)
// Request that the given font be loaded by the browser so it's cached by the
« no previous file with comments | « chrome/renderer/extensions/extension_dispatcher.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698