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

Unified Diff: base/task_scheduler/task_tracker.h

Issue 2891363005: Add ScopedTaskEnvironment::ExecutionControlMode. (Closed)
Patch Set: self-review Created 3 years, 7 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 1a1977df882e1d6b9eda426f57781ff9038ddd0c..b80e661cd825fafdfdce125962523a245b4e9926 100644
--- a/base/task_scheduler/task_tracker.h
+++ b/base/task_scheduler/task_tracker.h
@@ -90,6 +90,10 @@ class BASE_EXPORT TaskTracker {
virtual bool IsPostingBlockShutdownTaskAfterShutdownAllowed();
#endif
+ // Returns the number of undelayed tasks that haven't completed their
+ // execution.
+ int GetNumPendingUndelayedTasksForTesting() const;
+
private:
class State;

Powered by Google App Engine
This is Rietveld 408576698