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

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

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase Created 3 years, 8 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 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT E_FOR_TEST_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT E_FOR_TEST_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT E_FOR_TEST_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT E_FOR_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 static scoped_refptr<SchedulerTqmDelegateForTest> Create( 22 static scoped_refptr<SchedulerTqmDelegateForTest> Create(
23 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 23 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
24 std::unique_ptr<base::TickClock> time_source); 24 std::unique_ptr<base::TickClock> time_source);
25 25
26 // SchedulerTqmDelegate implementation 26 // SchedulerTqmDelegate implementation
27 void SetDefaultTaskRunner( 27 void SetDefaultTaskRunner(
28 scoped_refptr<base::SingleThreadTaskRunner> task_runner) override; 28 scoped_refptr<base::SingleThreadTaskRunner> task_runner) override;
29 void RestoreDefaultTaskRunner() override; 29 void RestoreDefaultTaskRunner() override;
30 bool PostDelayedTask(const tracked_objects::Location& from_here, 30 bool PostDelayedTask(const tracked_objects::Location& from_here,
31 base::Closure task, 31 base::OnceClosure task,
32 base::TimeDelta delay) override; 32 base::TimeDelta delay) override;
33 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, 33 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
34 base::Closure task, 34 base::OnceClosure task,
35 base::TimeDelta delay) override; 35 base::TimeDelta delay) override;
36 bool RunsTasksOnCurrentThread() const override; 36 bool RunsTasksOnCurrentThread() const override;
37 bool IsNested() const override; 37 bool IsNested() const override;
38 void AddNestingObserver( 38 void AddNestingObserver(
39 base::MessageLoop::NestingObserver* observer) override; 39 base::MessageLoop::NestingObserver* observer) override;
40 void RemoveNestingObserver( 40 void RemoveNestingObserver(
41 base::MessageLoop::NestingObserver* observer) override; 41 base::MessageLoop::NestingObserver* observer) override;
42 base::TimeTicks NowTicks() override; 42 base::TimeTicks NowTicks() override;
43 43
44 base::SingleThreadTaskRunner* default_task_runner() const { 44 base::SingleThreadTaskRunner* default_task_runner() const {
(...skipping 12 matching lines...) Expand all
57 57
58 scoped_refptr<TaskQueueManagerDelegateForTest> task_runner_; 58 scoped_refptr<TaskQueueManagerDelegateForTest> task_runner_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateForTest); 60 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateForTest);
61 }; 61 };
62 62
63 } // namespace scheduler 63 } // namespace scheduler
64 } // namespace blink 64 } // namespace blink
65 65
66 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELE GATE_FOR_TEST_H_ 66 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELE GATE_FOR_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698