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_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ |
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 ~SpeechRecognitionSessionConfig(); | 23 ~SpeechRecognitionSessionConfig(); |
24 | 24 |
25 // Enables one shot mode, which delivers a single result at the end of the | 25 // Enables one shot mode, which delivers a single result at the end of the |
26 // speech, ending automatically recognition. When deasserted, continuous mode | 26 // speech, ending automatically recognition. When deasserted, continuous mode |
27 // is used instead, carrying out recognition until an explicit stop request. | 27 // is used instead, carrying out recognition until an explicit stop request. |
28 bool is_one_shot; | 28 bool is_one_shot; |
29 std::string language; | 29 std::string language; |
30 SpeechRecognitionGrammarArray grammars; | 30 SpeechRecognitionGrammarArray grammars; |
31 std::string origin_url; | 31 std::string origin_url; |
32 bool filter_profanities; | 32 bool filter_profanities; |
| 33 uint32 max_hypotheses; |
33 SpeechRecognitionSessionContext initial_context; | 34 SpeechRecognitionSessionContext initial_context; |
34 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter; | 35 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter; |
35 SpeechRecognitionEventListener* event_listener; | 36 SpeechRecognitionEventListener* event_listener; |
36 }; | 37 }; |
37 | 38 |
38 } // namespace content | 39 } // namespace content |
39 | 40 |
40 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ | 41 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ |
OLD | NEW |