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 <stdint.h> |
| 9 |
8 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
9 #include "media/cast/cast_sender.h" | 11 #include "media/cast/cast_sender.h" |
10 #include "media/cast/logging/logging_defines.h" | 12 #include "media/cast/logging/logging_defines.h" |
11 #include "media/cast/net/cast_transport_sender.h" | 13 #include "media/cast/net/cast_transport_sender.h" |
12 #include "media/cast/net/rtcp/rtcp_defines.h" | 14 #include "media/cast/net/rtcp/rtcp_defines.h" |
13 #include "net/base/ip_endpoint.h" | 15 #include "net/base/ip_endpoint.h" |
14 | 16 |
15 #undef IPC_MESSAGE_EXPORT | 17 #undef IPC_MESSAGE_EXPORT |
16 #define IPC_MESSAGE_EXPORT | 18 #define IPC_MESSAGE_EXPORT |
17 #define IPC_MESSAGE_START CastMsgStart | 19 #define IPC_MESSAGE_START CastMsgStart |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 IPC_STRUCT_TRAITS_MEMBER(cast_message) | 110 IPC_STRUCT_TRAITS_MEMBER(cast_message) |
109 IPC_STRUCT_TRAITS_MEMBER(target_delay) | 111 IPC_STRUCT_TRAITS_MEMBER(target_delay) |
110 IPC_STRUCT_TRAITS_MEMBER(rtcp_events) | 112 IPC_STRUCT_TRAITS_MEMBER(rtcp_events) |
111 IPC_STRUCT_TRAITS_MEMBER(rtp_receiver_statistics) | 113 IPC_STRUCT_TRAITS_MEMBER(rtp_receiver_statistics) |
112 IPC_STRUCT_TRAITS_END() | 114 IPC_STRUCT_TRAITS_END() |
113 | 115 |
114 | 116 |
115 // Cast messages sent from the browser to the renderer. | 117 // Cast messages sent from the browser to the renderer. |
116 | 118 |
117 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, | 119 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, |
118 int32 /* channel_id */, | 120 int32_t /* channel_id */, |
119 media::cast::Packet /* packet */) | 121 media::cast::Packet /* packet */) |
120 | 122 |
121 IPC_MESSAGE_CONTROL3(CastMsg_Rtt, | 123 IPC_MESSAGE_CONTROL3(CastMsg_Rtt, |
122 int32 /* channel_id */, | 124 int32_t /* channel_id */, |
123 uint32 /* ssrc */, | 125 uint32_t /* ssrc */, |
124 base::TimeDelta /* rtt */) | 126 base::TimeDelta /* rtt */) |
125 | 127 |
126 IPC_MESSAGE_CONTROL3(CastMsg_RtcpCastMessage, | 128 IPC_MESSAGE_CONTROL3(CastMsg_RtcpCastMessage, |
127 int32 /* channel_id */, | 129 int32_t /* channel_id */, |
128 uint32 /* ssrc */, | 130 uint32_t /* ssrc */, |
129 media::cast::RtcpCastMessage /* cast_message */) | 131 media::cast::RtcpCastMessage /* cast_message */) |
130 | 132 |
131 IPC_MESSAGE_CONTROL2( | 133 IPC_MESSAGE_CONTROL2(CastMsg_NotifyStatusChange, |
132 CastMsg_NotifyStatusChange, | 134 int32_t /* channel_id */, |
133 int32 /* channel_id */, | 135 media::cast::CastTransportStatus /* status */) |
134 media::cast::CastTransportStatus /* status */) | |
135 | 136 |
136 IPC_MESSAGE_CONTROL3(CastMsg_RawEvents, | 137 IPC_MESSAGE_CONTROL3(CastMsg_RawEvents, |
137 int32 /* channel_id */, | 138 int32_t /* channel_id */, |
138 std::vector<media::cast::PacketEvent> /* packet_events */, | 139 std::vector<media::cast::PacketEvent> /* packet_events */, |
139 std::vector<media::cast::FrameEvent> /* frame_events */) | 140 std::vector<media::cast::FrameEvent> /* frame_events */) |
140 | 141 |
141 // Cast messages sent from the renderer to the browser. | 142 // Cast messages sent from the renderer to the browser. |
142 | 143 |
143 IPC_MESSAGE_CONTROL2( | 144 IPC_MESSAGE_CONTROL2(CastHostMsg_InitializeAudio, |
144 CastHostMsg_InitializeAudio, | 145 int32_t /*channel_id*/, |
145 int32 /*channel_id*/, | 146 media::cast::CastTransportRtpConfig /*config*/) |
146 media::cast::CastTransportRtpConfig /*config*/) | |
147 | 147 |
148 IPC_MESSAGE_CONTROL2( | 148 IPC_MESSAGE_CONTROL2(CastHostMsg_InitializeVideo, |
149 CastHostMsg_InitializeVideo, | 149 int32_t /*channel_id*/, |
150 int32 /*channel_id*/, | 150 media::cast::CastTransportRtpConfig /*config*/) |
151 media::cast::CastTransportRtpConfig /*config*/) | |
152 | 151 |
153 IPC_MESSAGE_CONTROL3( | 152 IPC_MESSAGE_CONTROL3(CastHostMsg_InsertFrame, |
154 CastHostMsg_InsertFrame, | 153 int32_t /* channel_id */, |
155 int32 /* channel_id */, | 154 uint32_t /* ssrc */, |
156 uint32 /* ssrc */, | 155 media::cast::EncodedFrame /* audio/video frame */) |
157 media::cast::EncodedFrame /* audio/video frame */) | |
158 | 156 |
159 IPC_MESSAGE_CONTROL4( | 157 IPC_MESSAGE_CONTROL4(CastHostMsg_SendSenderReport, |
160 CastHostMsg_SendSenderReport, | 158 int32_t /* channel_id */, |
161 int32 /* channel_id */, | 159 uint32_t /* ssrc */, |
162 uint32 /* ssrc */, | 160 base::TimeTicks /* current_time */, |
163 base::TimeTicks /* current_time */, | 161 uint32_t /* current_time_as_rtp_timestamp */) |
164 uint32 /* current_time_as_rtp_timestamp */) | |
165 | 162 |
166 IPC_MESSAGE_CONTROL3( | 163 IPC_MESSAGE_CONTROL3(CastHostMsg_CancelSendingFrames, |
167 CastHostMsg_CancelSendingFrames, | 164 int32_t /* channel_id */, |
168 int32 /* channel_id */, | 165 uint32_t /* ssrc */, |
169 uint32 /* ssrc */, | 166 std::vector<uint32_t> /* frame_ids */) |
170 std::vector<uint32> /* frame_ids */) | |
171 | 167 |
172 IPC_MESSAGE_CONTROL3( | 168 IPC_MESSAGE_CONTROL3(CastHostMsg_ResendFrameForKickstart, |
173 CastHostMsg_ResendFrameForKickstart, | 169 int32_t /* channel_id */, |
174 int32 /* channel_id */, | 170 uint32_t /* ssrc */, |
175 uint32 /* ssrc */, | 171 uint32_t /* frame_id */) |
176 uint32 /* frame_id */) | |
177 | 172 |
178 IPC_MESSAGE_CONTROL2( | 173 IPC_MESSAGE_CONTROL2(CastHostMsg_AddValidSsrc, |
179 CastHostMsg_AddValidSsrc, | 174 int32_t /* channel id */, |
180 int32 /* channel id */, | 175 uint32_t /* ssrc */) |
181 uint32 /* ssrc */) | |
182 | 176 |
183 IPC_MESSAGE_CONTROL2( | 177 IPC_MESSAGE_CONTROL2(CastHostMsg_SendRtcpFromRtpReceiver, |
184 CastHostMsg_SendRtcpFromRtpReceiver, | 178 int32_t /* channel id */, |
185 int32 /* channel id */, | 179 media::cast::SendRtcpFromRtpReceiver_Params /* data */) |
186 media::cast::SendRtcpFromRtpReceiver_Params /* data */) | |
187 | 180 |
188 IPC_MESSAGE_CONTROL4( | 181 IPC_MESSAGE_CONTROL4(CastHostMsg_New, |
189 CastHostMsg_New, | 182 int32_t /* channel_id */, |
190 int32 /* channel_id */, | 183 net::IPEndPoint /* local_end_point */, |
191 net::IPEndPoint /* local_end_point */, | 184 net::IPEndPoint /* remote_end_point */, |
192 net::IPEndPoint /* remote_end_point */, | 185 base::DictionaryValue /* options */) |
193 base::DictionaryValue /* options */) | |
194 | 186 |
195 IPC_MESSAGE_CONTROL1( | 187 IPC_MESSAGE_CONTROL1(CastHostMsg_Delete, int32_t /* channel_id */) |
196 CastHostMsg_Delete, | |
197 int32 /* channel_id */) | |
OLD | NEW |