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

Unified Diff: components/scheduler/base/task_queue_manager_delegate.h

Issue 1411843008: Make blink platform time consistent with the timer virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: components/scheduler/base/task_queue_manager_delegate.h
diff --git a/components/scheduler/base/task_queue_manager_delegate.h b/components/scheduler/base/task_queue_manager_delegate.h
index a93110e8ec17efcb3e7023b1a1c1de8435dea90c..fa4647df6e44770629d3c6baebaf9a4c87a08f14 100644
--- a/components/scheduler/base/task_queue_manager_delegate.h
+++ b/components/scheduler/base/task_queue_manager_delegate.h
@@ -29,6 +29,10 @@ class SCHEDULER_EXPORT TaskQueueManagerDelegate
// this.
virtual void OnNoMoreImmediateWork() = 0;
+ // Returns the time as a double which is the number of seconds since epoch
+ // (Jan 1, 1970). Blink uses this format to represent time.
+ virtual double currentTime() const = 0;
Sami 2015/10/30 19:53:31 Capital 'c'.
alex clarke (OOO till 29th) 2015/11/04 15:12:24 Done.
+
protected:
~TaskQueueManagerDelegate() override {}

Powered by Google App Engine
This is Rietveld 408576698