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

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

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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/worker_scheduler_impl.h" 5 #include "components/scheduler/child/worker_scheduler_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop_proxy.h"
9 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
10 #include "base/trace_event/trace_event_argument.h" 9 #include "base/trace_event/trace_event_argument.h"
11 #include "components/scheduler/child/nestable_single_thread_task_runner.h" 10 #include "components/scheduler/child/nestable_single_thread_task_runner.h"
12 11
13 namespace scheduler { 12 namespace scheduler {
14 13
15 WorkerSchedulerImpl::WorkerSchedulerImpl( 14 WorkerSchedulerImpl::WorkerSchedulerImpl(
16 scoped_refptr<NestableSingleThreadTaskRunner> main_task_runner) 15 scoped_refptr<NestableSingleThreadTaskRunner> main_task_runner)
17 : helper_(main_task_runner, 16 : helper_(main_task_runner,
18 "worker.scheduler", 17 "worker.scheduler",
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 bool WorkerSchedulerImpl::CanEnterLongIdlePeriod(base::TimeTicks, 85 bool WorkerSchedulerImpl::CanEnterLongIdlePeriod(base::TimeTicks,
87 base::TimeDelta*) { 86 base::TimeDelta*) {
88 return true; 87 return true;
89 } 88 }
90 89
91 base::TimeTicks WorkerSchedulerImpl::CurrentIdleTaskDeadlineForTesting() const { 90 base::TimeTicks WorkerSchedulerImpl::CurrentIdleTaskDeadlineForTesting() const {
92 return idle_helper_.CurrentIdleTaskDeadline(); 91 return idle_helper_.CurrentIdleTaskDeadline();
93 } 92 }
94 93
95 } // namespace scheduler 94 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698