ApplicationImpl cleanup, part 1:
[chromium-blink-merge.git] / content / public / browser / speech_recognition_session_config.h
blobe5343e2750396c1250eeb1f39e4de5781a29cd2c
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h"
13 #include "content/common/content_export.h"
14 #include "content/public/browser/speech_recognition_session_context.h"
15 #include "content/public/browser/speech_recognition_session_preamble.h"
16 #include "content/public/common/speech_recognition_grammar.h"
17 #include "net/url_request/url_request_context_getter.h"
19 namespace content {
21 class SpeechRecognitionEventListener;
23 // Configuration params for creating a new speech recognition session.
24 struct CONTENT_EXPORT SpeechRecognitionSessionConfig {
25 SpeechRecognitionSessionConfig();
26 ~SpeechRecognitionSessionConfig();
28 // TODO(hans): The legacy API is dead; remove this flag (crbug.com/223198).
29 bool is_legacy_api;
31 std::string language;
32 SpeechRecognitionGrammarArray grammars;
33 std::string origin_url;
34 bool filter_profanities;
35 bool continuous;
36 bool interim_results;
37 uint32 max_hypotheses;
38 std::string auth_token;
39 std::string auth_scope;
40 scoped_refptr<SpeechRecognitionSessionPreamble> preamble;
41 SpeechRecognitionSessionContext initial_context;
42 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter;
43 base::WeakPtr<SpeechRecognitionEventListener> event_listener;
46 } // namespace content
48 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_