| 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/idle_helper.h" | 5 #include "components/scheduler/child/idle_helper.h" |
| 6 | 6 |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.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.h" |
| 11 #include "components/scheduler/base/task_queue_manager.h" |
| 10 #include "components/scheduler/child/scheduler_helper.h" | 12 #include "components/scheduler/child/scheduler_helper.h" |
| 11 #include "components/scheduler/child/task_queue.h" | |
| 12 #include "components/scheduler/child/task_queue_manager.h" | |
| 13 | 13 |
| 14 namespace scheduler { | 14 namespace scheduler { |
| 15 | 15 |
| 16 IdleHelper::IdleHelper( | 16 IdleHelper::IdleHelper( |
| 17 SchedulerHelper* helper, | 17 SchedulerHelper* helper, |
| 18 Delegate* delegate, | 18 Delegate* delegate, |
| 19 const char* tracing_category, | 19 const char* tracing_category, |
| 20 const char* disabled_by_default_tracing_category, | 20 const char* disabled_by_default_tracing_category, |
| 21 const char* idle_period_tracing_name, | 21 const char* idle_period_tracing_name, |
| 22 base::TimeDelta required_quiescence_duration_before_long_idle_period) | 22 base::TimeDelta required_quiescence_duration_before_long_idle_period) |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 return "in_long_idle_period_with_max_deadline"; | 473 return "in_long_idle_period_with_max_deadline"; |
| 474 case IdlePeriodState::IN_LONG_IDLE_PERIOD_PAUSED: | 474 case IdlePeriodState::IN_LONG_IDLE_PERIOD_PAUSED: |
| 475 return "in_long_idle_period_paused"; | 475 return "in_long_idle_period_paused"; |
| 476 default: | 476 default: |
| 477 NOTREACHED(); | 477 NOTREACHED(); |
| 478 return nullptr; | 478 return nullptr; |
| 479 } | 479 } |
| 480 } | 480 } |
| 481 | 481 |
| 482 } // namespace scheduler | 482 } // namespace scheduler |
| OLD | NEW |