| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTORY_H
_ | 5 #ifndef COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTORY_H
_ |
| 6 #define COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTORY_H
_ | 6 #define COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTORY_H
_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "components/keyed_service/content/browser_context_keyed_base_factory.h" | 12 #include "components/keyed_service/content/browser_context_keyed_base_factory.h" |
| 13 #include "components/keyed_service/core/keyed_service.h" | |
| 14 #include "components/keyed_service/core/keyed_service_export.h" | 13 #include "components/keyed_service/core/keyed_service_export.h" |
| 15 | 14 |
| 16 class BrowserContextDependencyManager; | 15 class BrowserContextDependencyManager; |
| 17 class KeyedService; | 16 class KeyedService; |
| 18 | 17 |
| 19 // Base class for Factories that take a BrowserContext object and return some | 18 // Base class for Factories that take a BrowserContext object and return some |
| 20 // service on a one-to-one mapping. Each factory that derives from this class | 19 // service on a one-to-one mapping. Each factory that derives from this class |
| 21 // *must* be a Singleton (only unit tests don't do that). | 20 // *must* be a Singleton (only unit tests don't do that). |
| 22 // | 21 // |
| 23 // We do this because services depend on each other and we need to control | 22 // We do this because services depend on each other and we need to control |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 BrowserContextKeyedServices mapping_; | 114 BrowserContextKeyedServices mapping_; |
| 116 | 115 |
| 117 // The mapping between a BrowserContext and its overridden | 116 // The mapping between a BrowserContext and its overridden |
| 118 // TestingFactoryFunction. | 117 // TestingFactoryFunction. |
| 119 BrowserContextOverriddenTestingFunctions testing_factories_; | 118 BrowserContextOverriddenTestingFunctions testing_factories_; |
| 120 | 119 |
| 121 DISALLOW_COPY_AND_ASSIGN(BrowserContextKeyedServiceFactory); | 120 DISALLOW_COPY_AND_ASSIGN(BrowserContextKeyedServiceFactory); |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 #endif // COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTOR
Y_H_ | 123 #endif // COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTOR
Y_H_ |
| OLD | NEW |