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

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: rebase 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
Index: base/task_scheduler/utils.h
diff --git a/base/task_scheduler/utils.h b/base/task_scheduler/utils.h
index 88eafd5139c5de01f61846dc678eb8306aeef084..c2714522169f5683458c8c9323ce8b8286e30cfa 100644
--- a/base/task_scheduler/utils.h
+++ b/base/task_scheduler/utils.h
@@ -21,12 +21,14 @@ class TimeDelta;
namespace internal {
+class DelayedTaskManager;
class PriorityQueue;
class SchedulerTaskExecutor;
class TaskTracker;
// Attempts to post a task to the provided |sequence| and |executor| conditional
-// on |task_tracker|. Returns true if the task is posted.
+// on |task_tracker|. If |delay| is not zero, the task is handled by
+// |delayed_task_manager|. Returns true if the task is posted.
bool BASE_EXPORT
PostTaskToExecutor(const tracked_objects::Location& posted_from,
const Closure& closure,
@@ -34,7 +36,8 @@ PostTaskToExecutor(const tracked_objects::Location& posted_from,
const TimeDelta& delay,
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

Powered by Google App Engine
This is Rietveld 408576698