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

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

Issue 2487133003: Remove dead code related to media device enumerations and monitoring. (Closed)
Patch Set: rebase Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 26 matching lines...) Expand all
37 IPC_STRUCT_TRAITS_MEMBER(audio) 37 IPC_STRUCT_TRAITS_MEMBER(audio)
38 IPC_STRUCT_TRAITS_MEMBER(video) 38 IPC_STRUCT_TRAITS_MEMBER(video)
39 IPC_STRUCT_TRAITS_MEMBER(hotword_enabled) 39 IPC_STRUCT_TRAITS_MEMBER(hotword_enabled)
40 IPC_STRUCT_TRAITS_MEMBER(disable_local_echo) 40 IPC_STRUCT_TRAITS_MEMBER(disable_local_echo)
41 IPC_STRUCT_TRAITS_END() 41 IPC_STRUCT_TRAITS_END()
42 42
43 IPC_STRUCT_TRAITS_BEGIN(content::StreamDeviceInfo) 43 IPC_STRUCT_TRAITS_BEGIN(content::StreamDeviceInfo)
44 IPC_STRUCT_TRAITS_MEMBER(device.type) 44 IPC_STRUCT_TRAITS_MEMBER(device.type)
45 IPC_STRUCT_TRAITS_MEMBER(device.name) 45 IPC_STRUCT_TRAITS_MEMBER(device.name)
46 IPC_STRUCT_TRAITS_MEMBER(device.id) 46 IPC_STRUCT_TRAITS_MEMBER(device.id)
47 IPC_STRUCT_TRAITS_MEMBER(device.group_id)
48 IPC_STRUCT_TRAITS_MEMBER(device.video_facing) 47 IPC_STRUCT_TRAITS_MEMBER(device.video_facing)
49 IPC_STRUCT_TRAITS_MEMBER(device.matched_output_device_id) 48 IPC_STRUCT_TRAITS_MEMBER(device.matched_output_device_id)
50 IPC_STRUCT_TRAITS_MEMBER(device.input.sample_rate) 49 IPC_STRUCT_TRAITS_MEMBER(device.input.sample_rate)
51 IPC_STRUCT_TRAITS_MEMBER(device.input.channel_layout) 50 IPC_STRUCT_TRAITS_MEMBER(device.input.channel_layout)
52 IPC_STRUCT_TRAITS_MEMBER(device.input.frames_per_buffer) 51 IPC_STRUCT_TRAITS_MEMBER(device.input.frames_per_buffer)
53 IPC_STRUCT_TRAITS_MEMBER(device.input.effects) 52 IPC_STRUCT_TRAITS_MEMBER(device.input.effects)
54 IPC_STRUCT_TRAITS_MEMBER(device.input.mic_positions) 53 IPC_STRUCT_TRAITS_MEMBER(device.input.mic_positions)
55 IPC_STRUCT_TRAITS_MEMBER(device.matched_output.sample_rate) 54 IPC_STRUCT_TRAITS_MEMBER(device.matched_output.sample_rate)
56 IPC_STRUCT_TRAITS_MEMBER(device.matched_output.channel_layout) 55 IPC_STRUCT_TRAITS_MEMBER(device.matched_output.channel_layout)
57 IPC_STRUCT_TRAITS_MEMBER(device.matched_output.frames_per_buffer) 56 IPC_STRUCT_TRAITS_MEMBER(device.matched_output.frames_per_buffer)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // The browser has opened a device successfully. 89 // The browser has opened a device successfully.
91 IPC_MESSAGE_ROUTED3(MediaStreamMsg_DeviceOpened, 90 IPC_MESSAGE_ROUTED3(MediaStreamMsg_DeviceOpened,
92 int /* request id */, 91 int /* request id */,
93 std::string /* label */, 92 std::string /* label */,
94 content::StreamDeviceInfo /* the device */) 93 content::StreamDeviceInfo /* the device */)
95 94
96 // The browser has failed to open a device. 95 // The browser has failed to open a device.
97 IPC_MESSAGE_ROUTED1(MediaStreamMsg_DeviceOpenFailed, 96 IPC_MESSAGE_ROUTED1(MediaStreamMsg_DeviceOpenFailed,
98 int /* request id */) 97 int /* request id */)
99 98
100 // The browser has detected a change in the set of media devices.
101 IPC_MESSAGE_ROUTED0(MediaStreamMsg_DevicesChanged)
102
103 // Messages sent from the renderer to the browser. 99 // Messages sent from the renderer to the browser.
104 100
105 // Request a new media stream. 101 // Request a new media stream.
106 IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_GenerateStream, 102 IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_GenerateStream,
107 int /* render frame id */, 103 int /* render frame id */,
108 int /* request id */, 104 int /* request id */,
109 content::StreamControls /* controls */, 105 content::StreamControls /* controls */,
110 url::Origin /* security origin */, 106 url::Origin /* security origin */,
111 bool /* user_gesture */) 107 bool /* user_gesture */)
112 108
113 // Request to cancel the request for a new media stream. 109 // Request to cancel the request for a new media stream.
114 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_CancelGenerateStream, 110 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_CancelGenerateStream,
115 int /* render frame id */, 111 int /* render frame id */,
116 int /* request id */) 112 int /* request id */)
117 113
118 // Request to close a device that has been opened by GenerateStream. 114 // Request to close a device that has been opened by GenerateStream.
119 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_StopStreamDevice, 115 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_StopStreamDevice,
120 int /* render frame id */, 116 int /* render frame id */,
121 std::string /*device_id*/) 117 std::string /*device_id*/)
122 118
123 // Request to enumerate devices.
124 // Used by Pepper and WebRTC.
125 IPC_MESSAGE_CONTROL4(MediaStreamHostMsg_EnumerateDevices,
126 int /* render frame id */,
127 int /* request id */,
128 content::MediaStreamType /* type */,
129 url::Origin /* security origin */)
130
131 // Request to stop enumerating devices.
132 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_CancelEnumerateDevices,
133 int /* render frame id */,
134 int /* request id */)
135
136 // Request to open the device. 119 // Request to open the device.
137 IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_OpenDevice, 120 IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_OpenDevice,
138 int /* render frame id */, 121 int /* render frame id */,
139 int /* request id */, 122 int /* request id */,
140 std::string /* device_id */, 123 std::string /* device_id */,
141 content::MediaStreamType /* type */, 124 content::MediaStreamType /* type */,
142 url::Origin /* security origin */) 125 url::Origin /* security origin */)
143 126
144 // Request to close a device. 127 // Request to close a device.
145 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_CloseDevice, 128 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_CloseDevice,
146 int /* render frame id */, 129 int /* render frame id */,
147 std::string /*label*/) 130 std::string /*label*/)
148 131
149 // Subscribe to notifications about changes in the set of media devices.
150 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_SubscribeToDeviceChangeNotifications,
151 int /* render frame id */,
152 url::Origin /* security origin */)
153
154 // Cancel notifications about changes in the set of media devices.
155 IPC_MESSAGE_CONTROL1(MediaStreamHostMsg_CancelDeviceChangeNotifications,
156 int /* render frame id */)
157
158 // Tell the browser process if the video capture is secure (i.e., all 132 // Tell the browser process if the video capture is secure (i.e., all
159 // connected video sinks meet the requirement of output protection.). 133 // connected video sinks meet the requirement of output protection.).
160 // Note: the browser process only trusts the |is_sucure| value in this IPC 134 // Note: the browser process only trusts the |is_sucure| value in this IPC
161 // message if it's comimg from a trusted, whitelisted extension. Extensions run 135 // message if it's comimg from a trusted, whitelisted extension. Extensions run
162 // in separate render processes. So it shouldn't be possible, for example, for 136 // in separate render processes. So it shouldn't be possible, for example, for
163 // a user's visit to a malicious web page to compromise a render process running 137 // a user's visit to a malicious web page to compromise a render process running
164 // a trusted extension to make it report falsehood in this IPC message. 138 // a trusted extension to make it report falsehood in this IPC message.
165 IPC_MESSAGE_CONTROL3(MediaStreamHostMsg_SetCapturingLinkSecured, 139 IPC_MESSAGE_CONTROL3(MediaStreamHostMsg_SetCapturingLinkSecured,
166 int, /* session_id */ 140 int, /* session_id */
167 content::MediaStreamType, /* type */ 141 content::MediaStreamType, /* type */
168 bool /* is_secure */) 142 bool /* is_secure */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_unittest.cc ('k') | content/common/media/media_stream_options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698