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

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

Issue 2485623002: discardable_memory: Using mojo IPC to replace Chrome IPC (Closed)
Patch Set: Fix bot 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
« no previous file with comments | « content/renderer/DEPS ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
79 namespace gpu { 83 namespace gpu {
80 class GpuChannelHost; 84 class GpuChannelHost;
81 } 85 }
82 86
83 namespace IPC { 87 namespace IPC {
84 class MessageFilter; 88 class MessageFilter;
85 } 89 }
86 90
87 namespace media { 91 namespace media {
88 class GpuVideoAcceleratorFactories; 92 class GpuVideoAcceleratorFactories;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 264
261 // True if we are running layout tests. This currently disables forwarding 265 // True if we are running layout tests. This currently disables forwarding
262 // various status messages to the console, skips network error pages, and 266 // various status messages to the console, skips network error pages, and
263 // short circuits size update and focus events. 267 // short circuits size update and focus events.
264 bool layout_test_mode() const { return !!layout_test_deps_; } 268 bool layout_test_mode() const { return !!layout_test_deps_; }
265 void set_layout_test_dependencies( 269 void set_layout_test_dependencies(
266 std::unique_ptr<LayoutTestDependencies> deps) { 270 std::unique_ptr<LayoutTestDependencies> deps) {
267 layout_test_deps_ = std::move(deps); 271 layout_test_deps_ = std::move(deps);
268 } 272 }
269 273
274 discardable_memory::ClientDiscardableSharedMemoryManager*
275 GetDiscardableSharedMemoryManagerForTest() {
276 return discardable_shared_memory_manager_.get();
277 }
278
270 RendererBlinkPlatformImpl* blink_platform_impl() const { 279 RendererBlinkPlatformImpl* blink_platform_impl() const {
271 DCHECK(blink_platform_impl_); 280 DCHECK(blink_platform_impl_);
272 return blink_platform_impl_.get(); 281 return blink_platform_impl_.get();
273 } 282 }
274 283
275 CompositorForwardingMessageFilter* compositor_message_filter() const { 284 CompositorForwardingMessageFilter* compositor_message_filter() const {
276 return compositor_message_filter_.get(); 285 return compositor_message_filter_.get();
277 } 286 }
278 287
279 InputHandlerManager* input_handler_manager() const { 288 InputHandlerManager* input_handler_manager() const {
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 void ReleaseFreeMemory(); 556 void ReleaseFreeMemory();
548 557
549 void OnSyncMemoryPressure( 558 void OnSyncMemoryPressure(
550 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 559 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
551 560
552 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 561 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
553 int routing_id); 562 int routing_id);
554 563
555 void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request); 564 void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request);
556 565
566 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager>
567 discardable_shared_memory_manager_;
568
557 // These objects live solely on the render thread. 569 // These objects live solely on the render thread.
558 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; 570 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_;
559 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 571 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
560 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 572 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
561 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; 573 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_;
562 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; 574 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_;
563 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; 575 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_;
564 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; 576 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_;
565 std::unique_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; 577 std::unique_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_;
566 578
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 762 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
751 }; 763 };
752 764
753 #if defined(COMPILER_MSVC) 765 #if defined(COMPILER_MSVC)
754 #pragma warning(pop) 766 #pragma warning(pop)
755 #endif 767 #endif
756 768
757 } // namespace content 769 } // namespace content
758 770
759 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 771 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/DEPS ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698