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 "content/renderer/scheduler/cancelable_closure_holder.h" | 11 #include "content/renderer/scheduler/cancelable_closure_holder.h" |
12 #include "content/renderer/scheduler/renderer_scheduler.h" | 12 #include "content/renderer/scheduler/renderer_scheduler.h" |
13 #include "content/renderer/scheduler/single_thread_idle_task_runner.h" | 13 #include "content/renderer/scheduler/single_thread_idle_task_runner.h" |
14 #include "content/renderer/scheduler/task_queue_manager.h" | 14 #include "content/renderer/scheduler/task_queue_manager.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 namespace debug { | 17 namespace trace_event { |
18 class ConvertableToTraceFormat; | 18 class ConvertableToTraceFormat; |
19 } | 19 } |
| 20 |
| 21 // TODO(ssid): remove these aliases after the tracing clients are moved to the |
| 22 // new trace_event namespace. See crbug.com/451032. ETA: March 2015 |
| 23 namespace debug { |
| 24 using ::base::trace_event::ConvertableToTraceFormat; |
20 } | 25 } |
| 26 } // namespace base |
21 | 27 |
22 namespace content { | 28 namespace content { |
23 | 29 |
24 class RendererTaskQueueSelector; | 30 class RendererTaskQueueSelector; |
25 | 31 |
26 class CONTENT_EXPORT RendererSchedulerImpl : public RendererScheduler { | 32 class CONTENT_EXPORT RendererSchedulerImpl : public RendererScheduler { |
27 public: | 33 public: |
28 RendererSchedulerImpl( | 34 RendererSchedulerImpl( |
29 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 35 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
30 ~RendererSchedulerImpl() override; | 36 ~RendererSchedulerImpl() override; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 147 |
142 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; | 148 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; |
143 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 149 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
144 | 150 |
145 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 151 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
146 }; | 152 }; |
147 | 153 |
148 } // namespace content | 154 } // namespace content |
149 | 155 |
150 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ | 156 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ |
OLD | NEW |