Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: content/public/browser/speech_recognition_session_config.h

Issue 10233010: Introducing new data types and IPC messages for scripted JS speech recognition APIs (Speech CL2.0) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added also SpeechRecognitionSessionContext Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/browser/speech_recognition_session_context.h" 11 #include "content/public/browser/speech_recognition_session_context.h"
12 #include "content/public/common/speech_recognition_grammar.h"
12 13
13 namespace net { 14 namespace net {
14 class URLRequestContextGetter; 15 class URLRequestContextGetter;
15 } 16 }
16 17
17 namespace content { 18 namespace content {
18 19
19 // Configuration params for creating a new speech recognition session. 20 // Configuration params for creating a new speech recognition session.
20 struct CONTENT_EXPORT SpeechRecognitionSessionConfig { 21 struct CONTENT_EXPORT SpeechRecognitionSessionConfig {
21 SpeechRecognitionSessionConfig(); 22 SpeechRecognitionSessionConfig();
22 ~SpeechRecognitionSessionConfig(); 23 ~SpeechRecognitionSessionConfig();
23 24
24 std::string language; 25 std::string language;
25 std::string grammar; 26 SpeechRecognitionGrammarArray grammars;
26 std::string origin_url; 27 std::string origin_url;
27 bool filter_profanities; 28 bool filter_profanities;
29 bool continuous;
28 SpeechRecognitionSessionContext initial_context; 30 SpeechRecognitionSessionContext initial_context;
29 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter; 31 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter;
30 }; 32 };
31 33
32 } // namespace content 34 } // namespace content
33 35
34 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ 36 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698