| // Copyright 2014 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef EXTENSIONS_BROWSER_EXTENSION_SYSTEM_PROVIDER_H_ |
| #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_PROVIDER_H_ |
| #include "components/keyed_service/content/browser_context_keyed_service_factory.h" |
| class BrowserContextDependencyManager; |
| // An ExtensionSystemProvider maps a BrowserContext to its ExtensionSystem. |
| // Different applications may use this to provide differing implementations |
| // TODO(yoz): Rename to ExtensionSystemFactory. |
| class ExtensionSystemProvider : public BrowserContextKeyedServiceFactory { |
| ExtensionSystemProvider(const char* name, |
| BrowserContextDependencyManager* manager); |
| ~ExtensionSystemProvider() override; |
| virtual ExtensionSystem* GetForBrowserContext( |
| content::BrowserContext* context) = 0; |
| } // namespace extensions |
| #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_PROVIDER_H_ |