Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: chrome/browser/search/hotword_service.h

Issue 267653005: Adds HotwordPrivate API for integrating the hotword feature to AppLauncher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search/hotword_service.h
diff --git a/chrome/browser/search/hotword_service.h b/chrome/browser/search/hotword_service.h
index def0df03fd54a0dc65aa9d37c58ba4de162ebea2..61478db531a3f2e54b16f6d07184b2fa6c1f3252 100644
--- a/chrome/browser/search/hotword_service.h
+++ b/chrome/browser/search/hotword_service.h
@@ -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);
};

Powered by Google App Engine
This is Rietveld 408576698