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

Side by Side Diff: content/common/media/media_stream_messages.h

Issue 8480028: support video device enumeration from renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: code review Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for the media streaming. 5 // IPC messages for the media streaming.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/media/media_stream_options.h" 10 #include "content/common/media/media_stream_options.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Report of a failure of a video device. 44 // Report of a failure of a video device.
45 IPC_MESSAGE_ROUTED2(MediaStreamHostMsg_VideoDeviceFailed, 45 IPC_MESSAGE_ROUTED2(MediaStreamHostMsg_VideoDeviceFailed,
46 std::string /* label */, 46 std::string /* label */,
47 int /* index */) 47 int /* index */)
48 48
49 // Report of a failure of an audio device. 49 // Report of a failure of an audio device.
50 IPC_MESSAGE_ROUTED2(MediaStreamHostMsg_AudioDeviceFailed, 50 IPC_MESSAGE_ROUTED2(MediaStreamHostMsg_AudioDeviceFailed,
51 std::string /* label */, 51 std::string /* label */,
52 int /* index */) 52 int /* index */)
53 53
54 // The browser has enumerated devices successfully.
55 IPC_MESSAGE_ROUTED2(MediaStreamMsg_DevicesEnumerated,
56 int /* request id */,
57 media_stream::StreamDeviceInfoArray /* device_list */)
58
59 // The browser has failed to enumerate devices.
60 IPC_MESSAGE_ROUTED1(MediaStreamMsg_DevicesEnumerationFailed,
61 int /* request id */)
62
63 // TODO(wjia): should DeviceOpen* messages be merged with
64 // StreamGenerat* ones?
65 // The browser has opened a device successfully.
66 IPC_MESSAGE_ROUTED3(MediaStreamMsg_DeviceOpened,
67 int /* request id */,
68 std::string /* label */,
69 media_stream::StreamDeviceInfo /* the device */)
70
71 // The browser has failed to open a device.
72 IPC_MESSAGE_ROUTED1(MediaStreamMsg_DeviceOpenFailed,
73 int /* request id */)
74
54 // Messages sent from the renderer to the browser. 75 // Messages sent from the renderer to the browser.
55 76
56 // Request a new media stream. 77 // Request a new media stream.
57 IPC_MESSAGE_CONTROL4(MediaStreamHostMsg_GenerateStream, 78 IPC_MESSAGE_CONTROL4(MediaStreamHostMsg_GenerateStream,
58 int /* render view id */, 79 int /* render view id */,
59 int /* request id */, 80 int /* request id */,
60 media_stream::StreamOptions /* options */, 81 media_stream::StreamOptions /* options */,
61 std::string /* security origin */) 82 std::string /* security origin */)
62 83
63 // Request to stop streaming from the media stream. 84 // Request to stop streaming from the media stream.
64 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_StopGeneratedStream, 85 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_StopGeneratedStream,
65 int /* render view id */, 86 int /* render view id */,
66 std::string /* label */) 87 std::string /* label */)
88
89 // Request to enumerate devices.
90 IPC_MESSAGE_CONTROL4(MediaStreamHostMsg_EnumerateDevices,
91 int /* render view id */,
92 int /* request id */,
93 media_stream::MediaStreamType /* type */,
94 std::string /* security origin */)
95
96 // Request to open the device.
97 IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_OpenDevice,
98 int /* render view id */,
99 int /* request id */,
100 std::string /* device_id */,
101 media_stream::MediaStreamType /* type */,
102 std::string /* security origin */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698