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/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" |
11 #include "third_party/WebKit/public/platform/WebString.h" | 11 #include "third_party/WebKit/public/platform/WebString.h" |
12 #include "third_party/WebKit/public/platform/WebVector.h" | 12 #include "third_party/WebKit/public/platform/WebVector.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechGrammar.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechGrammar.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognitionP
arams.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognitionP
arams.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognitionR
esult.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognitionR
esult.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognizerCl
ient.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognizerCl
ient.h" |
17 | 17 |
18 using WebKit::WebVector; | 18 using WebKit::WebVector; |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 } | 235 } |
236 | 236 |
237 const WebSpeechRecognitionHandle& SpeechRecognitionDispatcher::GetHandleFromID( | 237 const WebSpeechRecognitionHandle& SpeechRecognitionDispatcher::GetHandleFromID( |
238 int request_id) { | 238 int request_id) { |
239 HandleMap::iterator iter = handle_map_.find(request_id); | 239 HandleMap::iterator iter = handle_map_.find(request_id); |
240 DCHECK(iter != handle_map_.end()); | 240 DCHECK(iter != handle_map_.end()); |
241 return iter->second; | 241 return iter->second; |
242 } | 242 } |
243 | 243 |
244 } // namespace content | 244 } // namespace content |
OLD | NEW |