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

Unified Diff: base/task_scheduler/task.h

Issue 2405243003: TaskScheduler: Replace the SchedulerServiceThread with a base::Thread. (Closed)
Patch Set: CR robliao #9 Created 4 years, 2 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/task.h
diff --git a/base/task_scheduler/task.h b/base/task_scheduler/task.h
index b2fa7661b569686767e013af7c6c1d23559d283e..c014671ce076cfe9e30665f4d6ccb885e4511758 100644
--- a/base/task_scheduler/task.h
+++ b/base/task_scheduler/task.h
@@ -36,6 +36,9 @@ struct BASE_EXPORT Task : public PendingTask {
// The TaskTraits of this task.
const TaskTraits traits;
+ // The delay that must expire before the task runs.
+ const TimeDelta delay;
+
// The time at which the task was inserted in its sequence. For an undelayed
// task, this happens at post time. For a delayed task, this happens some
// time after the task's delay has expired. If the task hasn't been inserted

Powered by Google App Engine
This is Rietveld 408576698