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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1684783002: Rename ServiceProvider to InterfaceProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 2089 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 2100
2101 service_registry_.reset(new ServiceRegistryImpl()); 2101 service_registry_.reset(new ServiceRegistryImpl());
2102 if (!GetProcess()->GetServiceRegistry()) 2102 if (!GetProcess()->GetServiceRegistry())
2103 return; 2103 return;
2104 2104
2105 RegisterMojoServices(); 2105 RegisterMojoServices();
2106 RenderFrameSetupPtr setup; 2106 RenderFrameSetupPtr setup;
2107 GetProcess()->GetServiceRegistry()->ConnectToRemoteService( 2107 GetProcess()->GetServiceRegistry()->ConnectToRemoteService(
2108 mojo::GetProxy(&setup)); 2108 mojo::GetProxy(&setup));
2109 2109
2110 mojo::ServiceProviderPtr exposed_services; 2110 mojo::InterfaceProviderPtr exposed_services;
2111 service_registry_->Bind(GetProxy(&exposed_services)); 2111 service_registry_->Bind(GetProxy(&exposed_services));
2112 2112
2113 mojo::ServiceProviderPtr services; 2113 mojo::InterfaceProviderPtr services;
2114 setup->ExchangeServiceProviders(routing_id_, GetProxy(&services), 2114 setup->ExchangeInterfaceProviders(routing_id_, GetProxy(&services),
2115 std::move(exposed_services)); 2115 std::move(exposed_services));
2116 service_registry_->BindRemoteServiceProvider(std::move(services)); 2116 service_registry_->BindRemoteServiceProvider(std::move(services));
2117 2117
2118 #if defined(OS_ANDROID) 2118 #if defined(OS_ANDROID)
2119 service_registry_android_.reset( 2119 service_registry_android_.reset(
2120 new ServiceRegistryAndroid(service_registry_.get())); 2120 new ServiceRegistryAndroid(service_registry_.get()));
2121 ServiceRegistrarAndroid::RegisterFrameHostServices( 2121 ServiceRegistrarAndroid::RegisterFrameHostServices(
2122 service_registry_android_.get()); 2122 service_registry_android_.get());
2123 #endif 2123 #endif
2124 } 2124 }
2125 2125
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
2553 *dst = src; 2553 *dst = src;
2554 2554
2555 if (src.routing_id != -1) 2555 if (src.routing_id != -1)
2556 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); 2556 dst->tree_id = RoutingIDToAXTreeID(src.routing_id);
2557 2557
2558 if (src.parent_routing_id != -1) 2558 if (src.parent_routing_id != -1)
2559 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); 2559 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id);
2560 } 2560 }
2561 2561
2562 } // namespace content 2562 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698