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

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

Issue 10629003: Adding support for the SpeechRecognition.maxAlternatives JS API parameter (Speech CL2.5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small nits Created 8 years, 6 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"
(...skipping 12 matching lines...) Expand all
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 int 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698