| Index: mojo/service_manager/service_manager.h
|
| diff --git a/mojo/service_manager/service_manager.h b/mojo/service_manager/service_manager.h
|
| index c05e1770209c849354a80eb4fcc0ea26a763311a..cf4c3854b698e58023223adaa8819bddb6fa5b13 100644
|
| --- a/mojo/service_manager/service_manager.h
|
| +++ b/mojo/service_manager/service_manager.h
|
| @@ -9,20 +9,30 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/callback.h"
|
| +#include "base/gtest_prod_util.h"
|
| #include "mojo/public/shell/shell.mojom.h"
|
| +#include "mojo/service_manager/service_manager_export.h"
|
| #include "url/gurl.h"
|
|
|
| +namespace content {
|
| + class MojoTest;
|
| +}
|
| +
|
| namespace mojo {
|
|
|
| class ServiceLoader;
|
|
|
| -class ServiceManager {
|
| +class MOJO_SERVICE_MANAGER_EXPORT ServiceManager {
|
| public:
|
| // API for testing.
|
| - class TestAPI {
|
| + class MOJO_SERVICE_MANAGER_EXPORT TestAPI {
|
| private:
|
| friend class ServiceManagerTest;
|
| + friend class content::MojoTest;
|
| +
|
| explicit TestAPI(ServiceManager* manager) : manager_(manager) {}
|
| + // Returns true if the shared instance has been created.
|
| + static bool HasCreatedInstance();
|
| // Returns true if there is a ServiceFactory for this URL.
|
| bool HasFactoryForURL(const GURL& url) const;
|
|
|
| @@ -50,7 +60,7 @@ class ServiceManager {
|
| class ServiceFactory;
|
|
|
| // Removes a ServiceFactory when it no longer has any connections.
|
| - void RemoveServiceFactory(ServiceFactory* service_factory);
|
| + void OnServiceFactoryError(ServiceFactory* service_factory);
|
|
|
| ServiceLoader* default_loader_;
|
| typedef std::map<GURL, ServiceFactory*> ServiceFactoryMap;
|
|
|