#ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_FACTORY_H_
#define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_FACTORY_H_
#include "base/compiler_specific.h"
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
namespace extensions {
class ExtensionRegistry;
class ExtensionRegistryFactory : public BrowserContextKeyedServiceFactory {
public:
static ExtensionRegistry* GetForBrowserContext(
content::BrowserContext* context);
static ExtensionRegistryFactory* GetInstance();
private:
friend struct DefaultSingletonTraits<ExtensionRegistryFactory>;
ExtensionRegistryFactory();
virtual ~ExtensionRegistryFactory();
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(ExtensionRegistryFactory);
};
}
#endif