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

Side by Side Diff: content/child/scheduler/null_worker_scheduler.cc

Issue 1089833002: Introduce ChildScheduler as common base interface for WorkerScheduler and RendererScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/scheduler/null_worker_scheduler.h" 5 #include "content/child/scheduler/null_worker_scheduler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "content/child/scheduler/null_idle_task_runner.h" 9 #include "content/child/scheduler/null_idle_task_runner.h"
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 void NullWorkerScheduler::RemoveTaskObserver( 36 void NullWorkerScheduler::RemoveTaskObserver(
37 base::MessageLoop::TaskObserver* task_observer) { 37 base::MessageLoop::TaskObserver* task_observer) {
38 base::MessageLoop::current()->RemoveTaskObserver(task_observer); 38 base::MessageLoop::current()->RemoveTaskObserver(task_observer);
39 } 39 }
40 40
41 bool NullWorkerScheduler::CanExceedIdleDeadlineIfRequired() const { 41 bool NullWorkerScheduler::CanExceedIdleDeadlineIfRequired() const {
42 return false; 42 return false;
43 } 43 }
44 44
45 bool NullWorkerScheduler::ShouldYieldForHighPriorityWork() {
46 return false;
47 }
48
45 void NullWorkerScheduler::Init() { 49 void NullWorkerScheduler::Init() {
46 } 50 }
47 51
48 void NullWorkerScheduler::Shutdown() { 52 void NullWorkerScheduler::Shutdown() {
49 } 53 }
50 54
51 } // namespace content 55 } // namespace content
OLDNEW
« no previous file with comments | « content/child/scheduler/null_worker_scheduler.h ('k') | content/child/scheduler/worker_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698