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

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

Issue 528113003: Hotword Audio Verification App: Adds to hotwordPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@page-one
Patch Set: Review comments Created 6 years, 3 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 c871684914afe3c20f7e257e368548e21c7edfd6..479c1b647d86b7ea939938ba2ca4e65bef61e53d 100644
--- a/chrome/browser/search/hotword_service.h
+++ b/chrome/browser/search/hotword_service.h
@@ -110,6 +110,21 @@ class HotwordService : public content::NotificationObserver,
// no error.
int error_message() { return error_message_; }
+ // These methods are for launching, and getting and setting the launch mode of
+ // the Hotword Audio Verification App.
+ //
+ // TODO(kcarattini): Remove this when
+ // https://code.google.com/p/chromium/issues/detail?id=165573 is fixed,
+ // at which time we can simply launch the app in the given mode instead of
+ // having to check for it here.
+ enum LaunchMode {
+ AUDIO_HISTORY_ONLY,
+ HOTWORD_ONLY,
+ HOTWORD_AND_AUDIO_HISTORY
+ };
+ void LaunchHotwordAudioVerificationApp(const LaunchMode& launch_mode);
+ virtual LaunchMode GetHotwordAudioVerificationLaunchMode();
+
private:
Profile* profile_;
@@ -130,6 +145,9 @@ class HotwordService : public content::NotificationObserver,
base::WeakPtrFactory<HotwordService> weak_factory_;
+ // Stores the launch mode for the Hotword Audio Verification App.
+ LaunchMode hotword_audio_verification_launch_mode_;
+
DISALLOW_COPY_AND_ASSIGN(HotwordService);
};

Powered by Google App Engine
This is Rietveld 408576698