OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/speech_recognition_dispatcher.h" | 5 #include "content/renderer/speech_recognition_dispatcher.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "content/common/speech_recognition_messages.h" | 9 #include "content/common/speech_recognition_messages.h" |
10 #include "content/renderer/render_view_impl.h" | 10 #include "content/renderer/render_view_impl.h" |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 void SpeechRecognitionDispatcher::ResetAudioSink() { | 307 void SpeechRecognitionDispatcher::ResetAudioSink() { |
308 #if defined(ENABLE_WEBRTC) | 308 #if defined(ENABLE_WEBRTC) |
309 speech_audio_sink_.reset(); | 309 speech_audio_sink_.reset(); |
310 #endif | 310 #endif |
311 } | 311 } |
312 | 312 |
313 const WebSpeechRecognitionHandle& SpeechRecognitionDispatcher::GetHandleFromID( | 313 const WebSpeechRecognitionHandle& SpeechRecognitionDispatcher::GetHandleFromID( |
314 int request_id) { | 314 int request_id) { |
315 HandleMap::iterator iter = handle_map_.find(request_id); | 315 HandleMap::iterator iter = handle_map_.find(request_id); |
316 DCHECK(iter != handle_map_.end()); | 316 CHECK(iter != handle_map_.end()); |
317 return iter->second; | 317 return iter->second; |
318 } | 318 } |
319 | 319 |
320 } // namespace content | 320 } // namespace content |
OLD | NEW |