| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 DISALLOW_COPY_AND_ASSIGN(ExtensionManagement); | 191 DISALLOW_COPY_AND_ASSIGN(ExtensionManagement); |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 class ExtensionManagementFactory : public BrowserContextKeyedServiceFactory { | 194 class ExtensionManagementFactory : public BrowserContextKeyedServiceFactory { |
| 195 public: | 195 public: |
| 196 static ExtensionManagement* GetForBrowserContext( | 196 static ExtensionManagement* GetForBrowserContext( |
| 197 content::BrowserContext* context); | 197 content::BrowserContext* context); |
| 198 static ExtensionManagementFactory* GetInstance(); | 198 static ExtensionManagementFactory* GetInstance(); |
| 199 | 199 |
| 200 private: | 200 private: |
| 201 friend struct DefaultSingletonTraits<ExtensionManagementFactory>; | 201 friend struct base::DefaultSingletonTraits<ExtensionManagementFactory>; |
| 202 | 202 |
| 203 ExtensionManagementFactory(); | 203 ExtensionManagementFactory(); |
| 204 ~ExtensionManagementFactory() override; | 204 ~ExtensionManagementFactory() override; |
| 205 | 205 |
| 206 // BrowserContextKeyedServiceExtensionManagementFactory: | 206 // BrowserContextKeyedServiceExtensionManagementFactory: |
| 207 KeyedService* BuildServiceInstanceFor( | 207 KeyedService* BuildServiceInstanceFor( |
| 208 content::BrowserContext* context) const override; | 208 content::BrowserContext* context) const override; |
| 209 content::BrowserContext* GetBrowserContextToUse( | 209 content::BrowserContext* GetBrowserContextToUse( |
| 210 content::BrowserContext* context) const override; | 210 content::BrowserContext* context) const override; |
| 211 void RegisterProfilePrefs( | 211 void RegisterProfilePrefs( |
| 212 user_prefs::PrefRegistrySyncable* registry) override; | 212 user_prefs::PrefRegistrySyncable* registry) override; |
| 213 | 213 |
| 214 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementFactory); | 214 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementFactory); |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 } // namespace extensions | 217 } // namespace extensions |
| 218 | 218 |
| 219 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | 219 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ |
| OLD | NEW |