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

Unified Diff: chrome/browser/extensions/api/hotword_private/hotword_private_api.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: 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/hotword_private/hotword_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/hotword_private/hotword_private_api.h
diff --git a/chrome/browser/extensions/api/hotword_private/hotword_private_api.h b/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
index a7135dd2ec52b8e936136e00d653753ad71ad1d0..1272ded395f31699bae81b0d80f98f3a2375141f 100644
--- a/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
+++ b/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
@@ -42,6 +42,8 @@ class HotwordPrivateEventService : public BrowserContextKeyedAPI {
void OnDeleteSpeakerModel();
+ void OnSpeakerModelExists();
+
private:
friend class BrowserContextKeyedAPIFactory<HotwordPrivateEventService>;
@@ -236,6 +238,19 @@ class HotwordPrivateGetAudioHistoryEnabledFunction
void SetResultAndSendResponse(bool success, bool new_enabled_value);
};
+class HotwordPrivateSpeakerModelExistsResultFunction :
+ public ChromeSyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("hotwordPrivate.speakerModelExistsResult",
+ HOTWORDPRIVATE_SPEAKERMODELEXISTSRESULT)
+
+ protected:
+ ~HotwordPrivateSpeakerModelExistsResultFunction() override {}
+
+ // ExtensionFunction:
+ bool RunSync() override;
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/hotword_private/hotword_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698