Chromium Code Reviews| 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> |