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

Unified Diff: chrome/common/extensions/api/hotword_private.idl

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: Upload remaining test files 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/common/extensions/api/hotword_private.idl
diff --git a/chrome/common/extensions/api/hotword_private.idl b/chrome/common/extensions/api/hotword_private.idl
index 4857c9b304664215df33a95706021a010cea07e5..012ad647307d456a9db315ae04dfea833818f25b 100644
--- a/chrome/common/extensions/api/hotword_private.idl
+++ b/chrome/common/extensions/api/hotword_private.idl
@@ -149,6 +149,10 @@ namespace hotwordPrivate {
// Gets the audio history opt-in state.
static void getAudioHistoryEnabled(optional AudioHistoryCallback callback);
+
+ // Sends the result of whether a speaker model exists to the browser.
+ static void speakerModelExistsResult(boolean exists,
+ optional GenericDoneCallback callback);
};
interface Events {
@@ -174,5 +178,9 @@ namespace hotwordPrivate {
// Fired when the speaker model should be deleted.
static void onDeleteSpeakerModel();
+
+ // Fired when the browser wants to find out whether the speaker model
+ // exists.
+ static void onSpeakerModelExists();
};
};

Powered by Google App Engine
This is Rietveld 408576698