#ifndef CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_FACTORY_H_
#define CHROME_BROWSER_UI_WEBUI_NTP_NTP_RESOURCE_CACHE_FACTORY_H_
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class NTPResourceCache;
class Profile;
class NTPResourceCacheFactory : public BrowserContextKeyedServiceFactory {
public:
static NTPResourceCache* GetForProfile(Profile* profile);
static NTPResourceCacheFactory* GetInstance();
private:
friend struct DefaultSingletonTraits<NTPResourceCacheFactory>;
NTPResourceCacheFactory();
virtual ~NTPResourceCacheFactory();
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
};
#endif