Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_APP_ICON_SERVICE_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APP_ICON_SERVICE_FACTORY_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/singleton.h" | |
| 10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" | |
| 11 | |
| 12 namespace extensions { | |
| 13 | |
| 14 class ExtensionAppIconService; | |
| 15 | |
| 16 class ExtensionAppIconServiceFactory | |
|
xiyuan
2017/04/18 20:43:01
doc ?
khmel
2017/04/20 00:13:38
Done.
| |
| 17 : public BrowserContextKeyedServiceFactory { | |
| 18 public: | |
| 19 static ExtensionAppIconService* GetForBrowserContext( | |
| 20 content::BrowserContext* context); | |
| 21 | |
| 22 static ExtensionAppIconServiceFactory* GetInstance(); | |
| 23 | |
| 24 private: | |
| 25 friend struct base::DefaultSingletonTraits<ExtensionAppIconServiceFactory>; | |
| 26 | |
| 27 ExtensionAppIconServiceFactory(); | |
| 28 ~ExtensionAppIconServiceFactory() override; | |
| 29 | |
| 30 KeyedService* BuildServiceInstanceFor( | |
| 31 content::BrowserContext* context) const override; | |
| 32 content::BrowserContext* GetBrowserContextToUse( | |
| 33 content::BrowserContext* context) const override; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(ExtensionAppIconServiceFactory); | |
| 36 }; | |
| 37 | |
| 38 } // namespace extensions | |
| 39 | |
| 40 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APP_ICON_SERVICE_FACTORY_H_ | |
| OLD | NEW |