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

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

Issue 1964273002: Add FrameHost mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unbind Created 4 years, 7 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 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.

Powered by Google App Engine
This is Rietveld 408576698