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

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

Issue 448033002: Eliminate the dependency of Profile from TtsMessageFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace Profile by BrowserContext and Fix indents Created 6 years, 4 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
Index: chrome/browser/speech/extension_api/tts_engine_extension_api.h
diff --git a/chrome/browser/speech/extension_api/tts_engine_extension_api.h b/chrome/browser/speech/extension_api/tts_engine_extension_api.h
index 4d9310cf1d24a8b3aebd2104078f6a374fe3f420..b7f00cf35c8b6c91269769492ac4810e128e6151 100644
--- a/chrome/browser/speech/extension_api/tts_engine_extension_api.h
+++ b/chrome/browser/speech/extension_api/tts_engine_extension_api.h
@@ -17,6 +17,10 @@ namespace base {
class ListValue;
}
+namespace content {
+class BrowserContext;
+}
+
namespace extensions {
class Extension;
}
@@ -34,15 +38,15 @@ class TtsExtensionEngine : public TtsEngineDelegate {
static TtsExtensionEngine* GetInstance();
// Overridden from TtsEngineDelegate:
- virtual void GetVoices(Profile* profile,
- std::vector<VoiceData>* out_voices) OVERRIDE;
+ virtual void GetVoices(content::BrowserContext* browser_context,
+ std::vector<VoiceData>* out_voices) OVERRIDE;
mrunal 2014/08/12 18:55:17 Also fixed the indentation here.
virtual void Speak(Utterance* utterance, const VoiceData& voice) OVERRIDE;
virtual void Stop(Utterance* utterance) OVERRIDE;
virtual void Pause(Utterance* utterance) OVERRIDE;
virtual void Resume(Utterance* utterance) OVERRIDE;
- virtual bool LoadBuiltInTtsExtension(Profile* profile) OVERRIDE;
+ virtual bool LoadBuiltInTtsExtension(
+ content::BrowserContext* browser_context) OVERRIDE;
};
-
// Hidden/internal extension function used to allow TTS engine extensions
// to send events back to the client that's calling tts.speak().
class ExtensionTtsEngineSendTtsEventFunction : public SyncExtensionFunction {

Powered by Google App Engine
This is Rietveld 408576698