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

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

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase & remove inline keyword 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 bool SchedulerTqmDelegateForTest::PostNonNestableDelayedTask( 49 bool SchedulerTqmDelegateForTest::PostNonNestableDelayedTask(
50 const tracked_objects::Location& from_here, 50 const tracked_objects::Location& from_here,
51 base::OnceClosure task, 51 base::OnceClosure task,
52 base::TimeDelta delay) { 52 base::TimeDelta delay) {
53 return task_runner_->PostNonNestableDelayedTask(from_here, std::move(task), 53 return task_runner_->PostNonNestableDelayedTask(from_here, std::move(task),
54 delay); 54 delay);
55 } 55 }
56 56
57 bool SchedulerTqmDelegateForTest::RunsTasksOnCurrentThread() const { 57 bool SchedulerTqmDelegateForTest::RunsTasksInCurrentSequence() const {
58 return task_runner_->RunsTasksOnCurrentThread(); 58 return task_runner_->RunsTasksInCurrentSequence();
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::RunLoop::NestingObserver* observer) {} 66 base::RunLoop::NestingObserver* observer) {}
67 67
68 void SchedulerTqmDelegateForTest::RemoveNestingObserver( 68 void SchedulerTqmDelegateForTest::RemoveNestingObserver(
69 base::RunLoop::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