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

Unified Diff: content/common/mojo/service_registry_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/mojo/service_registry_impl.h ('k') | content/common/render_frame_setup.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/service_registry_impl.cc
diff --git a/content/common/mojo/service_registry_impl.cc b/content/common/mojo/service_registry_impl.cc
index d75f64d5d4163599215cbff86387dff5ce2f4c47..e85ca45545173d3bb785e30926f48bc0d5178a52 100644
--- a/content/common/mojo/service_registry_impl.cc
+++ b/content/common/mojo/service_registry_impl.cc
@@ -21,18 +21,18 @@ ServiceRegistryImpl::~ServiceRegistryImpl() {
}
void ServiceRegistryImpl::Bind(
- mojo::InterfaceRequest<mojo::ServiceProvider> request) {
+ mojo::InterfaceRequest<mojo::InterfaceProvider> request) {
binding_.Bind(std::move(request));
binding_.set_connection_error_handler(base::Bind(
&ServiceRegistryImpl::OnConnectionError, base::Unretained(this)));
}
void ServiceRegistryImpl::BindRemoteServiceProvider(
- mojo::ServiceProviderPtr service_provider) {
+ mojo::InterfaceProviderPtr service_provider) {
CHECK(!remote_provider_);
remote_provider_ = std::move(service_provider);
while (!pending_connects_.empty()) {
- remote_provider_->ConnectToService(
+ remote_provider_->GetInterface(
mojo::String::From(pending_connects_.front().first),
mojo::ScopedMessagePipeHandle(pending_connects_.front().second));
pending_connects_.pop();
@@ -68,7 +68,7 @@ void ServiceRegistryImpl::ConnectToRemoteService(
std::make_pair(service_name.as_string(), handle.release()));
return;
}
- remote_provider_->ConnectToService(
+ remote_provider_->GetInterface(
mojo::String::From(service_name.as_string()), std::move(handle));
}
@@ -80,7 +80,7 @@ base::WeakPtr<ServiceRegistry> ServiceRegistryImpl::GetWeakPtr() {
return weak_factory_.GetWeakPtr();
}
-void ServiceRegistryImpl::ConnectToService(
+void ServiceRegistryImpl::GetInterface(
const mojo::String& name,
mojo::ScopedMessagePipeHandle client_handle) {
auto it = service_factories_.find(name);
« no previous file with comments | « content/common/mojo/service_registry_impl.h ('k') | content/common/render_frame_setup.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698