OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } | 69 } |
70 | 70 |
71 namespace cc { | 71 namespace cc { |
72 class BeginFrameSource; | 72 class BeginFrameSource; |
73 class ContextProvider; | 73 class ContextProvider; |
74 class ImageSerializationProcessor; | 74 class ImageSerializationProcessor; |
75 class CompositorFrameSink; | 75 class CompositorFrameSink; |
76 class TaskGraphRunner; | 76 class TaskGraphRunner; |
77 } | 77 } |
78 | 78 |
79 namespace discardable_memory { | |
80 class ClientDiscardableSharedMemoryManager; | |
81 } | |
82 | |
83 namespace gpu { | 79 namespace gpu { |
84 class GpuChannelHost; | 80 class GpuChannelHost; |
85 } | 81 } |
86 | 82 |
87 namespace IPC { | 83 namespace IPC { |
88 class MessageFilter; | 84 class MessageFilter; |
89 } | 85 } |
90 | 86 |
91 namespace media { | 87 namespace media { |
92 class GpuVideoAcceleratorFactories; | 88 class GpuVideoAcceleratorFactories; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 260 |
265 // True if we are running layout tests. This currently disables forwarding | 261 // True if we are running layout tests. This currently disables forwarding |
266 // various status messages to the console, skips network error pages, and | 262 // various status messages to the console, skips network error pages, and |
267 // short circuits size update and focus events. | 263 // short circuits size update and focus events. |
268 bool layout_test_mode() const { return !!layout_test_deps_; } | 264 bool layout_test_mode() const { return !!layout_test_deps_; } |
269 void set_layout_test_dependencies( | 265 void set_layout_test_dependencies( |
270 std::unique_ptr<LayoutTestDependencies> deps) { | 266 std::unique_ptr<LayoutTestDependencies> deps) { |
271 layout_test_deps_ = std::move(deps); | 267 layout_test_deps_ = std::move(deps); |
272 } | 268 } |
273 | 269 |
274 discardable_memory::ClientDiscardableSharedMemoryManager* | |
275 GetDiscardableSharedMemoryManagerForTest() { | |
276 return discardable_shared_memory_manager_.get(); | |
277 } | |
278 | |
279 RendererBlinkPlatformImpl* blink_platform_impl() const { | 270 RendererBlinkPlatformImpl* blink_platform_impl() const { |
280 DCHECK(blink_platform_impl_); | 271 DCHECK(blink_platform_impl_); |
281 return blink_platform_impl_.get(); | 272 return blink_platform_impl_.get(); |
282 } | 273 } |
283 | 274 |
284 CompositorForwardingMessageFilter* compositor_message_filter() const { | 275 CompositorForwardingMessageFilter* compositor_message_filter() const { |
285 return compositor_message_filter_.get(); | 276 return compositor_message_filter_.get(); |
286 } | 277 } |
287 | 278 |
288 InputHandlerManager* input_handler_manager() const { | 279 InputHandlerManager* input_handler_manager() const { |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 void ReleaseFreeMemory(); | 547 void ReleaseFreeMemory(); |
557 | 548 |
558 void OnSyncMemoryPressure( | 549 void OnSyncMemoryPressure( |
559 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 550 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
560 | 551 |
561 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 552 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
562 int routing_id); | 553 int routing_id); |
563 | 554 |
564 void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request); | 555 void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request); |
565 | 556 |
566 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> | |
567 discardable_shared_memory_manager_; | |
568 | |
569 // These objects live solely on the render thread. | 557 // These objects live solely on the render thread. |
570 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; | 558 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; |
571 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_; | 559 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_; |
572 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; | 560 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; |
573 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; | 561 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; |
574 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; | 562 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; |
575 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; | 563 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; |
576 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; | 564 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; |
577 std::unique_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; | 565 std::unique_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; |
578 | 566 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 750 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
763 }; | 751 }; |
764 | 752 |
765 #if defined(COMPILER_MSVC) | 753 #if defined(COMPILER_MSVC) |
766 #pragma warning(pop) | 754 #pragma warning(pop) |
767 #endif | 755 #endif |
768 | 756 |
769 } // namespace content | 757 } // namespace content |
770 | 758 |
771 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 759 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |