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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_for_test.cc

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: still need to check MessageLoop::current() in Mojo's RunLoopNestingObserver::GetForThread() Created 3 years, 7 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 "platform/scheduler/child/scheduler_tqm_delegate_for_test.h" 5 #include "platform/scheduler/child/scheduler_tqm_delegate_for_test.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 bool SchedulerTqmDelegateForTest::RunsTasksOnCurrentThread() const { 57 bool SchedulerTqmDelegateForTest::RunsTasksOnCurrentThread() const {
58 return task_runner_->RunsTasksOnCurrentThread(); 58 return task_runner_->RunsTasksOnCurrentThread();
59 } 59 }
60 60
61 bool SchedulerTqmDelegateForTest::IsNested() const { 61 bool SchedulerTqmDelegateForTest::IsNested() const {
62 return task_runner_->IsNested(); 62 return task_runner_->IsNested();
63 } 63 }
64 64
65 void SchedulerTqmDelegateForTest::AddNestingObserver( 65 void SchedulerTqmDelegateForTest::AddNestingObserver(
66 base::MessageLoop::NestingObserver* observer) {} 66 base::RunLoop::NestingObserver* observer) {}
67 67
68 void SchedulerTqmDelegateForTest::RemoveNestingObserver( 68 void SchedulerTqmDelegateForTest::RemoveNestingObserver(
69 base::MessageLoop::NestingObserver* observer) {} 69 base::RunLoop::NestingObserver* observer) {}
70 70
71 base::TimeTicks SchedulerTqmDelegateForTest::NowTicks() { 71 base::TimeTicks SchedulerTqmDelegateForTest::NowTicks() {
72 return task_runner_->NowTicks(); 72 return task_runner_->NowTicks();
73 } 73 }
74 74
75 } // namespace scheduler 75 } // namespace scheduler
76 } // namespace blink 76 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698