| 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_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ | 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ |
| 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ | 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | |
| 11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 12 #include "content/public/browser/speech_recognition_session_preamble.h" | 13 #include "content/public/browser/speech_recognition_session_preamble.h" |
| 13 #include "content/public/common/speech_recognition_grammar.h" | 14 #include "content/public/common/speech_recognition_grammar.h" |
| 14 #include "content/public/common/speech_recognition_result.h" | 15 #include "content/public/common/speech_recognition_result.h" |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 class AudioChunk; | 19 class AudioChunk; |
| 19 struct SpeechRecognitionError; | 20 struct SpeechRecognitionError; |
| 20 | 21 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 49 // Remote engine configuration. | 50 // Remote engine configuration. |
| 50 struct CONTENT_EXPORT Config { | 51 struct CONTENT_EXPORT Config { |
| 51 Config(); | 52 Config(); |
| 52 ~Config(); | 53 ~Config(); |
| 53 | 54 |
| 54 std::string language; | 55 std::string language; |
| 55 SpeechRecognitionGrammarArray grammars; | 56 SpeechRecognitionGrammarArray grammars; |
| 56 bool filter_profanities; | 57 bool filter_profanities; |
| 57 bool continuous; | 58 bool continuous; |
| 58 bool interim_results; | 59 bool interim_results; |
| 59 uint32 max_hypotheses; | 60 uint32_t max_hypotheses; |
| 60 std::string hardware_info; | 61 std::string hardware_info; |
| 61 std::string origin_url; | 62 std::string origin_url; |
| 62 int audio_sample_rate; | 63 int audio_sample_rate; |
| 63 int audio_num_bits_per_sample; | 64 int audio_num_bits_per_sample; |
| 64 std::string auth_token; | 65 std::string auth_token; |
| 65 std::string auth_scope; | 66 std::string auth_scope; |
| 66 scoped_refptr<SpeechRecognitionSessionPreamble> preamble; | 67 scoped_refptr<SpeechRecognitionSessionPreamble> preamble; |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 virtual ~SpeechRecognitionEngine() {} | 70 virtual ~SpeechRecognitionEngine() {} |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 109 |
| 109 // These typedefs are to workaround the issue with certain versions of | 110 // These typedefs are to workaround the issue with certain versions of |
| 110 // Visual Studio where it gets confused between multiple Delegate | 111 // Visual Studio where it gets confused between multiple Delegate |
| 111 // classes and gives a C2500 error. | 112 // classes and gives a C2500 error. |
| 112 typedef SpeechRecognitionEngine::Delegate SpeechRecognitionEngineDelegate; | 113 typedef SpeechRecognitionEngine::Delegate SpeechRecognitionEngineDelegate; |
| 113 typedef SpeechRecognitionEngine::Config SpeechRecognitionEngineConfig; | 114 typedef SpeechRecognitionEngine::Config SpeechRecognitionEngineConfig; |
| 114 | 115 |
| 115 } // namespace content | 116 } // namespace content |
| 116 | 117 |
| 117 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ | 118 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ |
| OLD | NEW |