| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_ | 5 #ifndef IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_ |
| 6 #define IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_ | 6 #define IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "components/keyed_service/ios/browser_state_keyed_service_factory.h" | 10 #include "components/keyed_service/ios/browser_state_keyed_service_factory.h" |
| 9 | 11 |
| 10 namespace base { | 12 namespace base { |
| 11 template <typename T> | 13 template <typename T> |
| 12 struct DefaultSingletonTraits; | 14 struct DefaultSingletonTraits; |
| 13 } // namespace base | 15 } // namespace base |
| 14 | 16 |
| 15 class ShareExtensionService; | 17 class ShareExtensionService; |
| 16 | 18 |
| 17 namespace ios { | 19 namespace ios { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 28 ios::ChromeBrowserState* browser_state); | 30 ios::ChromeBrowserState* browser_state); |
| 29 static ShareExtensionServiceFactory* GetInstance(); | 31 static ShareExtensionServiceFactory* GetInstance(); |
| 30 | 32 |
| 31 private: | 33 private: |
| 32 friend struct base::DefaultSingletonTraits<ShareExtensionServiceFactory>; | 34 friend struct base::DefaultSingletonTraits<ShareExtensionServiceFactory>; |
| 33 | 35 |
| 34 ShareExtensionServiceFactory(); | 36 ShareExtensionServiceFactory(); |
| 35 ~ShareExtensionServiceFactory() override; | 37 ~ShareExtensionServiceFactory() override; |
| 36 | 38 |
| 37 // BrowserStateKeyedServiceFactory implementation. | 39 // BrowserStateKeyedServiceFactory implementation. |
| 38 scoped_ptr<KeyedService> BuildServiceInstanceFor( | 40 std::unique_ptr<KeyedService> BuildServiceInstanceFor( |
| 39 web::BrowserState* context) const override; | 41 web::BrowserState* context) const override; |
| 40 web::BrowserState* GetBrowserStateToUse( | 42 web::BrowserState* GetBrowserStateToUse( |
| 41 web::BrowserState* context) const override; | 43 web::BrowserState* context) const override; |
| 42 | 44 |
| 43 DISALLOW_COPY_AND_ASSIGN(ShareExtensionServiceFactory); | 45 DISALLOW_COPY_AND_ASSIGN(ShareExtensionServiceFactory); |
| 44 }; | 46 }; |
| 45 | 47 |
| 46 #endif // IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_ | 48 #endif // IOS_CHROME_BROWSER_SHARE_EXTENSION_SHARE_EXTENSION_SERVICE_FACTORY_H_ |
| OLD | NEW |