| 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_helper.h" | 5 #include "components/scheduler/child/scheduler_helper.h" |
| 6 | 6 |
| 7 #include "base/time/default_tick_clock.h" | 7 #include "base/time/default_tick_clock.h" |
| 8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
| 9 #include "base/trace_event/trace_event_argument.h" | 9 #include "base/trace_event/trace_event_argument.h" |
| 10 #include "components/scheduler/base/task_queue_impl.h" | 10 #include "components/scheduler/base/task_queue_impl.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 observer_->OnUnregisterTaskQueue(queue); | 148 observer_->OnUnregisterTaskQueue(queue); |
| 149 } | 149 } |
| 150 | 150 |
| 151 void SchedulerHelper::OnTriedToExecuteBlockedTask( | 151 void SchedulerHelper::OnTriedToExecuteBlockedTask( |
| 152 const TaskQueue& queue, | 152 const TaskQueue& queue, |
| 153 const base::PendingTask& task) { | 153 const base::PendingTask& task) { |
| 154 if (observer_) | 154 if (observer_) |
| 155 observer_->OnTriedToExecuteBlockedTask(queue, task); | 155 observer_->OnTriedToExecuteBlockedTask(queue, task); |
| 156 } | 156 } |
| 157 | 157 |
| 158 TaskQueue* SchedulerHelper::CurrentlyExecutingTaskQueue() const { |
| 159 if (!task_queue_manager_) |
| 160 return nullptr; |
| 161 return task_queue_manager_->currently_executing_task_queue(); |
| 162 } |
| 163 |
| 158 } // namespace scheduler | 164 } // namespace scheduler |
| OLD | NEW |