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

Unified Diff: components/scheduler/child/null_worker_scheduler.cc

Issue 1106213002: Adds a SHUTDOWN_TASK_QUEUE and a PreShutdown api to the scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 8 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 | « components/scheduler/child/null_worker_scheduler.h ('k') | components/scheduler/child/scheduler_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/null_worker_scheduler.cc
diff --git a/components/scheduler/child/null_worker_scheduler.cc b/components/scheduler/child/null_worker_scheduler.cc
index 4abfb0e8e7cedd69acc0351b077c8c34147036e8..6af52dcdbd7bc3a5cd1666a627e0801a5b0fe039 100644
--- a/components/scheduler/child/null_worker_scheduler.cc
+++ b/components/scheduler/child/null_worker_scheduler.cc
@@ -29,6 +29,11 @@ NullWorkerScheduler::IdleTaskRunner() {
return idle_task_runner_;
}
+scoped_refptr<base::SingleThreadTaskRunner>
+NullWorkerScheduler::ShutdownTaskRunner() {
+ return task_runner_;
+}
+
void NullWorkerScheduler::AddTaskObserver(
base::MessageLoop::TaskObserver* task_observer) {
base::MessageLoop::current()->AddTaskObserver(task_observer);
@@ -50,6 +55,9 @@ bool NullWorkerScheduler::ShouldYieldForHighPriorityWork() {
void NullWorkerScheduler::Init() {
}
+void NullWorkerScheduler::PreShutdown() {
+}
+
void NullWorkerScheduler::Shutdown() {
}
« no previous file with comments | « components/scheduler/child/null_worker_scheduler.h ('k') | components/scheduler/child/scheduler_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698