#ifndef CHROME_BROWSER_UI_WEBUI_NTP_APP_RESOURCE_CACHE_FACTORY_H_
#define CHROME_BROWSER_UI_WEBUI_NTP_APP_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 AppResourceCacheFactory : public BrowserContextKeyedServiceFactory {
public:
static NTPResourceCache* GetForProfile(Profile* profile);
static AppResourceCacheFactory* GetInstance();
private:
friend struct DefaultSingletonTraits<AppResourceCacheFactory>;
AppResourceCacheFactory();
virtual ~AppResourceCacheFactory();
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
};
#endif