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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_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/base/task_queue_manager_delegate_for_test.h" 5 #include "platform/scheduler/base/task_queue_manager_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 bool TaskQueueManagerDelegateForTest::RunsTasksOnCurrentThread() const { 46 bool TaskQueueManagerDelegateForTest::RunsTasksOnCurrentThread() const {
47 return task_runner_->RunsTasksOnCurrentThread(); 47 return task_runner_->RunsTasksOnCurrentThread();
48 } 48 }
49 49
50 bool TaskQueueManagerDelegateForTest::IsNested() const { 50 bool TaskQueueManagerDelegateForTest::IsNested() const {
51 return false; 51 return false;
52 } 52 }
53 53
54 void TaskQueueManagerDelegateForTest::AddNestingObserver( 54 void TaskQueueManagerDelegateForTest::AddNestingObserver(
55 base::MessageLoop::NestingObserver* observer) {} 55 base::RunLoop::NestingObserver* observer) {}
56 56
57 void TaskQueueManagerDelegateForTest::RemoveNestingObserver( 57 void TaskQueueManagerDelegateForTest::RemoveNestingObserver(
58 base::MessageLoop::NestingObserver* observer) {} 58 base::RunLoop::NestingObserver* observer) {}
59 59
60 base::TimeTicks TaskQueueManagerDelegateForTest::NowTicks() { 60 base::TimeTicks TaskQueueManagerDelegateForTest::NowTicks() {
61 return time_source_->NowTicks(); 61 return time_source_->NowTicks();
62 } 62 }
63 63
64 } // namespace scheduler 64 } // namespace scheduler
65 } // namespace blink 65 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698