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

Unified Diff: content/child/scheduler/task_queue_manager.h

Issue 1025323003: Introduce a SchedulerHelper in content/child/scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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: content/child/scheduler/task_queue_manager.h
diff --git a/content/renderer/scheduler/task_queue_manager.h b/content/child/scheduler/task_queue_manager.h
similarity index 96%
rename from content/renderer/scheduler/task_queue_manager.h
rename to content/child/scheduler/task_queue_manager.h
index ae38cc8be5db6596f959c7ac5d397160ae769f33..e8563ee6fd1bf369e9ba180383a388f91dd72eda 100644
--- a/content/renderer/scheduler/task_queue_manager.h
+++ b/content/child/scheduler/task_queue_manager.h
@@ -69,11 +69,13 @@ class CONTENT_EXPORT TaskQueueManager {
// Create a task queue manager with |task_queue_count| task queues.
// |main_task_runner| identifies the thread on which where the tasks are
// eventually run. |selector| is used to choose which task queue to service.
- // It should outlive this class.
+ // It should outlive this class. Category strings must have application
+ // lifetime (statics or literals). They may not include " chars.
TaskQueueManager(
size_t task_queue_count,
scoped_refptr<NestableSingleThreadTaskRunner> main_task_runner,
- TaskQueueSelector* selector);
+ TaskQueueSelector* selector,
+ const char* disabled_by_default_tracing_category);
~TaskQueueManager();
// Returns the task runner which targets the queue selected by |queue_index|.
@@ -194,6 +196,8 @@ class CONTENT_EXPORT TaskQueueManager {
ObserverList<base::MessageLoop::TaskObserver> task_observers_;
+ const char* disabled_by_default_tracing_category_;
+
base::WeakPtrFactory<TaskQueueManager> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(TaskQueueManager);
« no previous file with comments | « content/child/scheduler/single_thread_idle_task_runner.cc ('k') | content/child/scheduler/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698