| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/scheduler/child/scheduler_task_runner_delegate_impl.h" | 5 #include "components/scheduler/child/scheduler_task_runner_delegate_impl.h" |
| 6 | 6 |
| 7 namespace scheduler { | 7 namespace scheduler { |
| 8 | 8 |
| 9 // static | 9 // static |
| 10 scoped_refptr<SchedulerTaskRunnerDelegateImpl> | 10 scoped_refptr<SchedulerTaskRunnerDelegateImpl> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool SchedulerTaskRunnerDelegateImpl::RunsTasksOnCurrentThread() const { | 49 bool SchedulerTaskRunnerDelegateImpl::RunsTasksOnCurrentThread() const { |
| 50 return message_loop_task_runner_->RunsTasksOnCurrentThread(); | 50 return message_loop_task_runner_->RunsTasksOnCurrentThread(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool SchedulerTaskRunnerDelegateImpl::IsNested() const { | 53 bool SchedulerTaskRunnerDelegateImpl::IsNested() const { |
| 54 return message_loop_->IsNested(); | 54 return message_loop_->IsNested(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void SchedulerTaskRunnerDelegateImpl::AddTaskObserver( | |
| 58 base::MessageLoop::TaskObserver* task_observer) { | |
| 59 message_loop_->AddTaskObserver(task_observer); | |
| 60 } | |
| 61 | |
| 62 void SchedulerTaskRunnerDelegateImpl::RemoveTaskObserver( | |
| 63 base::MessageLoop::TaskObserver* task_observer) { | |
| 64 message_loop_->RemoveTaskObserver(task_observer); | |
| 65 } | |
| 66 | |
| 67 } // namespace scheduler | 57 } // namespace scheduler |
| OLD | NEW |