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

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

Issue 1250613002: scheduler: Remove task observer shenanigans (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a failing test. Created 5 years, 5 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 3b8e51489256df7289b4769814e857eff03d244a..a0b4260fdc6744b0e7e3a53653392617e68b9b63 100644
--- a/components/scheduler/child/task_queue_manager.h
+++ b/components/scheduler/child/task_queue_manager.h
@@ -203,13 +203,12 @@ class SCHEDULER_EXPORT TaskQueueManager : public TaskQueueSelector::Observer {
bool SelectWorkQueueToService(size_t* out_queue_index);
// Runs a single nestable task from the work queue designated by
- // |queue_index|. If |has_previous_task| is true, |previous_task| should
- // contain the previous task in this work batch. Non-nestable task are
- // reposted on the run loop. The queue must not be empty.
- // Returns true if the TaskQueueManager got deleted, and false otherwise.
+ // |queue_index|. On exit, |out_task| will contain the task which was
+ // executed. Non-nestable task are reposted on the run loop. The queue must
+ // not be empty. Returns true if the TaskQueueManager got deleted, and false
+ // otherwise.
bool ProcessTaskFromWorkQueue(size_t queue_index,
- bool has_previous_task,
- base::PendingTask* previous_task);
+ base::PendingTask* out_task);
bool RunsTasksOnCurrentThread() const;
bool PostDelayedTask(const tracked_objects::Location& from_here,
« no previous file with comments | « components/scheduler/child/scheduler_task_runner_delegate_impl.cc ('k') | components/scheduler/child/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698