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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2456493003: Add frame-specific InterfaceProviderSpec. (Closed)
Patch Set: . Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 #if defined(OS_ANDROID) 1185 #if defined(OS_ANDROID)
1186 AddFilter(new ScreenOrientationMessageFilterAndroid()); 1186 AddFilter(new ScreenOrientationMessageFilterAndroid());
1187 synchronous_compositor_filter_ = 1187 synchronous_compositor_filter_ =
1188 new SynchronousCompositorBrowserFilter(GetID()); 1188 new SynchronousCompositorBrowserFilter(GetID());
1189 AddFilter(synchronous_compositor_filter_.get()); 1189 AddFilter(synchronous_compositor_filter_.get());
1190 #endif 1190 #endif
1191 } 1191 }
1192 1192
1193 void RenderProcessHostImpl::RegisterMojoInterfaces() { 1193 void RenderProcessHostImpl::RegisterMojoInterfaces() {
1194 auto registry = base::MakeUnique<service_manager::InterfaceRegistry>( 1194 auto registry = base::MakeUnique<service_manager::InterfaceRegistry>(
1195 service_manager::Identity(), service_manager::InterfaceProviderSpec()); 1195 service_manager::mojom::kServiceManager_ConnectorSpec);
1196 1196
1197 channel_->AddAssociatedInterface( 1197 channel_->AddAssociatedInterface(
1198 base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest, 1198 base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest,
1199 base::Unretained(this))); 1199 base::Unretained(this)));
1200 1200
1201 #if defined(OS_ANDROID) 1201 #if defined(OS_ANDROID)
1202 AddUIThreadInterface(registry.get(), 1202 AddUIThreadInterface(registry.get(),
1203 GetGlobalJavaInterfaces() 1203 GetGlobalJavaInterfaces()
1204 ->CreateInterfaceFactory<device::BatteryMonitor>()); 1204 ->CreateInterfaceFactory<device::BatteryMonitor>());
1205 #else 1205 #else
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after
2983 bad_message::ReceivedBadMessage(render_process_id, 2983 bad_message::ReceivedBadMessage(render_process_id,
2984 bad_message::RPH_MOJO_PROCESS_ERROR); 2984 bad_message::RPH_MOJO_PROCESS_ERROR);
2985 } 2985 }
2986 2986
2987 void RenderProcessHostImpl::CreateURLLoaderFactory( 2987 void RenderProcessHostImpl::CreateURLLoaderFactory(
2988 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { 2988 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) {
2989 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); 2989 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request));
2990 } 2990 }
2991 2991
2992 } // namespace content 2992 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/service_worker/embedded_worker_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698