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

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

Issue 10399025: Moved instantiation of SpeechRecognitionManager inside browser_main_loop, instead of Singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed build issues. 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 #include "content/public/common/speech_recognition_grammar.h"
14 14 #include "net/url_request/url_request_context_getter.h"
15 namespace net {
16 class URLRequestContextGetter;
17 }
18 15
19 namespace content { 16 namespace content {
20 17
21 class SpeechRecognitionEventListener; 18 class SpeechRecognitionEventListener;
22 19
23 // Configuration params for creating a new speech recognition session. 20 // Configuration params for creating a new speech recognition session.
24 struct CONTENT_EXPORT SpeechRecognitionSessionConfig { 21 struct CONTENT_EXPORT SpeechRecognitionSessionConfig {
25 SpeechRecognitionSessionConfig(); 22 SpeechRecognitionSessionConfig();
26 ~SpeechRecognitionSessionConfig(); 23 ~SpeechRecognitionSessionConfig();
27 24
28 // 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
29 // speech, ending automatically recognition. When deasserted, continuous mode 26 // speech, ending automatically recognition. When deasserted, continuous mode
30 // is used instead, carrying out recognition until an explicit stop request. 27 // is used instead, carrying out recognition until an explicit stop request.
31 bool is_one_shot; 28 bool is_one_shot;
32 std::string language; 29 std::string language;
33 SpeechRecognitionGrammarArray grammars; 30 SpeechRecognitionGrammarArray grammars;
34 std::string origin_url; 31 std::string origin_url;
35 bool filter_profanities; 32 bool filter_profanities;
36 SpeechRecognitionSessionContext initial_context; 33 SpeechRecognitionSessionContext initial_context;
37 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter; 34 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter;
38 SpeechRecognitionEventListener* event_listener; 35 SpeechRecognitionEventListener* event_listener;
39 }; 36 };
40 37
41 } // namespace content 38 } // namespace content
42 39
43 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ 40 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognition_manager_impl.cc ('k') | content/public/browser/speech_recognition_session_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698