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

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

Powered by Google App Engine
This is Rietveld 408576698