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

Unified Diff: base/task_scheduler/task_tracker.h

Issue 2172713003: TaskScheduler: Set the current SequenceToken when a Task runs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@token
Patch Set: Created 4 years, 5 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_tracker.h
diff --git a/base/task_scheduler/task_tracker.h b/base/task_scheduler/task_tracker.h
index fc0901f7c139ade379e6e334a3aa7603efec7b49..1705c0b04ef63daa96f4120b36eb1b3ea10e39ed 100644
--- a/base/task_scheduler/task_tracker.h
+++ b/base/task_scheduler/task_tracker.h
@@ -13,6 +13,7 @@
#include "base/metrics/histogram_base.h"
#include "base/synchronization/waitable_event.h"
#include "base/task_scheduler/scheduler_lock.h"
+#include "base/task_scheduler/sequence.h"
#include "base/task_scheduler/task.h"
#include "base/task_scheduler/task_traits.h"
@@ -40,9 +41,9 @@ class BASE_EXPORT TaskTracker {
// this operation is allowed (|task| should be posted if-and-only-if it is).
bool WillPostTask(const Task* task);
- // Runs |task| unless the current shutdown state prevents that. WillPostTask()
- // must have allowed |task| to be posted.
- void RunTask(const Task* task);
+ // Runs the next Task in |sequence| unless the current shutdown state prevents
+ // that. WillPostTask() must have allowed the Task to be posted.
+ void RunNextTaskInSequence(const Sequence* sequence);
// Returns true if shutdown has completed.
bool IsShutdownComplete() const;

Powered by Google App Engine
This is Rietveld 408576698