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 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
9 #include "media/cast/cast_sender.h" | 9 #include "media/cast/cast_sender.h" |
10 #include "media/cast/logging/logging_defines.h" | 10 #include "media/cast/logging/logging_defines.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 IPC_STRUCT_TRAITS_MEMBER(target_bitrate) | 74 IPC_STRUCT_TRAITS_MEMBER(target_bitrate) |
75 IPC_STRUCT_TRAITS_END() | 75 IPC_STRUCT_TRAITS_END() |
76 | 76 |
77 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpCastMessage) | 77 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpCastMessage) |
78 IPC_STRUCT_TRAITS_MEMBER(media_ssrc) | 78 IPC_STRUCT_TRAITS_MEMBER(media_ssrc) |
79 IPC_STRUCT_TRAITS_MEMBER(ack_frame_id) | 79 IPC_STRUCT_TRAITS_MEMBER(ack_frame_id) |
80 IPC_STRUCT_TRAITS_MEMBER(target_delay_ms) | 80 IPC_STRUCT_TRAITS_MEMBER(target_delay_ms) |
81 IPC_STRUCT_TRAITS_MEMBER(missing_frames_and_packets) | 81 IPC_STRUCT_TRAITS_MEMBER(missing_frames_and_packets) |
82 IPC_STRUCT_TRAITS_END() | 82 IPC_STRUCT_TRAITS_END() |
83 | 83 |
| 84 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtpReceiverStatistics) |
| 85 IPC_STRUCT_TRAITS_MEMBER(fraction_lost) |
| 86 IPC_STRUCT_TRAITS_MEMBER(cumulative_lost) |
| 87 IPC_STRUCT_TRAITS_MEMBER(extended_high_sequence_number) |
| 88 IPC_STRUCT_TRAITS_MEMBER(jitter) |
| 89 IPC_STRUCT_TRAITS_END() |
| 90 |
| 91 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpEvent) |
| 92 IPC_STRUCT_TRAITS_MEMBER(type) |
| 93 IPC_STRUCT_TRAITS_MEMBER(timestamp) |
| 94 IPC_STRUCT_TRAITS_MEMBER(delay_delta) |
| 95 IPC_STRUCT_TRAITS_MEMBER(packet_id) |
| 96 IPC_STRUCT_TRAITS_END() |
| 97 |
| 98 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpTimeData) |
| 99 IPC_STRUCT_TRAITS_MEMBER(ntp_seconds) |
| 100 IPC_STRUCT_TRAITS_MEMBER(ntp_fraction) |
| 101 IPC_STRUCT_TRAITS_MEMBER(timestamp) |
| 102 IPC_STRUCT_TRAITS_END() |
| 103 |
| 104 IPC_STRUCT_TRAITS_BEGIN(media::cast::SendRtcpFromRtpReceiver_Params) |
| 105 IPC_STRUCT_TRAITS_MEMBER(ssrc) |
| 106 IPC_STRUCT_TRAITS_MEMBER(sender_ssrc) |
| 107 IPC_STRUCT_TRAITS_MEMBER(time_data) |
| 108 IPC_STRUCT_TRAITS_MEMBER(cast_message) |
| 109 IPC_STRUCT_TRAITS_MEMBER(target_delay) |
| 110 IPC_STRUCT_TRAITS_MEMBER(rtcp_events) |
| 111 IPC_STRUCT_TRAITS_MEMBER(rtp_receiver_statistics) |
| 112 IPC_STRUCT_TRAITS_END() |
| 113 |
| 114 |
84 // Cast messages sent from the browser to the renderer. | 115 // Cast messages sent from the browser to the renderer. |
85 | 116 |
| 117 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, |
| 118 int32 /* channel_id */, |
| 119 media::cast::Packet /* packet */) |
| 120 |
86 IPC_MESSAGE_CONTROL3(CastMsg_Rtt, | 121 IPC_MESSAGE_CONTROL3(CastMsg_Rtt, |
87 int32 /* channel_id */, | 122 int32 /* channel_id */, |
88 uint32 /* ssrc */, | 123 uint32 /* ssrc */, |
89 base::TimeDelta /* rtt */) | 124 base::TimeDelta /* rtt */) |
90 | 125 |
91 IPC_MESSAGE_CONTROL3(CastMsg_RtcpCastMessage, | 126 IPC_MESSAGE_CONTROL3(CastMsg_RtcpCastMessage, |
92 int32 /* channel_id */, | 127 int32 /* channel_id */, |
93 uint32 /* ssrc */, | 128 uint32 /* ssrc */, |
94 media::cast::RtcpCastMessage /* cast_message */) | 129 media::cast::RtcpCastMessage /* cast_message */) |
95 | 130 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 int32 /* channel_id */, | 168 int32 /* channel_id */, |
134 uint32 /* ssrc */, | 169 uint32 /* ssrc */, |
135 std::vector<uint32> /* frame_ids */) | 170 std::vector<uint32> /* frame_ids */) |
136 | 171 |
137 IPC_MESSAGE_CONTROL3( | 172 IPC_MESSAGE_CONTROL3( |
138 CastHostMsg_ResendFrameForKickstart, | 173 CastHostMsg_ResendFrameForKickstart, |
139 int32 /* channel_id */, | 174 int32 /* channel_id */, |
140 uint32 /* ssrc */, | 175 uint32 /* ssrc */, |
141 uint32 /* frame_id */) | 176 uint32 /* frame_id */) |
142 | 177 |
143 IPC_MESSAGE_CONTROL3( | 178 IPC_MESSAGE_CONTROL2( |
| 179 CastHostMsg_AddValidSsrc, |
| 180 int32 /* channel id */, |
| 181 uint32 /* ssrc */); |
| 182 |
| 183 IPC_MESSAGE_CONTROL2( |
| 184 CastHostMsg_SendRtcpFromRtpReceiver, |
| 185 int32 /* channel id */, |
| 186 media::cast::SendRtcpFromRtpReceiver_Params /* data */); |
| 187 |
| 188 IPC_MESSAGE_CONTROL4( |
144 CastHostMsg_New, | 189 CastHostMsg_New, |
145 int32 /* channel_id */, | 190 int32 /* channel_id */, |
| 191 net::IPEndPoint /* local_end_point */, |
146 net::IPEndPoint /* remote_end_point */, | 192 net::IPEndPoint /* remote_end_point */, |
147 base::DictionaryValue /* options */) | 193 base::DictionaryValue /* options */) |
148 | 194 |
149 IPC_MESSAGE_CONTROL1( | 195 IPC_MESSAGE_CONTROL1( |
150 CastHostMsg_Delete, | 196 CastHostMsg_Delete, |
151 int32 /* channel_id */) | 197 int32 /* channel_id */) |
OLD | NEW |