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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2485623002: discardable_memory: Using mojo IPC to replace Chrome IPC (Closed)
Patch Set: Address review issues Created 4 years 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 (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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 69
70 namespace cc { 70 namespace cc {
71 class BeginFrameSource; 71 class BeginFrameSource;
72 class ContextProvider; 72 class ContextProvider;
73 class ImageSerializationProcessor; 73 class ImageSerializationProcessor;
74 class CompositorFrameSink; 74 class CompositorFrameSink;
75 class TaskGraphRunner; 75 class TaskGraphRunner;
76 } 76 }
77 77
78 namespace discardable_memory {
79 class ClientDiscardableSharedMemoryManager;
80 }
81
78 namespace gpu { 82 namespace gpu {
79 class GpuChannelHost; 83 class GpuChannelHost;
80 } 84 }
81 85
82 namespace IPC { 86 namespace IPC {
83 class MessageFilter; 87 class MessageFilter;
84 } 88 }
85 89
86 namespace media { 90 namespace media {
87 class GpuVideoAcceleratorFactories; 91 class GpuVideoAcceleratorFactories;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 260
257 // True if we are running layout tests. This currently disables forwarding 261 // True if we are running layout tests. This currently disables forwarding
258 // various status messages to the console, skips network error pages, and 262 // various status messages to the console, skips network error pages, and
259 // short circuits size update and focus events. 263 // short circuits size update and focus events.
260 bool layout_test_mode() const { return !!layout_test_deps_; } 264 bool layout_test_mode() const { return !!layout_test_deps_; }
261 void set_layout_test_dependencies( 265 void set_layout_test_dependencies(
262 std::unique_ptr<LayoutTestDependencies> deps) { 266 std::unique_ptr<LayoutTestDependencies> deps) {
263 layout_test_deps_ = std::move(deps); 267 layout_test_deps_ = std::move(deps);
264 } 268 }
265 269
270 discardable_memory::ClientDiscardableSharedMemoryManager*
271 GetDiscardableSharedMemoryManagerForTest() {
272 return discardable_shared_memory_manager_.get();
273 }
274
266 RendererBlinkPlatformImpl* blink_platform_impl() const { 275 RendererBlinkPlatformImpl* blink_platform_impl() const {
267 DCHECK(blink_platform_impl_); 276 DCHECK(blink_platform_impl_);
268 return blink_platform_impl_.get(); 277 return blink_platform_impl_.get();
269 } 278 }
270 279
271 CompositorForwardingMessageFilter* compositor_message_filter() const { 280 CompositorForwardingMessageFilter* compositor_message_filter() const {
272 return compositor_message_filter_.get(); 281 return compositor_message_filter_.get();
273 } 282 }
274 283
275 InputHandlerManager* input_handler_manager() const { 284 InputHandlerManager* input_handler_manager() const {
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 void ReleaseFreeMemory(); 547 void ReleaseFreeMemory();
539 548
540 void OnSyncMemoryPressure( 549 void OnSyncMemoryPressure(
541 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 550 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
542 551
543 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 552 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
544 int routing_id); 553 int routing_id);
545 554
546 void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request); 555 void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request);
547 556
557 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager>
558 discardable_shared_memory_manager_;
559
548 // These objects live solely on the render thread. 560 // These objects live solely on the render thread.
549 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; 561 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_;
550 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 562 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
551 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 563 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
552 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; 564 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_;
553 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; 565 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_;
554 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; 566 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_;
555 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; 567 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_;
556 std::unique_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; 568 std::unique_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_;
557 569
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 749 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
738 }; 750 };
739 751
740 #if defined(COMPILER_MSVC) 752 #if defined(COMPILER_MSVC)
741 #pragma warning(pop) 753 #pragma warning(pop)
742 #endif 754 #endif
743 755
744 } // namespace content 756 } // namespace content
745 757
746 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 758 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698