Index: content/common/speech_recognition_messages.h |
diff --git a/content/common/speech_recognition_messages.h b/content/common/speech_recognition_messages.h |
index 5e4fcf56db4cb21bfc81268c1f9e0f69a69ae67a..1bf8114d46d4bb92d6762dd1f7a7d320551dae49 100644 |
--- a/content/common/speech_recognition_messages.h |
+++ b/content/common/speech_recognition_messages.h |
@@ -6,13 +6,21 @@ |
#include <string> |
+#include "base/memory/shared_memory.h" |
+#include "base/process/process_handle.h" |
+#include "base/sync_socket.h" |
#include "content/public/common/speech_recognition_error.h" |
#include "content/public/common/speech_recognition_grammar.h" |
#include "content/public/common/speech_recognition_result.h" |
#include "ipc/ipc_message_macros.h" |
#include "ipc/ipc_param_traits.h" |
+#include "media/audio/audio_parameters.h" |
#include "ui/gfx/rect.h" |
+#if defined(OS_POSIX) |
+#include "base/file_descriptor_posix.h" |
no longer working on chromium
2014/09/15 08:31:27
?? why do you need this?
Also, shouldn't this IPC
burnik
2014/09/15 15:00:05
Legacy from before SyncSocket::TransitDescriptor.
|
+#endif |
+ |
#define IPC_MESSAGE_START SpeechRecognitionMsgStart |
IPC_ENUM_TRAITS_MAX_VALUE(content::SpeechAudioErrorDetails, |
@@ -62,6 +70,8 @@ IPC_STRUCT_BEGIN(SpeechRecognitionHostMsg_StartRequest_Params) |
IPC_STRUCT_MEMBER(bool, continuous) |
// Whether the user requested interim results or not. |
IPC_STRUCT_MEMBER(bool, interim_results) |
+ // Wheter user has set an audio track as input |
+ IPC_STRUCT_MEMBER(bool, using_audio_track) |
IPC_STRUCT_END() |
@@ -114,3 +124,8 @@ IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundEnded, int /* request_id */) |
IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) |
IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) |
+ |
+IPC_MESSAGE_ROUTED4(SpeechRecognitionMsg_AudioTrackReady, int /* request_id */, |
+ media::AudioParameters /* params */, |
+ base::SharedMemoryHandle /* memory */, |
+ base::SyncSocket::TransitDescriptor /* socket */) |