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 #ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ |
6 #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ | 6 #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 struct SpeechRecognitionHypothesis { | 16 struct SpeechRecognitionHypothesis { |
17 string16 utterance; | 17 string16 utterance; |
18 double confidence; | 18 double confidence; |
19 | 19 |
20 SpeechRecognitionHypothesis() : confidence(0.0) {} | 20 SpeechRecognitionHypothesis() : confidence(0.0) {} |
21 | 21 |
(...skipping 13 matching lines...) Expand all Loading... |
35 | 35 |
36 SpeechRecognitionResult(); | 36 SpeechRecognitionResult(); |
37 ~SpeechRecognitionResult(); | 37 ~SpeechRecognitionResult(); |
38 }; | 38 }; |
39 | 39 |
40 typedef std::vector<SpeechRecognitionResult> SpeechRecognitionResults; | 40 typedef std::vector<SpeechRecognitionResult> SpeechRecognitionResults; |
41 | 41 |
42 } // namespace content | 42 } // namespace content |
43 | 43 |
44 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ | 44 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ |
OLD | NEW |