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

Unified Diff: mojo/shell/public/cpp/connect.h

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 | « mojo/shell/package_manager/package_manager_impl.cc ('k') | mojo/shell/public/cpp/connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/cpp/connect.h
diff --git a/mojo/shell/public/cpp/connect.h b/mojo/shell/public/cpp/connect.h
index acc496ce3e6e11c0cd94131007529db0e3dcef91..48d76a8839cb578035b31d54d6d30f00830c9426 100644
--- a/mojo/shell/public/cpp/connect.h
+++ b/mojo/shell/public/cpp/connect.h
@@ -7,17 +7,17 @@
#include <utility>
-#include "mojo/shell/public/interfaces/service_provider.mojom.h"
+#include "mojo/shell/public/interfaces/interface_provider.mojom.h"
namespace mojo {
-// Binds |ptr| to a remote implementation of Interface from |service_provider|.
+// Binds |ptr| to a remote implementation of Interface from |interfaces|.
template <typename Interface>
-inline void ConnectToService(ServiceProvider* service_provider,
- InterfacePtr<Interface>* ptr) {
+inline void GetInterface(InterfaceProvider* interfaces,
+ InterfacePtr<Interface>* ptr) {
MessagePipe pipe;
ptr->Bind(InterfacePtrInfo<Interface>(std::move(pipe.handle0), 0u));
- service_provider->ConnectToService(Interface::Name_, std::move(pipe.handle1));
+ interfaces->GetInterface(Interface::Name_, std::move(pipe.handle1));
}
} // namespace mojo
« no previous file with comments | « mojo/shell/package_manager/package_manager_impl.cc ('k') | mojo/shell/public/cpp/connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698