| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "content/browser/speech/audio_encoder.h" | 13 #include "content/browser/speech/audio_encoder.h" |
| 14 #include "content/browser/speech/speech_recognition_engine.h" | 14 #include "content/browser/speech/speech_recognition_engine.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "googleurl/src/gurl.h" | |
| 17 #include "net/url_request/url_fetcher_delegate.h" | 16 #include "net/url_request/url_fetcher_delegate.h" |
| 18 | 17 |
| 19 namespace net { | 18 namespace net { |
| 20 class URLRequestContextGetter; | 19 class URLRequestContextGetter; |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace content { | 22 namespace content { |
| 24 | 23 |
| 25 // Implements a SpeechRecognitionEngine by means of remote interaction with | 24 // Implements a SpeechRecognitionEngine by means of remote interaction with |
| 26 // Google speech recognition webservice. | 25 // Google speech recognition webservice. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 53 scoped_ptr<net::URLFetcher> url_fetcher_; | 52 scoped_ptr<net::URLFetcher> url_fetcher_; |
| 54 scoped_refptr<net::URLRequestContextGetter> url_context_; | 53 scoped_refptr<net::URLRequestContextGetter> url_context_; |
| 55 scoped_ptr<AudioEncoder> encoder_; | 54 scoped_ptr<AudioEncoder> encoder_; |
| 56 | 55 |
| 57 DISALLOW_COPY_AND_ASSIGN(GoogleOneShotRemoteEngine); | 56 DISALLOW_COPY_AND_ASSIGN(GoogleOneShotRemoteEngine); |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 } // namespace content | 59 } // namespace content |
| 61 | 60 |
| 62 #endif // CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ | 61 #endif // CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ |
| OLD | NEW |