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