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

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

Issue 1867153002: content: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/browser/speech_recognition_session_context.h" 15 #include "content/public/browser/speech_recognition_session_context.h"
16 #include "content/public/browser/speech_recognition_session_preamble.h" 16 #include "content/public/browser/speech_recognition_session_preamble.h"
17 #include "content/public/common/speech_recognition_grammar.h" 17 #include "content/public/common/speech_recognition_grammar.h"
18 #include "net/url_request/url_request_context_getter.h" 18 #include "net/url_request/url_request_context_getter.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 class SpeechRecognitionEventListener; 22 class SpeechRecognitionEventListener;
23 23
24 // Configuration params for creating a new speech recognition session. 24 // Configuration params for creating a new speech recognition session.
25 struct CONTENT_EXPORT SpeechRecognitionSessionConfig { 25 struct CONTENT_EXPORT SpeechRecognitionSessionConfig {
26 SpeechRecognitionSessionConfig(); 26 SpeechRecognitionSessionConfig();
27 SpeechRecognitionSessionConfig(const SpeechRecognitionSessionConfig& other);
27 ~SpeechRecognitionSessionConfig(); 28 ~SpeechRecognitionSessionConfig();
28 29
29 // TODO(hans): The legacy API is dead; remove this flag (crbug.com/223198). 30 // TODO(hans): The legacy API is dead; remove this flag (crbug.com/223198).
30 bool is_legacy_api; 31 bool is_legacy_api;
31 32
32 std::string language; 33 std::string language;
33 SpeechRecognitionGrammarArray grammars; 34 SpeechRecognitionGrammarArray grammars;
34 std::string origin_url; 35 std::string origin_url;
35 bool filter_profanities; 36 bool filter_profanities;
36 bool continuous; 37 bool continuous;
37 bool interim_results; 38 bool interim_results;
38 uint32_t max_hypotheses; 39 uint32_t max_hypotheses;
39 std::string auth_token; 40 std::string auth_token;
40 std::string auth_scope; 41 std::string auth_scope;
41 scoped_refptr<SpeechRecognitionSessionPreamble> preamble; 42 scoped_refptr<SpeechRecognitionSessionPreamble> preamble;
42 SpeechRecognitionSessionContext initial_context; 43 SpeechRecognitionSessionContext initial_context;
43 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter; 44 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter;
44 base::WeakPtr<SpeechRecognitionEventListener> event_listener; 45 base::WeakPtr<SpeechRecognitionEventListener> event_listener;
45 }; 46 };
46 47
47 } // namespace content 48 } // namespace content
48 49
49 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_ 50 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_
OLDNEW
« no previous file with comments | « content/common/text_input_state.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