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/child/scheduler_helper.h" | 10 #include "components/scheduler/child/scheduler_helper.h" |
| 11 #include "components/scheduler/child/task_queue.h" |
11 | 12 |
12 namespace scheduler { | 13 namespace scheduler { |
13 | 14 |
14 IdleHelper::IdleHelper( | 15 IdleHelper::IdleHelper( |
15 SchedulerHelper* helper, | 16 SchedulerHelper* helper, |
16 Delegate* delegate, | 17 Delegate* delegate, |
17 size_t idle_queue_index, | 18 size_t idle_queue_index, |
18 const char* tracing_category, | 19 const char* tracing_category, |
19 const char* disabled_by_default_tracing_category, | 20 const char* disabled_by_default_tracing_category, |
20 const char* idle_period_tracing_name, | 21 const char* idle_period_tracing_name, |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 return "in_long_idle_period_with_max_deadline"; | 487 return "in_long_idle_period_with_max_deadline"; |
487 case IdlePeriodState::IN_LONG_IDLE_PERIOD_PAUSED: | 488 case IdlePeriodState::IN_LONG_IDLE_PERIOD_PAUSED: |
488 return "in_long_idle_period_paused"; | 489 return "in_long_idle_period_paused"; |
489 default: | 490 default: |
490 NOTREACHED(); | 491 NOTREACHED(); |
491 return nullptr; | 492 return nullptr; |
492 } | 493 } |
493 } | 494 } |
494 | 495 |
495 } // namespace scheduler | 496 } // namespace scheduler |
OLD | NEW |