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/basictypes.h" | 8 #include "base/basictypes.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" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 private: | 49 private: |
50 friend class ProfileInvalidationProviderFactoryTestBase; | 50 friend class ProfileInvalidationProviderFactoryTestBase; |
51 friend class policy::DeviceCloudPolicyInvalidatorTest; | 51 friend class policy::DeviceCloudPolicyInvalidatorTest; |
52 friend struct DefaultSingletonTraits<ProfileInvalidationProviderFactory>; | 52 friend struct DefaultSingletonTraits<ProfileInvalidationProviderFactory>; |
53 | 53 |
54 ProfileInvalidationProviderFactory(); | 54 ProfileInvalidationProviderFactory(); |
55 virtual ~ProfileInvalidationProviderFactory(); | 55 virtual ~ProfileInvalidationProviderFactory(); |
56 | 56 |
57 // BrowserContextKeyedServiceFactory: | 57 // BrowserContextKeyedServiceFactory: |
58 virtual KeyedService* BuildServiceInstanceFor( | 58 virtual KeyedService* BuildServiceInstanceFor( |
59 content::BrowserContext* context) const OVERRIDE; | 59 content::BrowserContext* context) const override; |
60 virtual void RegisterProfilePrefs( | 60 virtual void RegisterProfilePrefs( |
61 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; | 61 user_prefs::PrefRegistrySyncable* registry) override; |
62 | 62 |
63 TestingFactoryFunction testing_factory_; | 63 TestingFactoryFunction testing_factory_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(ProfileInvalidationProviderFactory); | 65 DISALLOW_COPY_AND_ASSIGN(ProfileInvalidationProviderFactory); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace invalidation | 68 } // namespace invalidation |
69 | 69 |
70 #endif // CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ | 70 #endif // CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ |
OLD | NEW |