| 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" | 8 #include "base/prefs/pref_change_registrar.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/extensions/chrome_extension_function.h" | 10 #include "chrome/browser/extensions/chrome_extension_function.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.stopTraining", | 169 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.stopTraining", |
| 170 HOTWORDPRIVATE_STOPTRAINING) | 170 HOTWORDPRIVATE_STOPTRAINING) |
| 171 | 171 |
| 172 protected: | 172 protected: |
| 173 ~HotwordPrivateStopTrainingFunction() override {} | 173 ~HotwordPrivateStopTrainingFunction() override {} |
| 174 | 174 |
| 175 // ExtensionFunction: | 175 // ExtensionFunction: |
| 176 bool RunSync() override; | 176 bool RunSync() override; |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 class HotwordPrivateGetLocalizedStringsFunction |
| 180 : public ChromeSyncExtensionFunction { |
| 181 public: |
| 182 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.getLocalizedStrings", |
| 183 HOTWORDPRIVATE_GETLOCALIZEDSTRINGS) |
| 184 |
| 185 protected: |
| 186 virtual ~HotwordPrivateGetLocalizedStringsFunction() {} |
| 187 |
| 188 // ExtensionFunction: |
| 189 virtual bool RunSync() override; |
| 190 }; |
| 191 |
| 179 } // namespace extensions | 192 } // namespace extensions |
| 180 | 193 |
| 181 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ | 194 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ |
| OLD | NEW |