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

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

Issue 1314903007: Implement WebFrameScheduler and WebPageScheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Record origin in TQM trace event Created 5 years, 3 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/child/task_queue_manager.h
diff --git a/components/scheduler/child/task_queue_manager.h b/components/scheduler/child/task_queue_manager.h
index 384074fbc7e184bd93c1663a0eceb9c54b8face7..032c3e6034d59bfba5803a47786c57866ac8d45d 100644
--- a/components/scheduler/child/task_queue_manager.h
+++ b/components/scheduler/child/task_queue_manager.h
@@ -88,6 +88,12 @@ class SCHEDULER_EXPORT TaskQueueManager
scoped_refptr<internal::TaskQueueImpl> NewTaskQueue(
const TaskQueue::Spec& spec);
+ // Unregisters a TaskQueue previously created by |NewTaskQueue()|.
+ // NOTE we have to flush the queue from |newly_updatable_| which means as a
+ // side effect MoveNewlyUpdatableQueuesIntoUpdatableQueueSet is called by this
+ // function.
+ void UnregisterTaskQueue(scoped_refptr<internal::TaskQueueImpl> task_queue);
Sami 2015/09/10 12:51:58 Could this method be on the TaskQueue instead? ni
alex clarke (OOO till 29th) 2015/09/10 14:35:58 Yes, DONE.
+
private:
friend class internal::LazyNow;
friend class internal::TaskQueueImpl;
@@ -99,12 +105,6 @@ class SCHEDULER_EXPORT TaskQueueManager
~DeletionSentinel() {}
};
- // Unregisters a TaskQueue previously created by |NewTaskQueue()|.
- // NOTE we have to flush the queue from |newly_updatable_| which means as a
- // side effect MoveNewlyUpdatableQueuesIntoUpdatableQueueSet is called by this
- // function.
- void UnregisterTaskQueue(scoped_refptr<internal::TaskQueueImpl> task_queue);
-
// TaskQueueSelector::Observer implementation:
void OnTaskQueueEnabled(internal::TaskQueueImpl* queue) override;

Powered by Google App Engine
This is Rietveld 408576698