| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SPEECH_RECOGNIZER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_IMPL_H_ | 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void OnCreated(media::AudioInputController* controller) override {} | 144 void OnCreated(media::AudioInputController* controller) override {} |
| 145 void OnError(media::AudioInputController* controller, | 145 void OnError(media::AudioInputController* controller, |
| 146 media::AudioInputController::ErrorCode error_code) override; | 146 media::AudioInputController::ErrorCode error_code) override; |
| 147 void OnLog(media::AudioInputController* controller, | 147 void OnLog(media::AudioInputController* controller, |
| 148 const std::string& message) override {} | 148 const std::string& message) override {} |
| 149 | 149 |
| 150 // AudioInputController::SyncWriter methods. | 150 // AudioInputController::SyncWriter methods. |
| 151 void Write(const media::AudioBus* data, | 151 void Write(const media::AudioBus* data, |
| 152 double volume, | 152 double volume, |
| 153 bool key_pressed, | 153 bool key_pressed, |
| 154 uint32_t hardware_delay_bytes) override; | 154 base::TimeDelta delay, |
| 155 base::TimeTicks delay_timestamp) override; |
| 155 void Close() override; | 156 void Close() override; |
| 156 | 157 |
| 157 // SpeechRecognitionEngineDelegate methods. | 158 // SpeechRecognitionEngineDelegate methods. |
| 158 void OnSpeechRecognitionEngineResults( | 159 void OnSpeechRecognitionEngineResults( |
| 159 const SpeechRecognitionResults& results) override; | 160 const SpeechRecognitionResults& results) override; |
| 160 void OnSpeechRecognitionEngineEndOfUtterance() override; | 161 void OnSpeechRecognitionEngineEndOfUtterance() override; |
| 161 void OnSpeechRecognitionEngineError( | 162 void OnSpeechRecognitionEngineError( |
| 162 const SpeechRecognitionError& error) override; | 163 const SpeechRecognitionError& error) override; |
| 163 | 164 |
| 164 media::AudioSystem* GetAudioSystem(); | 165 media::AudioSystem* GetAudioSystem(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 185 // output format. | 186 // output format. |
| 186 std::unique_ptr<SpeechRecognizerImpl::OnDataConverter> audio_converter_; | 187 std::unique_ptr<SpeechRecognizerImpl::OnDataConverter> audio_converter_; |
| 187 | 188 |
| 188 base::WeakPtrFactory<SpeechRecognizerImpl> weak_ptr_factory_; | 189 base::WeakPtrFactory<SpeechRecognizerImpl> weak_ptr_factory_; |
| 189 DISALLOW_COPY_AND_ASSIGN(SpeechRecognizerImpl); | 190 DISALLOW_COPY_AND_ASSIGN(SpeechRecognizerImpl); |
| 190 }; | 191 }; |
| 191 | 192 |
| 192 } // namespace content | 193 } // namespace content |
| 193 | 194 |
| 194 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_IMPL_H_ | 195 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_IMPL_H_ |
| OLD | NEW |