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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add unit test for string_message_codec.cc 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 namespace mojom { 70 namespace mojom {
71 class WebBluetoothService; 71 class WebBluetoothService;
72 } 72 }
73 } 73 }
74 74
75 namespace gfx { 75 namespace gfx {
76 class Range; 76 class Range;
77 } 77 }
78 78
79 namespace content { 79 namespace content {
80 class AppWebMessagePortMessageFilter;
81 class AssociatedInterfaceProviderImpl; 80 class AssociatedInterfaceProviderImpl;
82 class CrossProcessFrameConnector; 81 class CrossProcessFrameConnector;
83 class FrameTree; 82 class FrameTree;
84 class FrameTreeNode; 83 class FrameTreeNode;
85 class MediaInterfaceProxy; 84 class MediaInterfaceProxy;
86 class NavigationHandleImpl; 85 class NavigationHandleImpl;
87 class PermissionServiceContext; 86 class PermissionServiceContext;
88 class RenderFrameHostDelegate; 87 class RenderFrameHostDelegate;
89 class RenderFrameProxyHost; 88 class RenderFrameProxyHost;
90 class RenderProcessHost; 89 class RenderProcessHost;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // return a nullptr, whereas GetView() potentially will (for instance, 301 // return a nullptr, whereas GetView() potentially will (for instance,
303 // after a renderer crash). 302 // after a renderer crash).
304 // 303 //
305 // This method crashes if this RenderFrameHostImpl does not own a 304 // This method crashes if this RenderFrameHostImpl does not own a
306 // a RenderWidgetHost and nor does any of its ancestors. That would 305 // a RenderWidgetHost and nor does any of its ancestors. That would
307 // typically mean that the frame has been detached from the frame tree. 306 // typically mean that the frame has been detached from the frame tree.
308 RenderWidgetHostImpl* GetRenderWidgetHost(); 307 RenderWidgetHostImpl* GetRenderWidgetHost();
309 308
310 GlobalFrameRoutingId GetGlobalFrameRoutingId(); 309 GlobalFrameRoutingId GetGlobalFrameRoutingId();
311 310
312 #if defined(OS_ANDROID)
313 scoped_refptr<AppWebMessagePortMessageFilter>
314 GetAppWebMessagePortMessageFilter(int routing_id);
315 #endif
316
317 // This function is called when this is a swapped out RenderFrameHost that 311 // This function is called when this is a swapped out RenderFrameHost that
318 // lives in the same process as the parent frame. The 312 // lives in the same process as the parent frame. The
319 // |cross_process_frame_connector| allows the non-swapped-out 313 // |cross_process_frame_connector| allows the non-swapped-out
320 // RenderFrameHost for a frame to communicate with the parent process 314 // RenderFrameHost for a frame to communicate with the parent process
321 // so that it may composite drawing data. 315 // so that it may composite drawing data.
322 // 316 //
323 // Ownership is not transfered. 317 // Ownership is not transfered.
324 void set_cross_process_frame_connector( 318 void set_cross_process_frame_connector(
325 CrossProcessFrameConnector* cross_process_frame_connector) { 319 CrossProcessFrameConnector* cross_process_frame_connector) {
326 cross_process_frame_connector_ = cross_process_frame_connector; 320 cross_process_frame_connector_ = cross_process_frame_connector;
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; 1014 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_;
1021 1015
1022 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; 1016 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_;
1023 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; 1017 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_;
1024 1018
1025 service_manager::ServiceInfo browser_info_; 1019 service_manager::ServiceInfo browser_info_;
1026 service_manager::ServiceInfo renderer_info_; 1020 service_manager::ServiceInfo renderer_info_;
1027 1021
1028 int on_connect_handler_id_ = 0; 1022 int on_connect_handler_id_ = 0;
1029 1023
1030 #if defined(OS_ANDROID)
1031 // The filter for MessagePort messages between an Android apps and web.
1032 scoped_refptr<AppWebMessagePortMessageFilter>
1033 app_web_message_port_message_filter_;
1034 #endif
1035
1036 std::list<std::unique_ptr<WebBluetoothServiceImpl>> web_bluetooth_services_; 1024 std::list<std::unique_ptr<WebBluetoothServiceImpl>> web_bluetooth_services_;
1037 1025
1038 // The object managing the accessibility tree for this frame. 1026 // The object managing the accessibility tree for this frame.
1039 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; 1027 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
1040 1028
1041 // This is nonzero if we sent an accessibility reset to the renderer and 1029 // This is nonzero if we sent an accessibility reset to the renderer and
1042 // we're waiting for an IPC containing this reset token (sequentially 1030 // we're waiting for an IPC containing this reset token (sequentially
1043 // assigned) and a complete replacement accessibility tree. 1031 // assigned) and a complete replacement accessibility tree.
1044 int accessibility_reset_token_; 1032 int accessibility_reset_token_;
1045 1033
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 1132
1145 // NOTE: This must be the last member. 1133 // NOTE: This must be the last member.
1146 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1134 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1147 1135
1148 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1136 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1149 }; 1137 };
1150 1138
1151 } // namespace content 1139 } // namespace content
1152 1140
1153 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1141 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698