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

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 CONTENT_EXPORT to SpeechRecognitionEngine::Config 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 #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"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #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"
13 14
14 namespace net { 15 namespace net {
15 class URLRequestContextGetter; 16 class URLRequestContextGetter;
16 } 17 }
17 18
18 namespace content { 19 namespace content {
19 20
20 // Configuration params for creating a new speech recognition session. 21 // Configuration params for creating a new speech recognition session.
21 struct CONTENT_EXPORT SpeechRecognitionSessionConfig { 22 struct CONTENT_EXPORT SpeechRecognitionSessionConfig {
22 SpeechRecognitionSessionConfig(); 23 SpeechRecognitionSessionConfig();
23 ~SpeechRecognitionSessionConfig(); 24 ~SpeechRecognitionSessionConfig();
24 25
26 // Enables one shot mode, which delivers a single result at the end of the
27 // speech, ending automatically recognition. When deasserted, continuous mode
28 // is used instead, carrying out recognition until an explicit stop request.
29 bool is_one_shot;
25 std::string language; 30 std::string language;
26 std::string grammar; 31 SpeechRecognitionGrammarArray grammars;
27 std::string origin_url; 32 std::string origin_url;
28 bool filter_profanities; 33 bool filter_profanities;
29 SpeechRecognitionSessionContext initial_context; 34 SpeechRecognitionSessionContext initial_context;
30 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter; 35 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter;
31 }; 36 };
32 37
33 } // namespace content 38 } // namespace content
34 39
35 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ 40 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698