Chromium Code Reviews| Index: content/public/browser/speech_recognition_event_listener.h |
| diff --git a/content/public/browser/speech_recognition_event_listener.h b/content/public/browser/speech_recognition_event_listener.h |
| index 8c16f9099cf56eea5563507eeff08d9a69b2d2be..1baf053155a6913fb26680d002851d1513be9346 100644 |
| --- a/content/public/browser/speech_recognition_event_listener.h |
| +++ b/content/public/browser/speech_recognition_event_listener.h |
| @@ -6,9 +6,15 @@ |
| #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_EVENT_LISTENER_H_ |
| #include "base/basictypes.h" |
| +#include "base/memory/shared_memory.h" |
| +#include "base/sync_socket.h" |
| #include "content/common/content_export.h" |
| #include "content/public/common/speech_recognition_result.h" |
| +namespace media { |
| +class AudioParameters; |
| +} |
| + |
| namespace content { |
| struct SpeechRecognitionError; |
| @@ -58,6 +64,12 @@ class CONTENT_EXPORT SpeechRecognitionEventListener { |
| virtual void OnAudioLevelsChange(int session_id, |
| float volume, float noise_volume) = 0; |
| + // TODO(burnik): Make pure virtual and update the unit test. |
|
no longer working on chromium
2014/10/02 11:55:40
you can address this TODO in this CL?
burnik
2014/10/02 16:04:12
Yes. This is already done. Will come along with th
|
| + virtual void OnAudioTrackReady(int session_id, |
| + const media::AudioParameters& params, |
| + base::SharedMemoryHandle memory, |
| + base::SyncSocket::TransitDescriptor socket) {} |
| + |
| // This is guaranteed to be the last event raised in the recognition |
| // process and the |SpeechRecognizer| object can be freed if necessary. |
| virtual void OnRecognitionEnd(int session_id) = 0; |