OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_INVALIDATION_IOS_CHROME_PROFILE_INVALIDATION_PROVIDER
_FACTORY_H_ | 5 #ifndef IOS_CHROME_BROWSER_INVALIDATION_IOS_CHROME_PROFILE_INVALIDATION_PROVIDER
_FACTORY_H_ |
6 #define IOS_CHROME_BROWSER_INVALIDATION_IOS_CHROME_PROFILE_INVALIDATION_PROVIDER
_FACTORY_H_ | 6 #define IOS_CHROME_BROWSER_INVALIDATION_IOS_CHROME_PROFILE_INVALIDATION_PROVIDER
_FACTORY_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "components/keyed_service/ios/browser_state_keyed_service_factory.h" | 11 #include "components/keyed_service/ios/browser_state_keyed_service_factory.h" |
10 | 12 |
11 namespace base { | 13 namespace base { |
12 template <typename T> | 14 template <typename T> |
13 struct DefaultSingletonTraits; | 15 struct DefaultSingletonTraits; |
14 } | 16 } |
15 | 17 |
16 namespace invalidation { | 18 namespace invalidation { |
17 class ProfileInvalidationProvider; | 19 class ProfileInvalidationProvider; |
(...skipping 20 matching lines...) Expand all Loading... |
38 static IOSChromeProfileInvalidationProviderFactory* GetInstance(); | 40 static IOSChromeProfileInvalidationProviderFactory* GetInstance(); |
39 | 41 |
40 private: | 42 private: |
41 friend struct base::DefaultSingletonTraits< | 43 friend struct base::DefaultSingletonTraits< |
42 IOSChromeProfileInvalidationProviderFactory>; | 44 IOSChromeProfileInvalidationProviderFactory>; |
43 | 45 |
44 IOSChromeProfileInvalidationProviderFactory(); | 46 IOSChromeProfileInvalidationProviderFactory(); |
45 ~IOSChromeProfileInvalidationProviderFactory() override; | 47 ~IOSChromeProfileInvalidationProviderFactory() override; |
46 | 48 |
47 // BrowserStateKeyedServiceFactory: | 49 // BrowserStateKeyedServiceFactory: |
48 scoped_ptr<KeyedService> BuildServiceInstanceFor( | 50 std::unique_ptr<KeyedService> BuildServiceInstanceFor( |
49 web::BrowserState* context) const override; | 51 web::BrowserState* context) const override; |
50 void RegisterBrowserStatePrefs( | 52 void RegisterBrowserStatePrefs( |
51 user_prefs::PrefRegistrySyncable* registry) override; | 53 user_prefs::PrefRegistrySyncable* registry) override; |
52 | 54 |
53 DISALLOW_COPY_AND_ASSIGN(IOSChromeProfileInvalidationProviderFactory); | 55 DISALLOW_COPY_AND_ASSIGN(IOSChromeProfileInvalidationProviderFactory); |
54 }; | 56 }; |
55 | 57 |
56 #endif // IOS_CHROME_BROWSER_INVALIDATION_IOS_CHROME_PROFILE_INVALIDATION_PROVI
DER_FACTORY_H_ | 58 #endif // IOS_CHROME_BROWSER_INVALIDATION_IOS_CHROME_PROFILE_INVALIDATION_PROVI
DER_FACTORY_H_ |
OLD | NEW |