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

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

Issue 1652083002: Prepare for per-webview virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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
« no previous file with comments | « components/scheduler/BUILD.gn ('k') | components/scheduler/base/task_queue_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/base/task_queue.h
diff --git a/components/scheduler/base/task_queue.h b/components/scheduler/base/task_queue.h
index c557b7d51da86fa08b46e721a9215e02eb06c26b..b20e0777f08362e92b5e2e733c028d1e12e8ef64 100644
--- a/components/scheduler/base/task_queue.h
+++ b/components/scheduler/base/task_queue.h
@@ -188,6 +188,9 @@ class SCHEDULER_EXPORT TaskQueue : public base::SingleThreadTaskRunner {
// |domain|. This is a moderately expensive operation.
virtual void SetTimeDomain(TimeDomain* domain) = 0;
+ // Returns the queue's current TimeDomain. Can be called from any thread.
+ virtual TimeDomain* GetTimeDomain() const = 0;
+
protected:
~TaskQueue() override {}
« no previous file with comments | « components/scheduler/BUILD.gn ('k') | components/scheduler/base/task_queue_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698