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 | 8 |
8 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
11 #include "content/public/browser/speech_recognition_session_context.h" | 12 #include "content/public/browser/speech_recognition_session_context.h" |
13 #include "content/public/common/speech_recognition_grammar.h" | |
12 | 14 |
13 namespace net { | 15 namespace net { |
14 class URLRequestContextGetter; | 16 class URLRequestContextGetter; |
15 } | 17 } |
16 | 18 |
17 namespace content { | 19 namespace content { |
18 | 20 |
19 // Configuration params for creating a new speech recognition session. | 21 // Configuration params for creating a new speech recognition session. |
20 struct CONTENT_EXPORT SpeechRecognitionSessionConfig { | 22 struct CONTENT_EXPORT SpeechRecognitionSessionConfig { |
21 SpeechRecognitionSessionConfig(); | 23 SpeechRecognitionSessionConfig(); |
22 ~SpeechRecognitionSessionConfig(); | 24 ~SpeechRecognitionSessionConfig(); |
23 | 25 |
24 std::string language; | 26 std::string language; |
25 std::string grammar; | 27 SpeechRecognitionGrammarArray grammars; |
26 std::string origin_url; | 28 std::string origin_url; |
27 bool filter_profanities; | 29 bool filter_profanities; |
30 bool continuous; | |
Satish
2012/04/27 10:04:41
this name is very generic. perhaps add a comment h
Primiano Tucci (use gerrit)
2012/04/27 15:58:44
Renamed to is_one_shot.
| |
28 SpeechRecognitionSessionContext initial_context; | 31 SpeechRecognitionSessionContext initial_context; |
29 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter; | 32 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter; |
30 }; | 33 }; |
31 | 34 |
32 } // namespace content | 35 } // namespace content |
33 | 36 |
34 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ | 37 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ |
OLD | NEW |