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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Address feedback from yusuf Created 3 years, 10 months 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_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class SharedPersistentMemoryAllocator; 52 class SharedPersistentMemoryAllocator;
53 } 53 }
54 54
55 namespace content { 55 namespace content {
56 class AudioInputRendererHost; 56 class AudioInputRendererHost;
57 class AudioRendererHost; 57 class AudioRendererHost;
58 class ChildConnection; 58 class ChildConnection;
59 class GpuClient; 59 class GpuClient;
60 class IndexedDBDispatcherHost; 60 class IndexedDBDispatcherHost;
61 class InProcessChildThreadParams; 61 class InProcessChildThreadParams;
62 class MessagePortMessageFilter;
63 class NotificationMessageFilter; 62 class NotificationMessageFilter;
64 #if BUILDFLAG(ENABLE_WEBRTC) 63 #if BUILDFLAG(ENABLE_WEBRTC)
65 class P2PSocketDispatcherHost; 64 class P2PSocketDispatcherHost;
66 #endif 65 #endif
67 class PermissionServiceContext; 66 class PermissionServiceContext;
68 class PeerConnectionTrackerHost; 67 class PeerConnectionTrackerHost;
69 class RenderFrameMessageFilter; 68 class RenderFrameMessageFilter;
70 class RenderWidgetHelper; 69 class RenderWidgetHelper;
71 class RenderWidgetHost; 70 class RenderWidgetHost;
72 class ResourceMessageFilter; 71 class ResourceMessageFilter;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 // Whether this process currently has backgrounded priority. Tracked so that 457 // Whether this process currently has backgrounded priority. Tracked so that
463 // UpdateProcessPriority() can avoid redundantly setting the priority. 458 // UpdateProcessPriority() can avoid redundantly setting the priority.
464 bool is_process_backgrounded_; 459 bool is_process_backgrounded_;
465 460
466 // Used to allow a RenderWidgetHost to intercept various messages on the 461 // Used to allow a RenderWidgetHost to intercept various messages on the
467 // IO thread. 462 // IO thread.
468 scoped_refptr<RenderWidgetHelper> widget_helper_; 463 scoped_refptr<RenderWidgetHelper> widget_helper_;
469 464
470 scoped_refptr<RenderFrameMessageFilter> render_frame_message_filter_; 465 scoped_refptr<RenderFrameMessageFilter> render_frame_message_filter_;
471 466
472 // The filter for MessagePort messages coming from the renderer.
473 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_;
474
475 // The filter for Web Notification messages coming from the renderer. Holds a 467 // The filter for Web Notification messages coming from the renderer. Holds a
476 // closure per notification that must be freed when the notification closes. 468 // closure per notification that must be freed when the notification closes.
477 scoped_refptr<NotificationMessageFilter> notification_message_filter_; 469 scoped_refptr<NotificationMessageFilter> notification_message_filter_;
478 470
479 #if defined(OS_ANDROID) 471 #if defined(OS_ANDROID)
480 scoped_refptr<SynchronousCompositorBrowserFilter> 472 scoped_refptr<SynchronousCompositorBrowserFilter>
481 synchronous_compositor_filter_; 473 synchronous_compositor_filter_;
482 #endif 474 #endif
483 475
484 // Used in single-process mode. 476 // Used in single-process mode.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 instance_weak_factory_; 597 instance_weak_factory_;
606 598
607 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 599 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
608 600
609 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 601 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
610 }; 602 };
611 603
612 } // namespace content 604 } // namespace content
613 605
614 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 606 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698