Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(913)

Side by Side Diff: components/scheduler/child/idle_helper.cc

Issue 1374653003: scheduler: Add a base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed gn clobber build. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/scheduler/child/idle_helper.h ('k') | components/scheduler/child/idle_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698