| 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 CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ |
| 6 #define CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ | 6 #define CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 10 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 11 | 11 |
| 12 class Profile; |
| 13 |
| 12 namespace policy { | 14 namespace policy { |
| 13 class AffiliatedInvalidationServiceProviderImplTest; | 15 class AffiliatedInvalidationServiceProviderImplTest; |
| 14 } | 16 } |
| 15 | 17 |
| 18 namespace syncer { |
| 19 class Invalidator; |
| 20 } |
| 21 |
| 16 namespace user_prefs { | 22 namespace user_prefs { |
| 17 class PrefRegistrySyncable; | 23 class PrefRegistrySyncable; |
| 18 } | 24 } |
| 19 | 25 |
| 20 namespace syncer { | |
| 21 class Invalidator; | |
| 22 } | |
| 23 | |
| 24 class Profile; | |
| 25 | |
| 26 namespace invalidation { | 26 namespace invalidation { |
| 27 | 27 |
| 28 class ProfileInvalidationProvider; | 28 class ProfileInvalidationProvider; |
| 29 | 29 |
| 30 // A BrowserContextKeyedServiceFactory to construct InvalidationServices wrapped | 30 // A BrowserContextKeyedServiceFactory to construct InvalidationServices wrapped |
| 31 // in ProfileInvalidationProviders. The implementation of InvalidationService | 31 // in ProfileInvalidationProviders. The implementation of InvalidationService |
| 32 // may be completely different on different platforms; this class should help to | 32 // may be completely different on different platforms; this class should help to |
| 33 // hide this complexity. It also exposes some factory methods that are useful | 33 // hide this complexity. It also exposes some factory methods that are useful |
| 34 // for setting up tests that rely on invalidations. | 34 // for setting up tests that rely on invalidations. |
| 35 class ProfileInvalidationProviderFactory | 35 class ProfileInvalidationProviderFactory |
| (...skipping 26 matching lines...) Expand all Loading... |
| 62 user_prefs::PrefRegistrySyncable* registry) override; | 62 user_prefs::PrefRegistrySyncable* registry) override; |
| 63 | 63 |
| 64 TestingFactoryFunction testing_factory_; | 64 TestingFactoryFunction testing_factory_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(ProfileInvalidationProviderFactory); | 66 DISALLOW_COPY_AND_ASSIGN(ProfileInvalidationProviderFactory); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace invalidation | 69 } // namespace invalidation |
| 70 | 70 |
| 71 #endif // CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ | 71 #endif // CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ |
| OLD | NEW |