| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |