Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: chrome/browser/extensions/extension_management.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_garbage_collector_factory.cc ('k') | chrome/browser/extensions/extension_management.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698