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

Unified Diff: content/common/media/media_stream_messages.h

Issue 7184010: MediaStreamDispatcher (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 6 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
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/media_stream_messages.h
===================================================================
--- content/common/media/media_stream_messages.h (revision 0)
+++ content/common/media/media_stream_messages.h (revision 0)
@@ -0,0 +1,66 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// IPC messages for the media streaming.
+// Multiply-included message file, hence no include guard.
+
+#include <string>
+
+#include "content/common/media/media_stream_options.h"
+#include "ipc/ipc_message_macros.h"
+
+#define IPC_MESSAGE_START MediaStreamMsgStart
+
+IPC_ENUM_TRAITS(media_stream::MediaStreamType)
+IPC_ENUM_TRAITS(media_stream::StreamOptions::VideoOption)
+
+IPC_STRUCT_TRAITS_BEGIN(media_stream::StreamOptions)
+ IPC_STRUCT_TRAITS_MEMBER(audio)
+ IPC_STRUCT_TRAITS_MEMBER(video_option)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(media_stream::StreamDeviceInfo)
+ IPC_STRUCT_TRAITS_MEMBER(stream_type)
+ IPC_STRUCT_TRAITS_MEMBER(name)
+ IPC_STRUCT_TRAITS_MEMBER(device_id)
+ IPC_STRUCT_TRAITS_MEMBER(in_use)
+ IPC_STRUCT_TRAITS_MEMBER(session_id)
+IPC_STRUCT_TRAITS_END()
+
+// Message sent from the browser to the renderer
+
+// The browser has generated a stream successfully.
+IPC_MESSAGE_ROUTED4(MediaStreamMsg_StreamGenerated,
+ int /* request id */,
+ std::string /* label */,
+ media_stream::StreamDeviceInfoArray /* audio_device_list */,
+ media_stream::StreamDeviceInfoArray /* video_device_list */)
+
+// The browser has failed to generate a stream.
+IPC_MESSAGE_ROUTED1(MediaStreamMsg_StreamGenerationFailed,
+ int /* request id */)
+
+// Report of a failure of a video device.
+IPC_MESSAGE_ROUTED2(MediaStreamHostMsg_VideoDeviceFailed,
+ std::string /* label */,
+ int /* index */)
+
+// Report of a failure of an audio device.
+IPC_MESSAGE_ROUTED2(MediaStreamHostMsg_AudioDeviceFailed,
+ std::string /* label */,
+ int /* index */)
+
+// Messages sent from the renderer to the browser.
+
+// Request a new media stream.
+IPC_MESSAGE_CONTROL4(MediaStreamHostMsg_GenerateStream,
+ int /* render view id */,
+ int /* request id */,
+ media_stream::StreamOptions /* options */,
+ std::string /* security origin */)
+
+// Request to stop streaming from the media stream.
+IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_StopGeneratedStream,
+ int /* render view id */,
+ std::string /* label */)
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698