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_ |