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