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

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

Issue 1151353003: [scheduler]: Avoid waking up the scheduler to end long idle periods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@end_idle_sync_2
Patch Set: Fix Win for realz hopefully... Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/null_idle_task_runner.h" 5 #include "components/scheduler/child/null_idle_task_runner.h"
6 6
7 namespace scheduler { 7 namespace scheduler {
8 8
9 NullIdleTaskRunner::NullIdleTaskRunner() 9 NullIdleTaskRunner::NullIdleTaskRunner()
10 : SingleThreadIdleTaskRunner(nullptr, 10 : SingleThreadIdleTaskRunner(nullptr, nullptr, nullptr, "null.taskrunner") {
11 nullptr,
12 base::Callback<void(base::TimeTicks*)>(),
13 "null.taskrunner") {
14 } 11 }
15 12
16 NullIdleTaskRunner::~NullIdleTaskRunner() { 13 NullIdleTaskRunner::~NullIdleTaskRunner() {
17 } 14 }
18 15
19 void NullIdleTaskRunner::PostIdleTask( 16 void NullIdleTaskRunner::PostIdleTask(
20 const tracked_objects::Location& from_here, 17 const tracked_objects::Location& from_here,
21 const IdleTask& idle_task) { 18 const IdleTask& idle_task) {
22 } 19 }
23 20
24 void NullIdleTaskRunner::PostNonNestableIdleTask( 21 void NullIdleTaskRunner::PostNonNestableIdleTask(
25 const tracked_objects::Location& from_here, 22 const tracked_objects::Location& from_here,
26 const IdleTask& idle_task) { 23 const IdleTask& idle_task) {
27 } 24 }
28 25
29 void NullIdleTaskRunner::PostIdleTaskAfterWakeup( 26 void NullIdleTaskRunner::PostIdleTaskAfterWakeup(
30 const tracked_objects::Location& from_here, 27 const tracked_objects::Location& from_here,
31 const IdleTask& idle_task) { 28 const IdleTask& idle_task) {
32 } 29 }
33 30
34 } // namespace scheduler 31 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/child/nestable_task_runner_for_test.cc ('k') | components/scheduler/child/pollable_thread_safe_flag.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698