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

Unified Diff: third_party/WebKit/public/platform/WebViewScheduler.h

Issue 2725633002: scheduler: Suspend timers while virtual time is paused (Closed)
Patch Set: Rebased Created 3 years, 9 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 | « third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebViewScheduler.h
diff --git a/third_party/WebKit/public/platform/WebViewScheduler.h b/third_party/WebKit/public/platform/WebViewScheduler.h
index 77e003eef6037abd1da8469a920d7140d28d720b..09d1c16d6a88b19c4fc3a7f18cc631bc61ea96c1 100644
--- a/third_party/WebKit/public/platform/WebViewScheduler.h
+++ b/third_party/WebKit/public/platform/WebViewScheduler.h
@@ -50,6 +50,10 @@ class BLINK_PLATFORM_EXPORT WebViewScheduler {
// |-----------------------------> time
virtual void enableVirtualTime() = 0;
+ // Disables virtual time. Note that this is only used for testing, because
+ // there's no reason to do this in production.
+ virtual void disableVirtualTimeForTesting() = 0;
+
// Returns true if virtual time is currently allowed to advance.
virtual bool virtualTimeAllowedToAdvance() const = 0;
« no previous file with comments | « third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698