| 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 "platform/scheduler/child/idle_helper.h" | 5 #include "platform/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 "platform/scheduler/base/real_time_domain.h" | 10 #include "platform/scheduler/base/real_time_domain.h" |
| 11 #include "public/platform/scheduler/base/task_queue.h" | |
| 12 #include "platform/scheduler/base/task_queue_manager.h" | 11 #include "platform/scheduler/base/task_queue_manager.h" |
| 13 #include "platform/scheduler/child/scheduler_helper.h" | 12 #include "platform/scheduler/child/scheduler_helper.h" |
| 14 #include "platform/scheduler/child/scheduler_tqm_delegate.h" | 13 #include "platform/scheduler/child/scheduler_tqm_delegate.h" |
| 14 #include "public/platform/scheduler/base/task_queue.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 namespace scheduler { | 17 namespace scheduler { |
| 18 | 18 |
| 19 IdleHelper::IdleHelper( | 19 IdleHelper::IdleHelper( |
| 20 SchedulerHelper* helper, | 20 SchedulerHelper* helper, |
| 21 Delegate* delegate, | 21 Delegate* delegate, |
| 22 const char* tracing_category, | 22 const char* tracing_category, |
| 23 const char* disabled_by_default_tracing_category, | 23 const char* disabled_by_default_tracing_category, |
| 24 const char* idle_period_tracing_name, | 24 const char* idle_period_tracing_name, |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 case IdlePeriodState::IN_LONG_IDLE_PERIOD_PAUSED: | 503 case IdlePeriodState::IN_LONG_IDLE_PERIOD_PAUSED: |
| 504 return "in_long_idle_period_paused"; | 504 return "in_long_idle_period_paused"; |
| 505 default: | 505 default: |
| 506 NOTREACHED(); | 506 NOTREACHED(); |
| 507 return nullptr; | 507 return nullptr; |
| 508 } | 508 } |
| 509 } | 509 } |
| 510 | 510 |
| 511 } // namespace scheduler | 511 } // namespace scheduler |
| 512 } // namespace blink | 512 } // namespace blink |
| OLD | NEW |