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

Side by Side Diff: extensions/browser/extension_system_provider.h

Issue 197413002: Move extensions-related files to using //components/keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « extensions/browser/extension_system.cc ('k') | extensions/browser/extension_system_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 EXTENSIONS_BROWSER_EXTENSION_SYSTEM_PROVIDER_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_SYSTEM_PROVIDER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_PROVIDER_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_PROVIDER_H_
7 7
8 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h" 8 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
9 9
10 class BrowserContextDependencyManager; 10 class BrowserContextDependencyManager;
11 11
12 namespace content { 12 namespace content {
13 class BrowserContext; 13 class BrowserContext;
14 } 14 }
15 15
16 namespace extensions { 16 namespace extensions {
17 class ExtensionSystem; 17 class ExtensionSystem;
18 18
19 // An ExtensionSystemProvider maps a BrowserContext to its ExtensionSystem. 19 // An ExtensionSystemProvider maps a BrowserContext to its ExtensionSystem.
20 // Different applications may use this to provide differing implementations 20 // Different applications may use this to provide differing implementations
21 // of ExtensionSystem. 21 // of ExtensionSystem.
22 // TODO(yoz): Rename to ExtensionSystemFactory. 22 // TODO(yoz): Rename to ExtensionSystemFactory.
23 class ExtensionSystemProvider : public BrowserContextKeyedServiceFactory { 23 class ExtensionSystemProvider : public BrowserContextKeyedServiceFactory {
24 public: 24 public:
25 ExtensionSystemProvider(const char* name, 25 ExtensionSystemProvider(const char* name,
26 BrowserContextDependencyManager* manager); 26 BrowserContextDependencyManager* manager);
27 virtual ~ExtensionSystemProvider(); 27 virtual ~ExtensionSystemProvider();
28 28
29 virtual ExtensionSystem* GetForBrowserContext( 29 virtual ExtensionSystem* GetForBrowserContext(
30 content::BrowserContext* context) = 0; 30 content::BrowserContext* context) = 0;
31 }; 31 };
32 32
33 } // namespace extensions 33 } // namespace extensions
34 34
35 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_PROVIDER_H_ 35 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_PROVIDER_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_system.cc ('k') | extensions/browser/extension_system_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698