| 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 bd0750160924e07257f61c3da9f13f696713303c..0a409f43449232fe79e0c7be136218242c24529d 100644
|
| --- a/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
|
| +++ b/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
|
| @@ -30,10 +30,14 @@ class HotwordPrivateEventService : public BrowserContextKeyedAPI {
|
|
|
| void OnEnabledChanged(const std::string& pref_name);
|
|
|
| + void OnHotwordSessionRequested();
|
| +
|
| + void OnHotwordSessionStopped();
|
| +
|
| private:
|
| friend class BrowserContextKeyedAPIFactory<HotwordPrivateEventService>;
|
|
|
| - void SignalEvent();
|
| + void SignalEvent(const std::string& event_name);
|
|
|
| Profile* profile_;
|
| PrefChangeRegistrar pref_change_registrar_;
|
| @@ -77,6 +81,32 @@ class HotwordPrivateGetStatusFunction : public ChromeSyncExtensionFunction {
|
| virtual bool RunSync() OVERRIDE;
|
| };
|
|
|
| +class HotwordPrivateSetHotwordSessionStateFunction
|
| + : public ChromeSyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("hotwordPrivate.setHotwordSessionState",
|
| + HOTWORDPRIVATE_SETHOTWORDSESSIONSTATE);
|
| +
|
| + protected:
|
| + virtual ~HotwordPrivateSetHotwordSessionStateFunction() {}
|
| +
|
| + // ExtensionFunction:
|
| + virtual bool RunSync() OVERRIDE;
|
| +};
|
| +
|
| +class HotwordPrivateNotifyHotwordRecognitionFunction
|
| + : public ChromeSyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("hotwordPrivate.notifyHotwordRecognition",
|
| + HOTWORDPRIVATE_NOTIFYHOTWORDRECOGNITION);
|
| +
|
| + protected:
|
| + virtual ~HotwordPrivateNotifyHotwordRecognitionFunction() {}
|
| +
|
| + // ExtensionFunction:
|
| + virtual bool RunSync() OVERRIDE;
|
| +};
|
| +
|
| } // namespace extensions
|
|
|
| #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_
|
|
|