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

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

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Rebase 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // return a nullptr, whereas GetView() potentially will (for instance, 299 // return a nullptr, whereas GetView() potentially will (for instance,
301 // after a renderer crash). 300 // after a renderer crash).
302 // 301 //
303 // This method crashes if this RenderFrameHostImpl does not own a 302 // This method crashes if this RenderFrameHostImpl does not own a
304 // a RenderWidgetHost and nor does any of its ancestors. That would 303 // a RenderWidgetHost and nor does any of its ancestors. That would
305 // typically mean that the frame has been detached from the frame tree. 304 // typically mean that the frame has been detached from the frame tree.
306 RenderWidgetHostImpl* GetRenderWidgetHost(); 305 RenderWidgetHostImpl* GetRenderWidgetHost();
307 306
308 GlobalFrameRoutingId GetGlobalFrameRoutingId(); 307 GlobalFrameRoutingId GetGlobalFrameRoutingId();
309 308
310 #if defined(OS_ANDROID)
311 scoped_refptr<AppWebMessagePortMessageFilter>
312 GetAppWebMessagePortMessageFilter(int routing_id);
313 #endif
314
315 // This function is called when this is a swapped out RenderFrameHost that 309 // This function is called when this is a swapped out RenderFrameHost that
316 // lives in the same process as the parent frame. The 310 // lives in the same process as the parent frame. The
317 // |cross_process_frame_connector| allows the non-swapped-out 311 // |cross_process_frame_connector| allows the non-swapped-out
318 // RenderFrameHost for a frame to communicate with the parent process 312 // RenderFrameHost for a frame to communicate with the parent process
319 // so that it may composite drawing data. 313 // so that it may composite drawing data.
320 // 314 //
321 // Ownership is not transfered. 315 // Ownership is not transfered.
322 void set_cross_process_frame_connector( 316 void set_cross_process_frame_connector(
323 CrossProcessFrameConnector* cross_process_frame_connector) { 317 CrossProcessFrameConnector* cross_process_frame_connector) {
324 cross_process_frame_connector_ = cross_process_frame_connector; 318 cross_process_frame_connector_ = cross_process_frame_connector;
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; 1016 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_;
1023 1017
1024 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; 1018 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_;
1025 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; 1019 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_;
1026 1020
1027 service_manager::ServiceInfo browser_info_; 1021 service_manager::ServiceInfo browser_info_;
1028 service_manager::ServiceInfo renderer_info_; 1022 service_manager::ServiceInfo renderer_info_;
1029 1023
1030 int on_connect_handler_id_ = 0; 1024 int on_connect_handler_id_ = 0;
1031 1025
1032 #if defined(OS_ANDROID)
1033 // The filter for MessagePort messages between an Android apps and web.
1034 scoped_refptr<AppWebMessagePortMessageFilter>
1035 app_web_message_port_message_filter_;
1036 #endif
1037
1038 std::list<std::unique_ptr<WebBluetoothServiceImpl>> web_bluetooth_services_; 1026 std::list<std::unique_ptr<WebBluetoothServiceImpl>> web_bluetooth_services_;
1039 1027
1040 // The object managing the accessibility tree for this frame. 1028 // The object managing the accessibility tree for this frame.
1041 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; 1029 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
1042 1030
1043 // This is nonzero if we sent an accessibility reset to the renderer and 1031 // This is nonzero if we sent an accessibility reset to the renderer and
1044 // we're waiting for an IPC containing this reset token (sequentially 1032 // we're waiting for an IPC containing this reset token (sequentially
1045 // assigned) and a complete replacement accessibility tree. 1033 // assigned) and a complete replacement accessibility tree.
1046 int accessibility_reset_token_; 1034 int accessibility_reset_token_;
1047 1035
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 1129
1142 // NOTE: This must be the last member. 1130 // NOTE: This must be the last member.
1143 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1131 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1144 1132
1145 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1133 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1146 }; 1134 };
1147 1135
1148 } // namespace content 1136 } // namespace content
1149 1137
1150 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1138 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698