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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2375133002: Move MessagePort implementation from android_webview to content (Closed)
Patch Set: rsesek nits and git cl format 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 8b275095cde371d47a7f685882c021fd138cec43..5c073f92b2c49e4f5ef25b6ad9bddadce534b2f0 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -69,7 +69,7 @@ class WebBluetoothService;
}
namespace content {
-
+class AppWebMessagePortMessageFilter;
class AssociatedInterfaceProviderImpl;
class CrossProcessFrameConnector;
class CrossSiteTransferringRequest;
@@ -295,6 +295,11 @@ class CONTENT_EXPORT RenderFrameHostImpl
GlobalFrameRoutingId GetGlobalFrameRoutingId();
+#if defined(OS_ANDROID)
+ scoped_refptr<AppWebMessagePortMessageFilter>
+ GetAppWebMessagePortMessageFilter(int routing_id);
+#endif
+
// This function is called when this is a swapped out RenderFrameHost that
// lives in the same process as the parent frame. The
// |cross_process_frame_connector| allows the non-swapped-out
@@ -973,6 +978,12 @@ class CONTENT_EXPORT RenderFrameHostImpl
std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
+#if defined(OS_ANDROID)
+ // The filter for MessagePort messages between an Android apps and web.
+ scoped_refptr<AppWebMessagePortMessageFilter>
+ app_web_message_port_message_filter_;
+#endif
+
std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_;
// The object managing the accessibility tree for this frame.
@@ -1056,7 +1067,6 @@ class CONTENT_EXPORT RenderFrameHostImpl
std::unique_ptr<AssociatedInterfaceProviderImpl>
remote_associated_interfaces_;
-
// NOTE: This must be the last member.
base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698