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 663bace6c1325dbd89b51c0b1957c7860b27b1d7..7264a937ca3cb442a897a49971be4f616ee22cee 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.h |
+++ b/content/browser/frame_host/render_frame_host_impl.h |
@@ -29,6 +29,7 @@ |
#include "content/common/accessibility_mode_enums.h" |
#include "content/common/ax_content_node_data.h" |
#include "content/common/content_export.h" |
+#include "content/common/frame_host.mojom.h" |
#include "content/common/frame_message_enums.h" |
#include "content/common/frame_replication_state.h" |
#include "content/common/image_downloader/image_downloader.mojom.h" |
@@ -36,6 +37,8 @@ |
#include "content/common/navigation_params.h" |
#include "content/public/browser/render_frame_host.h" |
#include "content/public/common/javascript_message_type.h" |
+#include "mojo/public/cpp/bindings/binding.h" |
+#include "mojo/public/cpp/bindings/interface_request.h" |
#include "net/http/http_response_headers.h" |
#include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" |
#include "third_party/WebKit/public/web/WebTextDirection.h" |
@@ -95,9 +98,11 @@ struct GlobalRequestID; |
struct Referrer; |
struct ResourceResponse; |
-class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, |
- public BrowserAccessibilityDelegate, |
- public SiteInstanceImpl::Observer { |
+class CONTENT_EXPORT RenderFrameHostImpl |
+ : public RenderFrameHost, |
+ NON_EXPORTED_BASE(public mojom::FrameHost), |
+ public BrowserAccessibilityDelegate, |
+ public SiteInstanceImpl::Observer { |
public: |
using AXTreeSnapshotCallback = |
base::Callback<void( |
@@ -150,6 +155,10 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, |
bool IsRenderFrameLive() override; |
int GetProxyCount() override; |
+ // mojom::FrameHost |
+ void GetHostZoomLevel(const GURL& url, |
+ const GetHostZoomLevelCallback& callback) override; |
+ |
// IPC::Sender |
bool Send(IPC::Message* msg) override; |
@@ -747,6 +756,8 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, |
FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, |
bad_message::BadMessageReason reason); |
+ void BindFrameHostService(mojom::FrameHostRequest request); |
+ |
// Creates a Web Bluetooth Service owned by the frame. |
void CreateWebBluetoothService( |
mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); |
@@ -768,6 +779,8 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, |
RenderFrameHostDelegate* delegate_; |
+ mojo::Binding<mojom::FrameHost> frame_host_binding_; |
+ |
// The SiteInstance associated with this RenderFrameHost. All content drawn |
// in this RenderFrameHost is part of this SiteInstance. Cannot change over |
// time. |