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

Unified Diff: base/task_scheduler/delayed_task_manager.h

Issue 1906083002: TaskScheduler: Remove base/task_scheduler/utils.h/.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sched_2_stack
Patch Set: 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/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.

Powered by Google App Engine
This is Rietveld 408576698