| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual void TakeAudioChunk(const AudioChunk& data) OVERRIDE; | 51 virtual void TakeAudioChunk(const AudioChunk& data) OVERRIDE; |
| 52 virtual void AudioChunksEnded() OVERRIDE; | 52 virtual void AudioChunksEnded() OVERRIDE; |
| 53 virtual bool IsRecognitionPending() const OVERRIDE; | 53 virtual bool IsRecognitionPending() const OVERRIDE; |
| 54 virtual int GetDesiredAudioChunkDurationMs() const OVERRIDE; | 54 virtual int GetDesiredAudioChunkDurationMs() const OVERRIDE; |
| 55 | 55 |
| 56 // net::URLFetcherDelegate methods. | 56 // net::URLFetcherDelegate methods. |
| 57 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; | 57 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 SpeechRecognitionEngineConfig config_; | 60 SpeechRecognitionEngineConfig config_; |
| 61 scoped_ptr<content::URLFetcher> url_fetcher_; | 61 scoped_ptr<net::URLFetcher> url_fetcher_; |
| 62 scoped_refptr<net::URLRequestContextGetter> url_context_; | 62 scoped_refptr<net::URLRequestContextGetter> url_context_; |
| 63 scoped_ptr<AudioEncoder> encoder_; | 63 scoped_ptr<AudioEncoder> encoder_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(GoogleOneShotRemoteEngine); | 65 DISALLOW_COPY_AND_ASSIGN(GoogleOneShotRemoteEngine); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace speech | 68 } // namespace speech |
| 69 | 69 |
| 70 #endif // CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ | 70 #endif // CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ |
| OLD | NEW |