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

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: Fix CachingCorrectnessTest Created 5 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: 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..b11f7d3ada5fbd461015149f0de5119fab3c4416 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 CurrentTimeSeconds() const = 0;
+
protected:
~TaskQueueManagerDelegate() override {}
« no previous file with comments | « components/scheduler/base/task_queue_manager.cc ('k') | components/scheduler/base/task_queue_manager_delegate_for_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698