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

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

Issue 1250613002: scheduler: Remove task observer shenanigans (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a failing test. 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/scheduler_task_runner_delegate_impl.h" 5 #include "components/scheduler/child/scheduler_task_runner_delegate_impl.h"
6 6
7 namespace scheduler { 7 namespace scheduler {
8 8
9 // static 9 // static
10 scoped_refptr<SchedulerTaskRunnerDelegateImpl> 10 scoped_refptr<SchedulerTaskRunnerDelegateImpl>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 bool SchedulerTaskRunnerDelegateImpl::RunsTasksOnCurrentThread() const { 49 bool SchedulerTaskRunnerDelegateImpl::RunsTasksOnCurrentThread() const {
50 return message_loop_task_runner_->RunsTasksOnCurrentThread(); 50 return message_loop_task_runner_->RunsTasksOnCurrentThread();
51 } 51 }
52 52
53 bool SchedulerTaskRunnerDelegateImpl::IsNested() const { 53 bool SchedulerTaskRunnerDelegateImpl::IsNested() const {
54 return message_loop_->IsNested(); 54 return message_loop_->IsNested();
55 } 55 }
56 56
57 void SchedulerTaskRunnerDelegateImpl::AddTaskObserver(
58 base::MessageLoop::TaskObserver* task_observer) {
59 message_loop_->AddTaskObserver(task_observer);
60 }
61
62 void SchedulerTaskRunnerDelegateImpl::RemoveTaskObserver(
63 base::MessageLoop::TaskObserver* task_observer) {
64 message_loop_->RemoveTaskObserver(task_observer);
65 }
66
67 } // namespace scheduler 57 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/child/scheduler_task_runner_delegate_impl.h ('k') | components/scheduler/child/task_queue_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698