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

Side by Side Diff: chrome/browser/extensions/api/hotword_private/hotword_private_api.h

Issue 715773002: Hotword Private API: Add support for retrieving localized strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.stopTraining", 184 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.stopTraining",
185 HOTWORDPRIVATE_STOPTRAINING) 185 HOTWORDPRIVATE_STOPTRAINING)
186 186
187 protected: 187 protected:
188 ~HotwordPrivateStopTrainingFunction() override {} 188 ~HotwordPrivateStopTrainingFunction() override {}
189 189
190 // ExtensionFunction: 190 // ExtensionFunction:
191 bool RunSync() override; 191 bool RunSync() override;
192 }; 192 };
193 193
194 class HotwordPrivateGetLocalizedStringsFunction
195 : public ChromeSyncExtensionFunction {
196 public:
197 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.getLocalizedStrings",
198 HOTWORDPRIVATE_GETLOCALIZEDSTRINGS)
199
200 protected:
201 virtual ~HotwordPrivateGetLocalizedStringsFunction() {}
202
203 // ExtensionFunction:
204 virtual bool RunSync() override;
205 };
206
194 } // namespace extensions 207 } // namespace extensions
195 208
196 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ 209 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | 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