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

Unified Diff: base/task_scheduler/utils.h

Issue 1806473002: TaskScheduler [9] Delayed Task Manager (Closed) Base URL: https://luckyluke-private.googlesource.com/src@s_5_worker_thread
Patch Set: CR danakj #29 Created 4 years, 8 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 | « base/task_scheduler/scheduler_thread_pool_unittest.cc ('k') | base/task_scheduler/utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/utils.h
diff --git a/base/task_scheduler/utils.h b/base/task_scheduler/utils.h
index 141dd4ec1f768dbdbfc9c196623e7933bf98a5c2..929d65c363494287e2b958c8686b94b79c70412b 100644
--- a/base/task_scheduler/utils.h
+++ b/base/task_scheduler/utils.h
@@ -15,16 +15,19 @@
namespace base {
namespace internal {
+class DelayedTaskManager;
class PriorityQueue;
class SchedulerTaskExecutor;
class TaskTracker;
// Attempts to post |task| to the provided |sequence| and |executor| conditional
-// on |task_tracker|. Returns true if the task is posted.
+// on |task_tracker|. If |task| has a delayed run time, it is handled by
+// |delayed_task_manager|. Returns true if the task is posted.
bool BASE_EXPORT PostTaskToExecutor(std::unique_ptr<Task> task,
scoped_refptr<Sequence> sequence,
SchedulerTaskExecutor* executor,
- TaskTracker* task_tracker);
+ TaskTracker* task_tracker,
+ DelayedTaskManager* delayed_task_manager);
// Posts |task| to the provided |sequence| and |priority_queue|. This must only
// be called after |task|'s delayed run time. Returns true if |sequence| was
« no previous file with comments | « base/task_scheduler/scheduler_thread_pool_unittest.cc ('k') | base/task_scheduler/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698