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

Unified Diff: content/public/common/service_registry.h

Issue 358743002: Mojo: Remove InterfaceProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 6 years, 6 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/ppapi_plugin/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/service_registry.h
diff --git a/content/public/common/service_registry.h b/content/public/common/service_registry.h
index f35bad4c1b23029075a77a3d19f21a245d196895..b0ec5202e0235d64a1cd2f75baf83a464d92ec97 100644
--- a/content/public/common/service_registry.h
+++ b/content/public/common/service_registry.h
@@ -19,13 +19,14 @@ namespace content {
// A ServiceRegistry exposes local services that have been added using
// AddService to a paired remote ServiceRegistry and provides local access to
-// services exposed by the remote ServiceRegistry through GetInterface.
+// services exposed by the remote ServiceRegistry through
+// ConnectToRemoteService.
class CONTENT_EXPORT ServiceRegistry {
public:
virtual ~ServiceRegistry() {}
// Make the service created by |service_factory| available to the remote
- // InterfaceProvider. In response to each request for a service,
+ // ServiceProvider. In response to each request for a service,
// |service_factory| will be run with an InterfaceRequest<Interface>
// representing that request.
template <typename Interface>
@@ -48,15 +49,15 @@ class CONTENT_EXPORT ServiceRegistry {
}
virtual void RemoveService(const std::string& service_name) = 0;
- // Connect to an interface provided by the remote interface provider.
+ // Connect to an interface provided by the remote service provider.
template <typename Interface>
- void GetRemoteInterface(mojo::InterfacePtr<Interface>* ptr) {
+ void ConnectToRemoteService(mojo::InterfacePtr<Interface>* ptr) {
mojo::MessagePipe pipe;
ptr->Bind(pipe.handle0.Pass());
- GetRemoteInterface(Interface::Name_, pipe.handle1.Pass());
+ ConnectToRemoteService(Interface::Name_, pipe.handle1.Pass());
}
- virtual void GetRemoteInterface(const base::StringPiece& name,
- mojo::ScopedMessagePipeHandle handle) = 0;
+ virtual void ConnectToRemoteService(const base::StringPiece& name,
+ mojo::ScopedMessagePipeHandle handle) = 0;
private:
template <typename Interface>
« no previous file with comments | « content/ppapi_plugin/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698