Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / common / speech_recognition_messages.h
index 5e4fcf5..80eb7f7 100644 (file)
@@ -6,11 +6,14 @@
 
 #include <string>
 
+#include "base/memory/shared_memory.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"
 
 #define IPC_MESSAGE_START SpeechRecognitionMsgStart
@@ -62,6 +65,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 the user has set an audio track as input or not.
+  IPC_STRUCT_MEMBER(bool, using_audio_track)
 IPC_STRUCT_END()
 
 
@@ -114,3 +119,9 @@ 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_AudioReceiverReady,
+                    int /* request_id */,
+                    media::AudioParameters /* params */,
+                    base::SharedMemoryHandle /* memory */,
+                    base::SyncSocket::TransitDescriptor /* socket */)