| 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..0b634727ed0cd917941f6feb33f6ac1ad41b42cf 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,14 @@ class CONTENT_EXPORT SpeechRecognitionEventListener {
|
| virtual void OnAudioLevelsChange(int session_id,
|
| float volume, float noise_volume) = 0;
|
|
|
| + // TODO(burnik): Update comment.
|
| + // Invoked when using an audio track to signal back to the browser.
|
| + virtual void OnSharedAudioBusReady(
|
| + int session_id,
|
| + const media::AudioParameters& params,
|
| + const base::SharedMemoryHandle memory,
|
| + const base::SyncSocket::TransitDescriptor socket) = 0;
|
| +
|
| // 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;
|
|
|