| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include "base/prefs/pref_change_registrar.h" | |
| 9 #include "base/values.h" | 8 #include "base/values.h" |
| 10 #include "chrome/browser/extensions/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
| 11 #include "chrome/common/extensions/api/hotword_private.h" | 10 #include "chrome/common/extensions/api/hotword_private.h" |
| 11 #include "components/prefs/pref_change_registrar.h" |
| 12 #include "extensions/browser/browser_context_keyed_api_factory.h" | 12 #include "extensions/browser/browser_context_keyed_api_factory.h" |
| 13 #include "extensions/browser/extension_event_histogram_value.h" | 13 #include "extensions/browser/extension_event_histogram_value.h" |
| 14 | 14 |
| 15 class Profile; | 15 class Profile; |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 // Listens for changes in disable/enabled state and forwards as an extension | 19 // Listens for changes in disable/enabled state and forwards as an extension |
| 20 // event. | 20 // event. |
| 21 class HotwordPrivateEventService : public BrowserContextKeyedAPI { | 21 class HotwordPrivateEventService : public BrowserContextKeyedAPI { |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 protected: | 254 protected: |
| 255 ~HotwordPrivateSpeakerModelExistsResultFunction() override {} | 255 ~HotwordPrivateSpeakerModelExistsResultFunction() override {} |
| 256 | 256 |
| 257 // ExtensionFunction: | 257 // ExtensionFunction: |
| 258 bool RunSync() override; | 258 bool RunSync() override; |
| 259 }; | 259 }; |
| 260 | 260 |
| 261 } // namespace extensions | 261 } // namespace extensions |
| 262 | 262 |
| 263 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ | 263 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ |
| OLD | NEW |