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

Unified Diff: third_party/WebKit/Source/platform/Timer.h

Issue 1646583002: [Reland] Per WebViewScheduler virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WebViewSchedulerImpl to unregister the virtual_time_domain_ in the destructor Created 4 years, 11 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
Index: third_party/WebKit/Source/platform/Timer.h
diff --git a/third_party/WebKit/Source/platform/Timer.h b/third_party/WebKit/Source/platform/Timer.h
index ba16008404cae57b580b8b24b47a90819f0f94fe..05dffff492558028d6764fcd82d84847a384be28 100644
--- a/third_party/WebKit/Source/platform/Timer.h
+++ b/third_party/WebKit/Source/platform/Timer.h
@@ -86,6 +86,8 @@ private:
NO_LAZY_SWEEP_SANITIZE_ADDRESS
virtual bool canFire() const { return true; }
+ double time() const;
+
void setNextFireTime(double now, double delay);
void runInternal();
@@ -123,7 +125,7 @@ private:
double m_nextFireTime; // 0 if inactive
double m_repeatInterval; // 0 if not repeating
WebTraceLocation m_location;
- CancellableTimerTask* m_cancellableTimerTask; // NOT OWNED
+ CancellableTimerTask* m_cancellableTimerTask; // Not owned.
WebTaskRunner* m_webTaskRunner; // Not owned.
#if ENABLE(ASSERT)

Powered by Google App Engine
This is Rietveld 408576698