| 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 "components/scheduler/child/worker_scheduler_impl.h" | 5 #include "components/scheduler/child/worker_scheduler_impl.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 "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "base/trace_event/trace_event_argument.h" | 10 #include "base/trace_event/trace_event_argument.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 SchedulerHelper* WorkerSchedulerImpl::GetSchedulerHelperForTesting() { | 82 SchedulerHelper* WorkerSchedulerImpl::GetSchedulerHelperForTesting() { |
| 83 return &helper_; | 83 return &helper_; |
| 84 } | 84 } |
| 85 | 85 |
| 86 bool WorkerSchedulerImpl::CanEnterLongIdlePeriod(base::TimeTicks, | 86 bool WorkerSchedulerImpl::CanEnterLongIdlePeriod(base::TimeTicks, |
| 87 base::TimeDelta*) { | 87 base::TimeDelta*) { |
| 88 return true; | 88 return true; |
| 89 } | 89 } |
| 90 | 90 |
| 91 base::TimeTicks WorkerSchedulerImpl::CurrentIdleTaskDeadlineForTesting() const { | 91 base::TimeTicks WorkerSchedulerImpl::CurrentIdleTaskDeadlineForTesting() const { |
| 92 base::TimeTicks deadline; | 92 return idle_helper_.CurrentIdleTaskDeadline(); |
| 93 idle_helper_.CurrentIdleTaskDeadlineCallback(&deadline); | |
| 94 return deadline; | |
| 95 } | 93 } |
| 96 | 94 |
| 97 } // namespace scheduler | 95 } // namespace scheduler |
| OLD | NEW |