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

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: . 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 eb2c46545f1c1e350b32ca715fe0147bdcd282f4..1820954a109d2b52bb4f235f62c1a08d8f61436f 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"
@@ -96,9 +99,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(
@@ -151,6 +156,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;
@@ -749,6 +758,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);
@@ -770,6 +781,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.
« no previous file with comments | « build/android/pylib/gtest/filter/content_browsertests_disabled ('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