| 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 840747bf94138b07f6193311aeec146200ce184a..d773fe5da9413e478af6cf85f67792496f0b8f44 100644
|
| --- a/base/task_scheduler/delayed_task_manager.h
|
| +++ b/base/task_scheduler/delayed_task_manager.h
|
| @@ -23,8 +23,8 @@
|
| namespace base {
|
| namespace internal {
|
|
|
| +class SchedulerWorker;
|
| class SchedulerWorkerPool;
|
| -class SchedulerWorkerThread;
|
|
|
| // A DelayedTaskManager holds delayed Tasks until they become ripe for
|
| // execution. This class is thread-safe.
|
| @@ -36,17 +36,16 @@ class BASE_EXPORT DelayedTaskManager {
|
| ~DelayedTaskManager();
|
|
|
| // Adds |task| to a queue of delayed tasks. The task will be posted to
|
| - // |worker_pool| with |sequence| and |worker_thread| the first time that
|
| + // |worker_pool| with |sequence| and |worker| the first time that
|
| // PostReadyTasks() is called while Now() is passed |task->delayed_run_time|.
|
| - // |worker_thread| is a SchedulerWorkerThread owned by |worker_pool| or
|
| - // nullptr.
|
| + // |worker| is a SchedulerWorker owned by |worker_pool| or nullptr.
|
| //
|
| - // TODO(robliao): Find a concrete way to manage the memory of |worker_thread|
|
| - // and |worker_pool|. These objects are never deleted in production, but it is
|
| + // TODO(robliao): Find a concrete way to manage the memory of |worker| and
|
| + // |worker_pool|. These objects are 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,
|
| - SchedulerWorkerThread* worker_thread,
|
| + SchedulerWorker* worker,
|
| SchedulerWorkerPool* worker_pool);
|
|
|
| // Posts delayed tasks that are ripe for execution.
|
|
|