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

Unified Diff: components/scheduler/renderer/renderer_scheduler.h

Issue 1727103002: Revert of Per WebViewScheduler virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/renderer/renderer_scheduler.h
diff --git a/components/scheduler/renderer/renderer_scheduler.h b/components/scheduler/renderer/renderer_scheduler.h
index 98635ba6be4efc692a9f5239c6d485204eff9608..9f9204f111cb8b4dc33d8ea73162fb8488ce4991 100644
--- a/components/scheduler/renderer/renderer_scheduler.h
+++ b/components/scheduler/renderer/renderer_scheduler.h
@@ -151,6 +151,18 @@
// received via OnRendererBackgrounded. Defaults to disabled.
virtual void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) = 0;
+ // Returns a double which is the number of seconds since epoch (Jan 1, 1970).
+ // This may represent either the real time, or a virtual time depending on
+ // whether or not the system is currently running a task associated with a
+ // virtual time domain or real time domain.
+ virtual double VirtualTimeSeconds() const = 0;
+
+ // Returns a microsecond resolution platform dependant time source.
+ // This may represent either the real time, or a virtual time depending on
+ // whether or not the system is currently running a task associated with a
+ // virtual time domain or real time domain.
+ virtual double MonotonicallyIncreasingVirtualTimeSeconds() const = 0;
+
protected:
RendererScheduler();
DISALLOW_COPY_AND_ASSIGN(RendererScheduler);
« no previous file with comments | « components/scheduler/child/web_task_runner_impl.cc ('k') | components/scheduler/renderer/renderer_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698