Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / search / hotword_service.h
index 5d58417..ef587a3 100644 (file)
 
 class Profile;
 
+namespace hotword_internal {
+// Constants for the hotword field trial.
+extern const char kHotwordFieldTrialName[];
+extern const char kHotwordFieldTrialDisabledGroupName[];
+}  // namespace hotword_internal
+
 // Provides an interface for the Hotword component that does voice triggered
 // search.
 class HotwordService : public BrowserContextKeyedService {
  public:
+  // Returns true if the hotword supports the current system language.
+  static bool DoesHotwordSupportLanguage(Profile* profile);
+
   explicit HotwordService(Profile* profile);
   virtual ~HotwordService();
 
@@ -27,6 +36,14 @@ class HotwordService : public BrowserContextKeyedService {
   // kHotwordOptInPopupTimesShown is also incremented.
   void ShowOptInPopup();
 
+  // Checks for whether all the necessary files have downloaded to allow for
+  // using the extension.
+  virtual bool IsServiceAvailable();
+
+  // Determine if hotwording is allowed in this profile based on field trials
+  // and language.
+  virtual bool IsHotwordAllowed();
+
  private:
   Profile* profile_;