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

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

Issue 1027683002: Hotword Private API: Add function and event to query the existence of a speaker model (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 2c0e086ba12c99f80ae2c522cc5e681ecea7649f..e5da97433f0fc3124784c1dbd5f49daa42909cb4 100644
--- a/chrome/browser/search/hotword_service.h
+++ b/chrome/browser/search/hotword_service.h
@@ -146,9 +146,15 @@ class HotwordService : public extensions::ExtensionRegistryObserver,
HOTWORD_AND_AUDIO_HISTORY,
RETRAIN
};
+ void OptIntoHotwording(const LaunchMode& launch_mode);
void LaunchHotwordAudioVerificationApp(const LaunchMode& launch_mode);
virtual LaunchMode GetHotwordAudioVerificationLaunchMode();
+ // Called when the SpeakerModelExists request is complete. Either
+ // sets the always-on hotword pref to true, or launches the Hotword
+ // Audio Verification App, depending on the value of |exists|.
+ void SpeakerModelExistsComplete(bool exists);
+
// These methods control the speaker training communication between
// the Hotword Audio Verification App and the Hotword Extension that
// contains the NaCl module.

Powered by Google App Engine
This is Rietveld 408576698