| Index: content/browser/speech/speech_recognition_dispatcher_host.cc
|
| ===================================================================
|
| --- content/browser/speech/speech_recognition_dispatcher_host.cc (revision 286375)
|
| +++ content/browser/speech/speech_recognition_dispatcher_host.cc (working copy)
|
| @@ -55,6 +55,8 @@
|
| OnAbortRequest)
|
| IPC_MESSAGE_HANDLER(SpeechRecognitionHostMsg_StopCaptureRequest,
|
| OnStopCaptureRequest)
|
| + IPC_MESSAGE_HANDLER(SpeechRecognitionHostMsg_AbortAllRequests,
|
| + OnAbortAllRequests)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
| return handled;
|
| @@ -168,6 +170,11 @@
|
| SpeechRecognitionManager::GetInstance()->AbortSession(session_id);
|
| }
|
|
|
| +void SpeechRecognitionDispatcherHost::OnAbortAllRequests(int render_view_id) {
|
| + SpeechRecognitionManager::GetInstance()->AbortAllSessionsForRenderView(
|
| + render_process_id_, render_view_id);
|
| +}
|
| +
|
| void SpeechRecognitionDispatcherHost::OnStopCaptureRequest(
|
| int render_view_id, int request_id) {
|
| int session_id = SpeechRecognitionManager::GetInstance()->GetSession(
|
|
|