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

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

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT E_FOR_TEST_H_
6 #define CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_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/macros.h" 10 #include "base/macros.h"
11 #include "base/test/simple_test_tick_clock.h" 11 #include "base/test/simple_test_tick_clock.h"
12 #include "components/scheduler/child/scheduler_tqm_delegate.h" 12 #include "platform/scheduler/child/scheduler_tqm_delegate.h"
13 13
14 namespace blink {
14 namespace scheduler { 15 namespace scheduler {
15 16
16 class TaskQueueManagerDelegateForTest; 17 class TaskQueueManagerDelegateForTest;
17 18
18 class SchedulerTqmDelegateForTest : public SchedulerTqmDelegate { 19 class SchedulerTqmDelegateForTest : public SchedulerTqmDelegate {
19 public: 20 public:
20 static scoped_refptr<SchedulerTqmDelegateForTest> Create( 21 static scoped_refptr<SchedulerTqmDelegateForTest> Create(
21 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 22 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
22 std::unique_ptr<base::TickClock> time_source); 23 std::unique_ptr<base::TickClock> time_source);
23 24
(...skipping 24 matching lines...) Expand all
48 std::unique_ptr<base::TickClock> time_source); 49 std::unique_ptr<base::TickClock> time_source);
49 50
50 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; 51 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_;
51 52
52 scoped_refptr<TaskQueueManagerDelegateForTest> task_runner_; 53 scoped_refptr<TaskQueueManagerDelegateForTest> task_runner_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateForTest); 55 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateForTest);
55 }; 56 };
56 57
57 } // namespace scheduler 58 } // namespace scheduler
59 } // namespace blink
58 60
59 #endif // CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ 61 #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