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

Unified Diff: chrome/renderer/tts_dispatcher.cc

Issue 15031002: Implement TTS dispatcher using RenderProcessObserver instead of MessageFilter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « chrome/renderer/tts_dispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/tts_dispatcher.cc
diff --git a/chrome/renderer/tts_dispatcher.cc b/chrome/renderer/tts_dispatcher.cc
index e1aa2ceefde1a9f4c5b5f710a7f16de46111f8c0..0ca8c878ca0e057bcfae9188a56a5598ff017f78 100644
--- a/chrome/renderer/tts_dispatcher.cc
+++ b/chrome/renderer/tts_dispatcher.cc
@@ -25,15 +25,14 @@ using WebKit::WebVector;
int TtsDispatcher::next_utterance_id_ = 1;
TtsDispatcher::TtsDispatcher(WebSpeechSynthesizerClient* client)
- : synthesizer_client_(client),
- main_loop_(base::MessageLoopProxy::current()) {
- RenderThread::Get()->AddFilter(this);
+ : synthesizer_client_(client) {
+ RenderThread::Get()->AddObserver(this);
}
TtsDispatcher::~TtsDispatcher() {
}
-bool TtsDispatcher::OnMessageReceived(const IPC::Message& message) {
+bool TtsDispatcher::OnControlMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(TtsDispatcher, message)
IPC_MESSAGE_HANDLER(TtsMsg_SetVoiceList, OnSetVoiceList)
« no previous file with comments | « chrome/renderer/tts_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698