| 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> | 8 #include <stdint.h> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 struct CONTENT_EXPORT Config { | 79 struct CONTENT_EXPORT Config { |
| 80 Config(); | 80 Config(); |
| 81 ~Config(); | 81 ~Config(); |
| 82 | 82 |
| 83 std::string language; | 83 std::string language; |
| 84 SpeechRecognitionGrammarArray grammars; | 84 SpeechRecognitionGrammarArray grammars; |
| 85 bool filter_profanities; | 85 bool filter_profanities; |
| 86 bool continuous; | 86 bool continuous; |
| 87 bool interim_results; | 87 bool interim_results; |
| 88 uint32_t max_hypotheses; | 88 uint32_t max_hypotheses; |
| 89 std::string hardware_info; | |
| 90 std::string origin_url; | 89 std::string origin_url; |
| 91 int audio_sample_rate; | 90 int audio_sample_rate; |
| 92 int audio_num_bits_per_sample; | 91 int audio_num_bits_per_sample; |
| 93 std::string auth_token; | 92 std::string auth_token; |
| 94 std::string auth_scope; | 93 std::string auth_scope; |
| 95 scoped_refptr<SpeechRecognitionSessionPreamble> preamble; | 94 scoped_refptr<SpeechRecognitionSessionPreamble> preamble; |
| 96 }; | 95 }; |
| 97 | 96 |
| 98 // set_delegate detached from constructor for lazy dependency injection. | 97 // set_delegate detached from constructor for lazy dependency injection. |
| 99 void set_delegate(Delegate* delegate) { delegate_ = delegate; } | 98 void set_delegate(Delegate* delegate) { delegate_ = delegate; } |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 bool is_dispatching_event_; | 215 bool is_dispatching_event_; |
| 217 bool use_framed_post_data_; | 216 bool use_framed_post_data_; |
| 218 FSMState state_; | 217 FSMState state_; |
| 219 | 218 |
| 220 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionEngine); | 219 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionEngine); |
| 221 }; | 220 }; |
| 222 | 221 |
| 223 } // namespace content | 222 } // namespace content |
| 224 | 223 |
| 225 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ | 224 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ |
| OLD | NEW |