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

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: rebase + CR robliao #4 (padding) 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
« no previous file with comments | « base/task_scheduler/sequence.h ('k') | base/task_scheduler/task_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_tracker.h
diff --git a/base/task_scheduler/task_tracker.h b/base/task_scheduler/task_tracker.h
index 609edbc07f35f068173ef643c8684e1226b4230c..80cc3c02870685ac421f4bb8f4278c376355e091 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 once shutdown has started (Shutdown() has been called but
// might not have returned).
« no previous file with comments | « base/task_scheduler/sequence.h ('k') | base/task_scheduler/task_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698