OLD | NEW |
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_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ | 5 #ifndef CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ |
6 #define CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ | 6 #define CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 namespace net { | 26 namespace net { |
27 class URLRequestContextGetter; | 27 class URLRequestContextGetter; |
28 } | 28 } |
29 | 29 |
30 namespace speech { | 30 namespace speech { |
31 | 31 |
32 class AudioChunk; | 32 class AudioChunk; |
33 | 33 |
34 struct GoogleOneShotRemoteEngineConfig { | 34 struct CONTENT_EXPORT GoogleOneShotRemoteEngineConfig { |
35 std::string language; | 35 std::string language; |
36 std::string grammar; | 36 std::string grammar; |
37 bool filter_profanities; | 37 bool filter_profanities; |
38 std::string hardware_info; | 38 std::string hardware_info; |
39 std::string origin_url; | 39 std::string origin_url; |
40 int audio_sample_rate; | 40 int audio_sample_rate; |
41 int audio_num_bits_per_sample; | 41 int audio_num_bits_per_sample; |
42 | 42 |
43 GoogleOneShotRemoteEngineConfig(); | 43 GoogleOneShotRemoteEngineConfig(); |
44 ~GoogleOneShotRemoteEngineConfig(); | 44 ~GoogleOneShotRemoteEngineConfig(); |
(...skipping 30 matching lines...) Expand all Loading... |
75 scoped_ptr<content::URLFetcher> url_fetcher_; | 75 scoped_ptr<content::URLFetcher> url_fetcher_; |
76 scoped_refptr<net::URLRequestContextGetter> url_context_; | 76 scoped_refptr<net::URLRequestContextGetter> url_context_; |
77 scoped_ptr<AudioEncoder> encoder_; | 77 scoped_ptr<AudioEncoder> encoder_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(GoogleOneShotRemoteEngine); | 79 DISALLOW_COPY_AND_ASSIGN(GoogleOneShotRemoteEngine); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace speech | 82 } // namespace speech |
83 | 83 |
84 #endif // CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ | 84 #endif // CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ |
OLD | NEW |