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

Unified Diff: mojo/service_manager/service_manager.h

Issue 298003008: Shell / ShellClient -> ServiceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/service_manager/service_loader.h ('k') | mojo/service_manager/service_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/service_manager/service_manager.h
diff --git a/mojo/service_manager/service_manager.h b/mojo/service_manager/service_manager.h
index 81e129ac1d6e61701087656b280247d483769805..395a1d3eb0e0871840189039494f0b94136076b1 100644
--- a/mojo/service_manager/service_manager.h
+++ b/mojo/service_manager/service_manager.h
@@ -10,7 +10,7 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
-#include "mojo/public/interfaces/shell/shell.mojom.h"
+#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
#include "mojo/service_manager/service_loader.h"
#include "mojo/service_manager/service_manager_export.h"
#include "url/gurl.h"
@@ -25,8 +25,8 @@ class MOJO_SERVICE_MANAGER_EXPORT ServiceManager {
explicit TestAPI(ServiceManager* manager);
~TestAPI();
- // Returns a handle to a unique shell instance.
- ScopedMessagePipeHandle GetShellHandle();
+ // Returns a handle to a unique ServiceProvider instance.
+ ScopedMessagePipeHandle GetServiceProviderHandle();
// Returns true if the shared instance has been created.
static bool HasCreatedInstance();
@@ -34,10 +34,10 @@ class MOJO_SERVICE_MANAGER_EXPORT ServiceManager {
bool HasFactoryForURL(const GURL& url) const;
private:
- class TestShellConnection;
+ class TestServiceProviderConnection;
ServiceManager* manager_;
- scoped_ptr<TestShellConnection> shell_;
+ scoped_ptr<TestServiceProviderConnection> service_provider_;
DISALLOW_COPY_AND_ASSIGN(TestAPI);
};
@@ -58,7 +58,7 @@ class MOJO_SERVICE_MANAGER_EXPORT ServiceManager {
static ServiceManager* GetInstance();
// Loads a service if necessary and establishes a new client connection.
- void Connect(const GURL& url, ScopedMessagePipeHandle client_handle);
+ void ConnectToService(const GURL& url, ScopedMessagePipeHandle client_handle);
// Sets the default Loader to be used if not overridden by SetLoaderForURL()
// or SetLoaderForScheme().
« no previous file with comments | « mojo/service_manager/service_loader.h ('k') | mojo/service_manager/service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698