blob: 763afce1081fb931101478d4d5c3c9ea29777825 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class BrowserContextDependencyManager;
namespace content {
class BrowserContext;
namespace extensions {
class ExtensionSystem;
// An ExtensionSystemProvider maps a BrowserContext to its ExtensionSystem.
// Different applications may use this to provide differing implementations
// of ExtensionSystem.
// 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