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

Unified Diff: components/scheduler/base/task_queue_manager.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/base/task_queue_impl.cc ('k') | components/scheduler/base/task_queue_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/base/task_queue_manager.h
diff --git a/components/scheduler/base/task_queue_manager.h b/components/scheduler/base/task_queue_manager.h
index 7a7d6d459772829d43d871a6f2b5130cbeed881e..11dd965e4ae98c03865467a2785e2768c4303bf3 100644
--- a/components/scheduler/base/task_queue_manager.h
+++ b/components/scheduler/base/task_queue_manager.h
@@ -126,6 +126,10 @@ class SCHEDULER_EXPORT TaskQueueManager
LazyNow CreateLazyNow() const;
+ TaskQueue* currently_executing_task_queue() const {
+ return currently_executing_task_queue_;
+ }
+
private:
friend class LazyNow;
friend class internal::TaskQueueImpl;
@@ -236,6 +240,8 @@ class SCHEDULER_EXPORT TaskQueueManager
const char* disabled_by_default_tracing_category_;
const char* disabled_by_default_verbose_tracing_category_;
+ internal::TaskQueueImpl* currently_executing_task_queue_; // NOT OWNED
+
Observer* observer_; // NOT OWNED
scoped_refptr<DeletionSentinel> deletion_sentinel_;
base::WeakPtrFactory<TaskQueueManager> weak_factory_;
« no previous file with comments | « components/scheduler/base/task_queue_impl.cc ('k') | components/scheduler/base/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698