Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / search / hotword_service.h
index def0df0..61478db 100644 (file)
@@ -12,6 +12,7 @@
 #include "content/public/browser/notification_registrar.h"
 
 class ExtensionService;
+class HotwordClient;
 class Profile;
 
 namespace hotword_internal {
@@ -72,6 +73,11 @@ class HotwordService : public content::NotificationObserver,
   // turns it off via the settings menu.
   void OnHotwordSearchEnabledChanged(const std::string& pref_name);
 
+  // Called to handle the hotword session from |client|.
+  void RequestHotwordSession(HotwordClient* client);
+  void StopHotwordSession(HotwordClient* client);
+  HotwordClient* client() { return client_; }
+
  private:
   Profile* profile_;
 
@@ -79,6 +85,8 @@ class HotwordService : public content::NotificationObserver,
 
   content::NotificationRegistrar registrar_;
 
+  HotwordClient* client_;
+
   DISALLOW_COPY_AND_ASSIGN(HotwordService);
 };