| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/keyed_service/ios/browser_state_keyed_service_factory.h" | 9 #include "components/keyed_service/ios/browser_state_keyed_service_factory.h" |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 static IOSChromeProfileInvalidationProviderFactory* GetInstance(); | 38 static IOSChromeProfileInvalidationProviderFactory* GetInstance(); |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 friend struct base::DefaultSingletonTraits< | 41 friend struct base::DefaultSingletonTraits< |
| 42 IOSChromeProfileInvalidationProviderFactory>; | 42 IOSChromeProfileInvalidationProviderFactory>; |
| 43 | 43 |
| 44 IOSChromeProfileInvalidationProviderFactory(); | 44 IOSChromeProfileInvalidationProviderFactory(); |
| 45 ~IOSChromeProfileInvalidationProviderFactory() override; | 45 ~IOSChromeProfileInvalidationProviderFactory() override; |
| 46 | 46 |
| 47 // BrowserStateKeyedServiceFactory: | 47 // BrowserStateKeyedServiceFactory: |
| 48 scoped_ptr<KeyedService> BuildServiceInstanceFor( | 48 std::unique_ptr<KeyedService> BuildServiceInstanceFor( |
| 49 web::BrowserState* context) const override; | 49 web::BrowserState* context) const override; |
| 50 void RegisterBrowserStatePrefs( | 50 void RegisterBrowserStatePrefs( |
| 51 user_prefs::PrefRegistrySyncable* registry) override; | 51 user_prefs::PrefRegistrySyncable* registry) override; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(IOSChromeProfileInvalidationProviderFactory); | 53 DISALLOW_COPY_AND_ASSIGN(IOSChromeProfileInvalidationProviderFactory); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 #endif // IOS_CHROME_BROWSER_INVALIDATION_IOS_CHROME_PROFILE_INVALIDATION_PROVI
DER_FACTORY_H_ | 56 #endif // IOS_CHROME_BROWSER_INVALIDATION_IOS_CHROME_PROFILE_INVALIDATION_PROVI
DER_FACTORY_H_ |
| OLD | NEW |