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

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: 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..488e1c614b8898bdfc9f5ce9079f571bf462e982 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>
@@ -50,13 +51,13 @@ class CONTENT_EXPORT ServiceRegistry {
// Connect to an interface provided by the remote interface provider.
raymes 2014/06/26 01:56:05 nit: interface provider -> service provider
Sam McNally 2014/06/26 02:41:13 Done.
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