Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: content/common/speech_recognition_messages.h

Issue 499233003: Binding media stream audio track to speech recognition [renderer] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Platform checks removed from dispatcher Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..7a1152c38741aca867f5fd7a9b01859534723666 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/native_sync_socket.h"
+#include "base/process/process_handle.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"
+#endif
+
#define IPC_MESSAGE_START SpeechRecognitionMsgStart
IPC_ENUM_TRAITS_MAX_VALUE(content::SpeechAudioErrorDetails,
@@ -62,6 +70,10 @@ 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)
+ // Process handle for the renderer
+ IPC_STRUCT_MEMBER(base::ProcessHandle, peer_process_handle)
IPC_STRUCT_END()
@@ -114,3 +126,10 @@ 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_ROUTED5(SpeechRecognitionMsg_AudioTrackReady,
tommi (sloooow) - chröme 2014/08/29 11:25:30 is this approach the same as what we do elsewhere
no longer working on chromium 2014/08/29 12:23:06 I have the same concern here, Tommi, FYI, our exis
burnik 2014/08/29 13:26:16 I think it would be ok if we had |base::SyncSocket
+ int /* request_id */,
+ media::AudioParameters /* params */,
+ base::SharedMemoryHandle /* memory */,
+ base::NativeSyncSocket::Descriptor /* socket */,
+ int /* length */)

Powered by Google App Engine
This is Rietveld 408576698