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_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 class SharedPersistentMemoryAllocator; | 53 class SharedPersistentMemoryAllocator; |
54 } | 54 } |
55 | 55 |
56 namespace content { | 56 namespace content { |
57 class AudioInputRendererHost; | 57 class AudioInputRendererHost; |
58 class AudioRendererHost; | 58 class AudioRendererHost; |
59 class ChildConnection; | 59 class ChildConnection; |
60 class GpuClient; | 60 class GpuClient; |
61 class IndexedDBDispatcherHost; | 61 class IndexedDBDispatcherHost; |
62 class InProcessChildThreadParams; | 62 class InProcessChildThreadParams; |
63 class MessagePortMessageFilter; | |
64 class NotificationMessageFilter; | 63 class NotificationMessageFilter; |
65 #if BUILDFLAG(ENABLE_WEBRTC) | 64 #if BUILDFLAG(ENABLE_WEBRTC) |
66 class P2PSocketDispatcherHost; | 65 class P2PSocketDispatcherHost; |
67 #endif | 66 #endif |
68 class PermissionServiceContext; | 67 class PermissionServiceContext; |
69 class PeerConnectionTrackerHost; | 68 class PeerConnectionTrackerHost; |
70 class RenderFrameMessageFilter; | 69 class RenderFrameMessageFilter; |
71 class RenderWidgetHelper; | 70 class RenderWidgetHelper; |
72 class RenderWidgetHost; | 71 class RenderWidgetHost; |
73 class ResourceMessageFilter; | 72 class ResourceMessageFilter; |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // This forces a renderer that is running "in process" to shut down. | 251 // This forces a renderer that is running "in process" to shut down. |
253 static void ShutDownInProcessRenderer(); | 252 static void ShutDownInProcessRenderer(); |
254 | 253 |
255 static void RegisterRendererMainThreadFactory( | 254 static void RegisterRendererMainThreadFactory( |
256 RendererMainThreadFactoryFunction create); | 255 RendererMainThreadFactoryFunction create); |
257 | 256 |
258 RenderFrameMessageFilter* render_frame_message_filter_for_testing() const { | 257 RenderFrameMessageFilter* render_frame_message_filter_for_testing() const { |
259 return render_frame_message_filter_.get(); | 258 return render_frame_message_filter_.get(); |
260 } | 259 } |
261 | 260 |
262 MessagePortMessageFilter* message_port_message_filter() const { | |
263 return message_port_message_filter_.get(); | |
264 } | |
265 | |
266 NotificationMessageFilter* notification_message_filter() const { | 261 NotificationMessageFilter* notification_message_filter() const { |
267 return notification_message_filter_.get(); | 262 return notification_message_filter_.get(); |
268 } | 263 } |
269 | 264 |
270 #if defined(OS_ANDROID) | 265 #if defined(OS_ANDROID) |
271 SynchronousCompositorBrowserFilter* synchronous_compositor_filter() const { | 266 SynchronousCompositorBrowserFilter* synchronous_compositor_filter() const { |
272 return synchronous_compositor_filter_.get(); | 267 return synchronous_compositor_filter_.get(); |
273 } | 268 } |
274 #endif | 269 #endif |
275 | 270 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 // Whether this process currently has backgrounded priority. Tracked so that | 463 // Whether this process currently has backgrounded priority. Tracked so that |
469 // UpdateProcessPriority() can avoid redundantly setting the priority. | 464 // UpdateProcessPriority() can avoid redundantly setting the priority. |
470 bool is_process_backgrounded_; | 465 bool is_process_backgrounded_; |
471 | 466 |
472 // Used to allow a RenderWidgetHost to intercept various messages on the | 467 // Used to allow a RenderWidgetHost to intercept various messages on the |
473 // IO thread. | 468 // IO thread. |
474 scoped_refptr<RenderWidgetHelper> widget_helper_; | 469 scoped_refptr<RenderWidgetHelper> widget_helper_; |
475 | 470 |
476 scoped_refptr<RenderFrameMessageFilter> render_frame_message_filter_; | 471 scoped_refptr<RenderFrameMessageFilter> render_frame_message_filter_; |
477 | 472 |
478 // The filter for MessagePort messages coming from the renderer. | |
479 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; | |
480 | |
481 // The filter for Web Notification messages coming from the renderer. Holds a | 473 // The filter for Web Notification messages coming from the renderer. Holds a |
482 // closure per notification that must be freed when the notification closes. | 474 // closure per notification that must be freed when the notification closes. |
483 scoped_refptr<NotificationMessageFilter> notification_message_filter_; | 475 scoped_refptr<NotificationMessageFilter> notification_message_filter_; |
484 | 476 |
485 #if defined(OS_ANDROID) | 477 #if defined(OS_ANDROID) |
486 scoped_refptr<SynchronousCompositorBrowserFilter> | 478 scoped_refptr<SynchronousCompositorBrowserFilter> |
487 synchronous_compositor_filter_; | 479 synchronous_compositor_filter_; |
488 #endif | 480 #endif |
489 | 481 |
490 // Used in single-process mode. | 482 // Used in single-process mode. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 instance_weak_factory_; | 607 instance_weak_factory_; |
616 | 608 |
617 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 609 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
618 | 610 |
619 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 611 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
620 }; | 612 }; |
621 | 613 |
622 } // namespace content | 614 } // namespace content |
623 | 615 |
624 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 616 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |