Index: base/task_scheduler/delayed_task_manager.h |
diff --git a/base/task_scheduler/delayed_task_manager.h b/base/task_scheduler/delayed_task_manager.h |
index f098659c07828bc86515db5ff9e24d318421e762..7503dec05c92d24f7466f04c584e3573256628ab 100644 |
--- a/base/task_scheduler/delayed_task_manager.h |
+++ b/base/task_scheduler/delayed_task_manager.h |
@@ -23,11 +23,12 @@ |
namespace base { |
namespace internal { |
-class SchedulerTaskExecutor; |
+class SchedulerThreadPoolInterface; |
// A DelayedTaskManager holds delayed Tasks until they become ripe for |
// execution. When they become ripe for execution, it posts them to their |
-// associated Sequence and SchedulerTaskExecutor. This class is thread-safe. |
+// associated Sequence and SchedulerThreadPoolInterface. This class is thread- |
+// safe. |
class BASE_EXPORT DelayedTaskManager { |
public: |
// |on_delayed_run_time_updated| is invoked when the delayed run time is |
@@ -36,15 +37,15 @@ class BASE_EXPORT DelayedTaskManager { |
~DelayedTaskManager(); |
// Adds |task| to a queue of delayed tasks. The task will be posted to |
- // |executor| as part of |sequence| the first time that PostReadyTasks() is |
+ // |thread_pool| as part of |sequence| the first time that PostReadyTasks() is |
// called while Now() is passed |task->delayed_run_time|. |
// |
- // TODO(robliao): Find a concrete way to manage |executor|'s memory. It is |
+ // TODO(robliao): Find a concrete way to manage |thread_pool|'s memory. It is |
// never deleted in production, but it is better not to spread this assumption |
// throughout the scheduler. |
void AddDelayedTask(std::unique_ptr<Task> task, |
scoped_refptr<Sequence> sequence, |
- SchedulerTaskExecutor* executor); |
+ SchedulerThreadPoolInterface* thread_pool); |
// Posts delayed tasks that are ripe for execution. |
// TODO(robliao): Call this from a service thread. |