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

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

Issue 1223163006: Implement PostDelayedTaskAt for guaranteed timer ordering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing include to IdleHelperTest. Created 5 years, 5 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/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
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
OLDNEW
« no previous file with comments | « components/scheduler/child/child_scheduler.h ('k') | components/scheduler/child/idle_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698