Chromium Code Reviews| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 virtual int GetDesiredAudioChunkDurationMs() const OVERRIDE; | 68 virtual int GetDesiredAudioChunkDurationMs() const OVERRIDE; |
| 69 | 69 |
| 70 // content::URLFetcherDelegate methods. | 70 // content::URLFetcherDelegate methods. |
| 71 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE; | 71 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 GoogleOneShotRemoteEngineConfig config_; | 74 GoogleOneShotRemoteEngineConfig config_; |
| 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 bool url_fetcher_destroyed_; | |
|
Satish
2012/04/23 10:25:17
Should these changes be removed?
Primiano Tucci (use gerrit)
2012/04/23 12:52:25
I did remove them in the last patch-set. Probably
| |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(GoogleOneShotRemoteEngine); | 80 DISALLOW_COPY_AND_ASSIGN(GoogleOneShotRemoteEngine); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace speech | 83 } // namespace speech |
| 83 | 84 |
| 84 #endif // CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ | 85 #endif // CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ |
| OLD | NEW |