OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 Cast transport API. | 5 // IPC messages for the Cast transport API. |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 #include "media/cast/common/rtp_time.h" | 10 #include "media/cast/common/rtp_time.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 IPC_STRUCT_TRAITS_MEMBER(size) | 90 IPC_STRUCT_TRAITS_MEMBER(size) |
91 IPC_STRUCT_TRAITS_MEMBER(timestamp) | 91 IPC_STRUCT_TRAITS_MEMBER(timestamp) |
92 IPC_STRUCT_TRAITS_MEMBER(type) | 92 IPC_STRUCT_TRAITS_MEMBER(type) |
93 IPC_STRUCT_TRAITS_MEMBER(media_type) | 93 IPC_STRUCT_TRAITS_MEMBER(media_type) |
94 IPC_STRUCT_TRAITS_MEMBER(delay_delta) | 94 IPC_STRUCT_TRAITS_MEMBER(delay_delta) |
95 IPC_STRUCT_TRAITS_MEMBER(key_frame) | 95 IPC_STRUCT_TRAITS_MEMBER(key_frame) |
96 IPC_STRUCT_TRAITS_MEMBER(target_bitrate) | 96 IPC_STRUCT_TRAITS_MEMBER(target_bitrate) |
97 IPC_STRUCT_TRAITS_END() | 97 IPC_STRUCT_TRAITS_END() |
98 | 98 |
99 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpCastMessage) | 99 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpCastMessage) |
100 IPC_STRUCT_TRAITS_MEMBER(media_ssrc) | 100 IPC_STRUCT_TRAITS_MEMBER(remote_ssrc) |
101 IPC_STRUCT_TRAITS_MEMBER(ack_frame_id) | 101 IPC_STRUCT_TRAITS_MEMBER(ack_frame_id) |
102 IPC_STRUCT_TRAITS_MEMBER(target_delay_ms) | 102 IPC_STRUCT_TRAITS_MEMBER(target_delay_ms) |
103 IPC_STRUCT_TRAITS_MEMBER(missing_frames_and_packets) | 103 IPC_STRUCT_TRAITS_MEMBER(missing_frames_and_packets) |
104 IPC_STRUCT_TRAITS_END() | 104 IPC_STRUCT_TRAITS_END() |
105 | 105 |
| 106 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpPliMessage) |
| 107 IPC_STRUCT_TRAITS_MEMBER(remote_ssrc) |
| 108 IPC_STRUCT_TRAITS_END() |
| 109 |
106 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpEvent) | 110 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpEvent) |
107 IPC_STRUCT_TRAITS_MEMBER(type) | 111 IPC_STRUCT_TRAITS_MEMBER(type) |
108 IPC_STRUCT_TRAITS_MEMBER(timestamp) | 112 IPC_STRUCT_TRAITS_MEMBER(timestamp) |
109 IPC_STRUCT_TRAITS_MEMBER(delay_delta) | 113 IPC_STRUCT_TRAITS_MEMBER(delay_delta) |
110 IPC_STRUCT_TRAITS_MEMBER(packet_id) | 114 IPC_STRUCT_TRAITS_MEMBER(packet_id) |
111 IPC_STRUCT_TRAITS_END() | 115 IPC_STRUCT_TRAITS_END() |
112 | 116 |
113 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpReportBlock) | 117 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpReportBlock) |
114 IPC_STRUCT_TRAITS_MEMBER(remote_ssrc) | 118 IPC_STRUCT_TRAITS_MEMBER(remote_ssrc) |
115 IPC_STRUCT_TRAITS_MEMBER(media_ssrc) | 119 IPC_STRUCT_TRAITS_MEMBER(media_ssrc) |
(...skipping 12 matching lines...) Expand all Loading... |
128 IPC_STRUCT_TRAITS_END() | 132 IPC_STRUCT_TRAITS_END() |
129 | 133 |
130 // Cast messages sent from the browser to the renderer. | 134 // Cast messages sent from the browser to the renderer. |
131 | 135 |
132 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, | 136 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, |
133 int32_t /* channel_id */, | 137 int32_t /* channel_id */, |
134 media::cast::Packet /* packet */) | 138 media::cast::Packet /* packet */) |
135 | 139 |
136 IPC_MESSAGE_CONTROL3(CastMsg_Rtt, | 140 IPC_MESSAGE_CONTROL3(CastMsg_Rtt, |
137 int32_t /* channel_id */, | 141 int32_t /* channel_id */, |
138 uint32_t /* ssrc */, | 142 uint32_t /* rtp sender ssrc */, |
139 base::TimeDelta /* rtt */) | 143 base::TimeDelta /* rtt */) |
140 | 144 |
141 IPC_MESSAGE_CONTROL3(CastMsg_RtcpCastMessage, | 145 IPC_MESSAGE_CONTROL3(CastMsg_RtcpCastMessage, |
142 int32_t /* channel_id */, | 146 int32_t /* channel_id */, |
143 uint32_t /* ssrc */, | 147 uint32_t /* rtp sender ssrc */, |
144 media::cast::RtcpCastMessage /* cast_message */) | 148 media::cast::RtcpCastMessage /* cast_message */) |
145 | 149 |
| 150 // This message indicates receiving picture loss indicator from rtp receiver. |
| 151 IPC_MESSAGE_CONTROL2(CastMsg_Pli, |
| 152 int32_t /* channel_id */, |
| 153 uint32_t /* rtp sender ssrc */) |
| 154 |
146 IPC_MESSAGE_CONTROL2(CastMsg_NotifyStatusChange, | 155 IPC_MESSAGE_CONTROL2(CastMsg_NotifyStatusChange, |
147 int32_t /* channel_id */, | 156 int32_t /* channel_id */, |
148 media::cast::CastTransportStatus /* status */) | 157 media::cast::CastTransportStatus /* status */) |
149 | 158 |
150 IPC_MESSAGE_CONTROL3(CastMsg_RawEvents, | 159 IPC_MESSAGE_CONTROL3(CastMsg_RawEvents, |
151 int32_t /* channel_id */, | 160 int32_t /* channel_id */, |
152 std::vector<media::cast::PacketEvent> /* packet_events */, | 161 std::vector<media::cast::PacketEvent> /* packet_events */, |
153 std::vector<media::cast::FrameEvent> /* frame_events */) | 162 std::vector<media::cast::FrameEvent> /* frame_events */) |
154 | 163 |
155 // Cast messages sent from the renderer to the browser. | 164 // Cast messages sent from the renderer to the browser. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 IPC_MESSAGE_CONTROL3(CastHostMsg_InitializeRtpReceiverRtcpBuilder, | 214 IPC_MESSAGE_CONTROL3(CastHostMsg_InitializeRtpReceiverRtcpBuilder, |
206 int32_t /* channel id */, | 215 int32_t /* channel id */, |
207 uint32_t /* rtp_receiver_ssrc */, | 216 uint32_t /* rtp_receiver_ssrc */, |
208 media::cast::RtcpTimeData /* time_data */) | 217 media::cast::RtcpTimeData /* time_data */) |
209 | 218 |
210 IPC_MESSAGE_CONTROL3(CastHostMsg_AddCastFeedback, | 219 IPC_MESSAGE_CONTROL3(CastHostMsg_AddCastFeedback, |
211 int32_t /* channel id */, | 220 int32_t /* channel id */, |
212 media::cast::RtcpCastMessage /* cast message */, | 221 media::cast::RtcpCastMessage /* cast message */, |
213 base::TimeDelta /* target delay */) | 222 base::TimeDelta /* target delay */) |
214 | 223 |
| 224 IPC_MESSAGE_CONTROL2(CastHostMsg_AddPli, |
| 225 int32_t /* channel id */, |
| 226 media::cast::RtcpPliMessage /* pli message */) |
| 227 |
215 IPC_MESSAGE_CONTROL2( | 228 IPC_MESSAGE_CONTROL2( |
216 CastHostMsg_AddRtcpEvents, | 229 CastHostMsg_AddRtcpEvents, |
217 int32_t /* channel id */, | 230 int32_t /* channel id */, |
218 media::cast::ReceiverRtcpEventSubscriber::RtcpEvents /* rtcp_events */) | 231 media::cast::ReceiverRtcpEventSubscriber::RtcpEvents /* rtcp_events */) |
219 | 232 |
220 IPC_MESSAGE_CONTROL2( | 233 IPC_MESSAGE_CONTROL2( |
221 CastHostMsg_AddRtpReceiverReport, | 234 CastHostMsg_AddRtpReceiverReport, |
222 int32_t /* channel id */, | 235 int32_t /* channel id */, |
223 media::cast::RtcpReportBlock /* rtp_receiver_report_block */) | 236 media::cast::RtcpReportBlock /* rtp_receiver_report_block */) |
224 | 237 |
225 IPC_MESSAGE_CONTROL1(CastHostMsg_SendRtcpFromRtpReceiver, | 238 IPC_MESSAGE_CONTROL1(CastHostMsg_SendRtcpFromRtpReceiver, |
226 int32_t /* channel id */) | 239 int32_t /* channel id */) |
OLD | NEW |