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

Unified Diff: chrome/renderer/tts_dispatcher.cc

Issue 15069006: Merge 198786 "Implement TTS dispatcher using RenderProcessObserv..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/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
===================================================================
--- chrome/renderer/tts_dispatcher.cc (revision 199004)
+++ chrome/renderer/tts_dispatcher.cc (working copy)
@@ -25,15 +25,14 @@
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