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

Unified Diff: content/renderer/render_thread_impl.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: 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/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 32e92dfdb4ff5d03f8d3306148c3035673a3a3c2..e3fdac37a5c6174232a56b006338176ff29e7f88 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -108,11 +108,11 @@ class CONTENT_EXPORT RenderThreadImpl : public content::RenderThread,
virtual void RegisterExtension(v8::Extension* extension) OVERRIDE;
virtual bool IsRegisteredExtension(
const std::string& v8_extension_name) const OVERRIDE;
- virtual void ScheduleIdleHandler(double initial_delay_s) OVERRIDE;
+ virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE;
virtual void IdleHandler() OVERRIDE;
- virtual double GetIdleNotificationDelayInS() const OVERRIDE;
- virtual void SetIdleNotificationDelayInS(
- double idle_notification_delay_in_s) OVERRIDE;
+ virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE;
+ virtual void SetIdleNotificationDelayInMs(
+ int64 idle_notification_delay_in_ms) OVERRIDE;
#if defined(OS_WIN)
virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE;
virtual void ReleaseCachedFonts() OVERRIDE;
@@ -216,7 +216,7 @@ class CONTENT_EXPORT RenderThreadImpl : public content::RenderThread,
int hidden_widget_count_;
// The current value of the idle notification timer delay.
- double idle_notification_delay_in_s_;
+ int64 idle_notification_delay_in_ms_;
bool suspend_webkit_shared_timer_;
bool notify_webkit_of_modal_loop_;

Powered by Google App Engine
This is Rietveld 408576698