OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_SCHEDULER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ |
6 #define CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ | 6 #define CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ |
7 | 7 |
8 #include "base/atomicops.h" | 8 #include "base/atomicops.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
11 #include "cc/test/test_now_source.h" | 11 #include "cc/test/test_now_source.h" |
12 #include "content/renderer/scheduler/cancelable_closure_holder.h" | 12 #include "content/renderer/scheduler/cancelable_closure_holder.h" |
13 #include "content/renderer/scheduler/renderer_scheduler.h" | 13 #include "content/renderer/scheduler/renderer_scheduler.h" |
14 #include "content/renderer/scheduler/single_thread_idle_task_runner.h" | 14 #include "content/renderer/scheduler/single_thread_idle_task_runner.h" |
15 #include "content/renderer/scheduler/task_queue_manager.h" | 15 #include "content/renderer/scheduler/task_queue_manager.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 namespace debug { | 18 namespace trace_event { |
19 class ConvertableToTraceFormat; | 19 class ConvertableToTraceFormat; |
20 } | 20 } |
| 21 |
| 22 // This is added temporarily. Once the renaming of namespace usages |
| 23 // accross all folders are done, this will be removed. |
| 24 // TODO(ssid): crrev.com/837303004 |
| 25 namespace debug { |
| 26 using ::base::trace_event::ConvertableToTraceFormat; |
21 } | 27 } |
| 28 } // namespace base |
22 | 29 |
23 namespace content { | 30 namespace content { |
24 | 31 |
25 class RendererTaskQueueSelector; | 32 class RendererTaskQueueSelector; |
26 | 33 |
27 class CONTENT_EXPORT RendererSchedulerImpl : public RendererScheduler { | 34 class CONTENT_EXPORT RendererSchedulerImpl : public RendererScheduler { |
28 public: | 35 public: |
29 RendererSchedulerImpl( | 36 RendererSchedulerImpl( |
30 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 37 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
31 ~RendererSchedulerImpl() override; | 38 ~RendererSchedulerImpl() override; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 151 |
145 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; | 152 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; |
146 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 153 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
147 | 154 |
148 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 155 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
149 }; | 156 }; |
150 | 157 |
151 } // namespace content | 158 } // namespace content |
152 | 159 |
153 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ | 160 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ |
OLD | NEW |