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

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

Issue 2375133002: Move MessagePort implementation from android_webview to content (Closed)
Patch Set: Fix compile Created 4 years, 2 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class ListValue; 62 class ListValue;
63 } 63 }
64 64
65 namespace blink { 65 namespace blink {
66 namespace mojom { 66 namespace mojom {
67 class WebBluetoothService; 67 class WebBluetoothService;
68 } 68 }
69 } 69 }
70 70
71 namespace content { 71 namespace content {
72 72 class AppWebMessagePortMessageFilter;
73 class AssociatedInterfaceProviderImpl; 73 class AssociatedInterfaceProviderImpl;
74 class CrossProcessFrameConnector; 74 class CrossProcessFrameConnector;
75 class FrameTree; 75 class FrameTree;
76 class FrameTreeNode; 76 class FrameTreeNode;
77 class NavigationHandleImpl; 77 class NavigationHandleImpl;
78 class PermissionServiceContext; 78 class PermissionServiceContext;
79 class RenderFrameHostDelegate; 79 class RenderFrameHostDelegate;
80 class RenderFrameProxyHost; 80 class RenderFrameProxyHost;
81 class RenderProcessHost; 81 class RenderProcessHost;
82 class RenderViewHostImpl; 82 class RenderViewHostImpl;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // |cross_process_frame_connector| allows the non-swapped-out 299 // |cross_process_frame_connector| allows the non-swapped-out
300 // RenderFrameHost for a frame to communicate with the parent process 300 // RenderFrameHost for a frame to communicate with the parent process
301 // so that it may composite drawing data. 301 // so that it may composite drawing data.
302 // 302 //
303 // Ownership is not transfered. 303 // Ownership is not transfered.
304 void set_cross_process_frame_connector( 304 void set_cross_process_frame_connector(
305 CrossProcessFrameConnector* cross_process_frame_connector) { 305 CrossProcessFrameConnector* cross_process_frame_connector) {
306 cross_process_frame_connector_ = cross_process_frame_connector; 306 cross_process_frame_connector_ = cross_process_frame_connector;
307 } 307 }
308 308
309 #if defined(OS_ANDROID)
310 void set_app_web_message_port_delegate(
311 AppWebMessagePortMessageFilter* filter) {
312 app_web_message_port_message_filter_ = filter;
313 }
314 #endif
315
309 void set_render_frame_proxy_host(RenderFrameProxyHost* proxy) { 316 void set_render_frame_proxy_host(RenderFrameProxyHost* proxy) {
310 render_frame_proxy_host_ = proxy; 317 render_frame_proxy_host_ = proxy;
311 } 318 }
312 319
313 // Returns a bitwise OR of bindings types that have been enabled for this 320 // Returns a bitwise OR of bindings types that have been enabled for this
314 // RenderFrameHostImpl's RenderView. See BindingsPolicy for details. 321 // RenderFrameHostImpl's RenderView. See BindingsPolicy for details.
315 // TODO(creis): Make bindings frame-specific, to support cases like <webview>. 322 // TODO(creis): Make bindings frame-specific, to support cases like <webview>.
316 int GetEnabledBindings(); 323 int GetEnabledBindings();
317 324
318 // The unique ID of the latest NavigationEntry that this RenderFrameHost is 325 // The unique ID of the latest NavigationEntry that this RenderFrameHost is
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 int nav_entry_id_; 960 int nav_entry_id_;
954 961
955 // Used to swap out or shut down this RFH when the unload event is taking too 962 // Used to swap out or shut down this RFH when the unload event is taking too
956 // long to execute, depending on the number of active frames in the 963 // long to execute, depending on the number of active frames in the
957 // SiteInstance. May be null in tests. 964 // SiteInstance. May be null in tests.
958 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; 965 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_;
959 966
960 std::unique_ptr<shell::InterfaceRegistry> interface_registry_; 967 std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
961 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_; 968 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
962 969
970 #if defined(OS_ANDROID)
971 // The filter for MessagePort messages between an Android apps and web.
972 AppWebMessagePortMessageFilter*
973 app_web_message_port_message_filter_;
974 #endif
975
963 std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_; 976 std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_;
964 977
965 // The object managing the accessibility tree for this frame. 978 // The object managing the accessibility tree for this frame.
966 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; 979 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
967 980
968 // This is nonzero if we sent an accessibility reset to the renderer and 981 // This is nonzero if we sent an accessibility reset to the renderer and
969 // we're waiting for an IPC containing this reset token (sequentially 982 // we're waiting for an IPC containing this reset token (sequentially
970 // assigned) and a complete replacement accessibility tree. 983 // assigned) and a complete replacement accessibility tree.
971 int accessibility_reset_token_; 984 int accessibility_reset_token_;
972 985
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 1059
1047 // NOTE: This must be the last member. 1060 // NOTE: This must be the last member.
1048 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1061 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1049 1062
1050 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1063 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1051 }; 1064 };
1052 1065
1053 } // namespace content 1066 } // namespace content
1054 1067
1055 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1068 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698