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

Unified Diff: mojo/shell/service_manager.h

Issue 164313002: Rename ServiceConnector back to ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bad upload Created 6 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/service_connector_unittest.cc ('k') | mojo/shell/service_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/service_manager.h
diff --git a/mojo/shell/service_connector.h b/mojo/shell/service_manager.h
similarity index 82%
rename from mojo/shell/service_connector.h
rename to mojo/shell/service_manager.h
index 41587ef2477afab9b6733dfe19807d321440f870..b21393ad167443ca843c1e22cc08ee27e116de6a 100644
--- a/mojo/shell/service_connector.h
+++ b/mojo/shell/service_manager.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_SHELL_SERVICE_CONNECTOR_H_
-#define MOJO_SHELL_SERVICE_CONNECTOR_H_
+#ifndef MOJO_SHELL_service_manager_H_
+#define MOJO_SHELL_service_manager_H_
#include <map>
@@ -16,7 +16,7 @@
namespace mojo {
namespace shell {
-class ServiceConnector {
+class ServiceManager {
public:
// Interface to allowing default loading behavior to be overridden for a
// specific url.
@@ -32,16 +32,16 @@ class ServiceConnector {
// API for testing.
class TestAPI {
private:
- friend class ServiceConnectorTest;
- explicit TestAPI(ServiceConnector* connector) : connector_(connector) {}
+ friend class ServiceManagerTest;
+ explicit TestAPI(ServiceManager* manager) : manager_(manager) {}
// Returns true if there is a ServiceFactory for this URL.
bool HasFactoryForURL(const GURL& url) const;
- ServiceConnector* connector_;
+ ServiceManager* manager_;
};
- ServiceConnector();
- ~ServiceConnector();
+ ServiceManager();
+ ~ServiceManager();
// Sets the default Loader to be used if not overridden by SetLoaderForURL().
// Does not take ownership of |loader|.
@@ -65,10 +65,10 @@ class ServiceConnector {
ServiceFactoryMap url_to_service_factory_;
typedef std::map<GURL, Loader*> LoaderMap;
LoaderMap url_to_loader_;
- DISALLOW_COPY_AND_ASSIGN(ServiceConnector);
+ DISALLOW_COPY_AND_ASSIGN(ServiceManager);
};
} // namespace shell
} // namespace mojo
-#endif // MOJO_SHELL_SERVICE_CONNECTOR_H_
+#endif // MOJO_SHELL_service_manager_H_
« no previous file with comments | « mojo/shell/service_connector_unittest.cc ('k') | mojo/shell/service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698