#ifndef CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_FACTORY_H_
#define CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_FACTORY_H_
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class HotwordService;
class Profile;
class HotwordServiceFactory : public BrowserContextKeyedServiceFactory {
public:
static HotwordService* GetForProfile(content::BrowserContext* context);
static HotwordServiceFactory* GetInstance();
static bool ShouldShowOptInPopup(content::BrowserContext* context);
static bool IsServiceAvailable(content::BrowserContext* context);
static bool IsHotwordAllowed(content::BrowserContext* context);
static bool RetryHotwordExtension(Profile* profile);
private:
friend struct DefaultSingletonTraits<HotwordServiceFactory>;
HotwordServiceFactory();
virtual ~HotwordServiceFactory();
virtual void RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(HotwordServiceFactory);
};
#endif