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

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

Issue 2007203002: Revert of Add FrameHost mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU failure on revert 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/host_zoom_map_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 9533a0917ece84837e50fff2e29426f1978c1a1c..a22c5e05d281a7cb633642b32a5836025bf1f183 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -38,7 +38,6 @@
#include "content/browser/frame_host/render_frame_proxy_host.h"
#include "content/browser/frame_host/render_widget_host_view_child_frame.h"
#include "content/browser/geolocation/geolocation_service_context.h"
-#include "content/browser/host_zoom_map_impl.h"
#include "content/browser/loader/resource_dispatcher_host_impl.h"
#include "content/browser/permissions/permission_service_context.h"
#include "content/browser/permissions/permission_service_impl.h"
@@ -72,7 +71,6 @@
#include "content/public/browser/permission_type.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_widget_host_view.h"
-#include "content/public/browser/storage_partition.h"
#include "content/public/browser/stream_handle.h"
#include "content/public/browser/user_metrics.h"
#include "content/public/common/browser_side_navigation_policy.h"
@@ -211,7 +209,6 @@ RenderFrameHostImpl::RenderFrameHostImpl(SiteInstance* site_instance,
bool hidden)
: render_view_host_(render_view_host),
delegate_(delegate),
- frame_host_binding_(this),
site_instance_(static_cast<SiteInstanceImpl*>(site_instance)),
process_(site_instance->GetProcess()),
cross_process_frame_connector_(NULL),
@@ -1988,9 +1985,6 @@ void RenderFrameHostImpl::RegisterMojoServices() {
}
#endif
- GetServiceRegistry()->AddService<mojom::FrameHost>(base::Bind(
- &RenderFrameHostImpl::BindFrameHostService, base::Unretained(this)));
-
GetContentClient()->browser()->RegisterRenderFrameMojoServices(
GetServiceRegistry(), this);
}
@@ -2580,21 +2574,6 @@ int RenderFrameHostImpl::GetProxyCount() {
return frame_tree_node_->render_manager()->GetProxyCount();
}
-void RenderFrameHostImpl::GetHostZoomLevel(
- const GURL& url,
- const GetHostZoomLevelCallback& callback) {
- RenderProcessHost* render_process_host =
- RenderProcessHost::FromID(GetProcess()->GetID());
- double zoom_level = 0.0;
- if (render_process_host) {
- const HostZoomMapImpl* host_zoom_map = static_cast<const HostZoomMapImpl*>(
- render_process_host->GetStoragePartition()->GetHostZoomMap());
- zoom_level = host_zoom_map->GetZoomLevelForView(url, GetProcess()->GetID(),
- routing_id_);
- }
- callback.Run(zoom_level);
-}
-
#if defined(OS_MACOSX)
void RenderFrameHostImpl::DidSelectPopupMenuItem(int selected_index) {
@@ -2823,14 +2802,6 @@ void RenderFrameHostImpl::AXContentTreeDataToAXTreeData(
dst->focused_tree_id = focused_frame->GetAXTreeID();
}
-void RenderFrameHostImpl::BindFrameHostService(
- mojom::FrameHostRequest request) {
- frame_host_binding_.Bind(std::move(request));
- frame_host_binding_.set_connection_error_handler(
- base::Bind(&mojo::Binding<mojom::FrameHost>::Unbind,
- base::Unretained(&frame_host_binding_)));
-}
-
void RenderFrameHostImpl::CreateWebBluetoothService(
blink::mojom::WebBluetoothServiceRequest request) {
DCHECK(!web_bluetooth_service_);
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/host_zoom_map_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698