| 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_REFCOUNTED_BROWSER_CONTEXT_KEYED_SERVIC
E_FACTORY_H_ | 5 #ifndef COMPONENTS_KEYED_SERVICE_CONTENT_REFCOUNTED_BROWSER_CONTEXT_KEYED_SERVIC
E_FACTORY_H_ |
| 6 #define COMPONENTS_KEYED_SERVICE_CONTENT_REFCOUNTED_BROWSER_CONTEXT_KEYED_SERVIC
E_FACTORY_H_ | 6 #define COMPONENTS_KEYED_SERVICE_CONTENT_REFCOUNTED_BROWSER_CONTEXT_KEYED_SERVIC
E_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 "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "components/keyed_service/content/browser_context_keyed_base_factory.h" | 13 #include "components/keyed_service/content/browser_context_keyed_base_factory.h" |
| 14 #include "components/keyed_service/core/keyed_service_export.h" | 14 #include "components/keyed_service/core/keyed_service_export.h" |
| 15 #include "components/keyed_service/core/refcounted_keyed_service.h" | |
| 16 | 15 |
| 17 class RefcountedKeyedService; | 16 class RefcountedKeyedService; |
| 18 | 17 |
| 19 namespace content { | 18 namespace content { |
| 20 class BrowserContext; | 19 class BrowserContext; |
| 21 } | 20 } |
| 22 | 21 |
| 23 // A specialized BrowserContextKeyedServiceFactory that manages a | 22 // A specialized BrowserContextKeyedServiceFactory that manages a |
| 24 // RefcountedThreadSafe<>. | 23 // RefcountedThreadSafe<>. |
| 25 // | 24 // |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 RefCountedStorage mapping_; | 90 RefCountedStorage mapping_; |
| 92 | 91 |
| 93 // The mapping between a BrowserContext and its overridden | 92 // The mapping between a BrowserContext and its overridden |
| 94 // TestingFactoryFunction. | 93 // TestingFactoryFunction. |
| 95 BrowserContextOverriddenTestingFunctions testing_factories_; | 94 BrowserContextOverriddenTestingFunctions testing_factories_; |
| 96 | 95 |
| 97 DISALLOW_COPY_AND_ASSIGN(RefcountedBrowserContextKeyedServiceFactory); | 96 DISALLOW_COPY_AND_ASSIGN(RefcountedBrowserContextKeyedServiceFactory); |
| 98 }; | 97 }; |
| 99 | 98 |
| 100 #endif // COMPONENTS_KEYED_SERVICE_CONTENT_REFCOUNTED_BROWSER_CONTEXT_KEYED_SER
VICE_FACTORY_H_ | 99 #endif // COMPONENTS_KEYED_SERVICE_CONTENT_REFCOUNTED_BROWSER_CONTEXT_KEYED_SER
VICE_FACTORY_H_ |
| OLD | NEW |