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

Unified Diff: base/task_scheduler/task_tracker.h

Issue 2427963002: Support FileDescriptorWatcher in TaskScheduler. (Closed)
Patch Set: fix build error 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_tracker.h
diff --git a/base/task_scheduler/task_tracker.h b/base/task_scheduler/task_tracker.h
index 8c19456e8772ed04407d5b078f0aad8753b45f37..ff24a2b5a8202d717f7f7b751e4e8848329babfa 100644
--- a/base/task_scheduler/task_tracker.h
+++ b/base/task_scheduler/task_tracker.h
@@ -73,6 +73,12 @@ class BASE_EXPORT TaskTracker {
// cannot be called after this.
void SetHasShutdownStartedForTesting();
+ protected:
+ // Runs |task|. An override should perform work before running the task,
+ // invoke the base class implementation to run the task and perform work after
+ // running the task.
+ virtual void PerformRunTask(std::unique_ptr<Task> task);
+
private:
class State;

Powered by Google App Engine
This is Rietveld 408576698