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

Unified Diff: chrome/browser/speech/extension_api/tts_extension_api.h

Issue 2409643002: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/speech/extension_api/tts_extension_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/extension_api/tts_extension_api.h
diff --git a/chrome/browser/speech/extension_api/tts_extension_api.h b/chrome/browser/speech/extension_api/tts_extension_api.h
index 8c153bc2fd214ed7273f78a2cae81a2473ec1921..734decc16dade8efd6689b0ee94349a3d15bc0c1 100644
--- a/chrome/browser/speech/extension_api/tts_extension_api.h
+++ b/chrome/browser/speech/extension_api/tts_extension_api.h
@@ -27,38 +27,38 @@ class TtsSpeakFunction : public ChromeAsyncExtensionFunction {
DECLARE_EXTENSION_FUNCTION("tts.speak", TTS_SPEAK)
};
-class TtsStopSpeakingFunction : public ChromeSyncExtensionFunction {
+class TtsStopSpeakingFunction : public UIThreadExtensionFunction {
private:
~TtsStopSpeakingFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
DECLARE_EXTENSION_FUNCTION("tts.stop", TTS_STOP)
};
-class TtsPauseFunction : public ChromeSyncExtensionFunction {
+class TtsPauseFunction : public UIThreadExtensionFunction {
private:
~TtsPauseFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
DECLARE_EXTENSION_FUNCTION("tts.pause", TTS_PAUSE)
};
-class TtsResumeFunction : public ChromeSyncExtensionFunction {
+class TtsResumeFunction : public UIThreadExtensionFunction {
private:
~TtsResumeFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
DECLARE_EXTENSION_FUNCTION("tts.resume", TTS_RESUME)
};
-class TtsIsSpeakingFunction : public ChromeSyncExtensionFunction {
+class TtsIsSpeakingFunction : public UIThreadExtensionFunction {
private:
~TtsIsSpeakingFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
DECLARE_EXTENSION_FUNCTION("tts.isSpeaking", TTS_ISSPEAKING)
};
-class TtsGetVoicesFunction : public ChromeSyncExtensionFunction {
+class TtsGetVoicesFunction : public UIThreadExtensionFunction {
private:
~TtsGetVoicesFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
DECLARE_EXTENSION_FUNCTION("tts.getVoices", TTS_GETVOICES)
};
« no previous file with comments | « no previous file | chrome/browser/speech/extension_api/tts_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698