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 10 matching lines...) Expand all Loading... |
21 media::cast::transport::kAudioCodecLast) | 21 media::cast::transport::kAudioCodecLast) |
22 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::VideoCodec, | 22 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::VideoCodec, |
23 media::cast::transport::kVideoCodecLast) | 23 media::cast::transport::kVideoCodecLast) |
24 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::CastTransportStatus, | 24 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::CastTransportStatus, |
25 media::cast::transport::CAST_TRANSPORT_STATUS_LAST) | 25 media::cast::transport::CAST_TRANSPORT_STATUS_LAST) |
26 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::CastLoggingEvent, | 26 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::CastLoggingEvent, |
27 media::cast::kNumOfLoggingEvents) | 27 media::cast::kNumOfLoggingEvents) |
28 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::EventMediaType, | 28 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::EventMediaType, |
29 media::cast::EVENT_MEDIA_TYPE_LAST) | 29 media::cast::EVENT_MEDIA_TYPE_LAST) |
30 | 30 |
31 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedAudioFrame) | 31 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedFrame) |
32 IPC_STRUCT_TRAITS_MEMBER(codec) | |
33 IPC_STRUCT_TRAITS_MEMBER(frame_id) | 32 IPC_STRUCT_TRAITS_MEMBER(frame_id) |
| 33 IPC_STRUCT_TRAITS_MEMBER(base_frame_id) |
34 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) | 34 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) |
| 35 IPC_STRUCT_TRAITS_MEMBER(reference_time) |
35 IPC_STRUCT_TRAITS_MEMBER(data) | 36 IPC_STRUCT_TRAITS_MEMBER(data) |
36 IPC_STRUCT_TRAITS_END() | 37 IPC_STRUCT_TRAITS_END() |
37 | 38 |
38 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedVideoFrame) | |
39 IPC_STRUCT_TRAITS_MEMBER(codec) | |
40 IPC_STRUCT_TRAITS_MEMBER(key_frame) | |
41 IPC_STRUCT_TRAITS_MEMBER(frame_id) | |
42 IPC_STRUCT_TRAITS_MEMBER(last_referenced_frame_id) | |
43 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) | |
44 IPC_STRUCT_TRAITS_MEMBER(data) | |
45 IPC_STRUCT_TRAITS_END() | |
46 | |
47 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpSenderInfo) | 39 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpSenderInfo) |
48 IPC_STRUCT_TRAITS_MEMBER(ntp_seconds) | 40 IPC_STRUCT_TRAITS_MEMBER(ntp_seconds) |
49 IPC_STRUCT_TRAITS_MEMBER(ntp_fraction) | 41 IPC_STRUCT_TRAITS_MEMBER(ntp_fraction) |
50 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) | 42 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) |
51 IPC_STRUCT_TRAITS_MEMBER(send_packet_count) | 43 IPC_STRUCT_TRAITS_MEMBER(send_packet_count) |
52 IPC_STRUCT_TRAITS_MEMBER(send_octet_count) | 44 IPC_STRUCT_TRAITS_MEMBER(send_octet_count) |
53 IPC_STRUCT_TRAITS_END() | 45 IPC_STRUCT_TRAITS_END() |
54 | 46 |
55 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpDlrrReportBlock) | 47 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpDlrrReportBlock) |
56 IPC_STRUCT_TRAITS_MEMBER(last_rr) | 48 IPC_STRUCT_TRAITS_MEMBER(last_rr) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 IPC_MESSAGE_CONTROL2( | 119 IPC_MESSAGE_CONTROL2( |
128 CastHostMsg_InitializeAudio, | 120 CastHostMsg_InitializeAudio, |
129 int32 /*channel_id*/, | 121 int32 /*channel_id*/, |
130 media::cast::transport::CastTransportAudioConfig /*config*/) | 122 media::cast::transport::CastTransportAudioConfig /*config*/) |
131 | 123 |
132 IPC_MESSAGE_CONTROL2( | 124 IPC_MESSAGE_CONTROL2( |
133 CastHostMsg_InitializeVideo, | 125 CastHostMsg_InitializeVideo, |
134 int32 /*channel_id*/, | 126 int32 /*channel_id*/, |
135 media::cast::transport::CastTransportVideoConfig /*config*/) | 127 media::cast::transport::CastTransportVideoConfig /*config*/) |
136 | 128 |
137 IPC_MESSAGE_CONTROL3( | 129 IPC_MESSAGE_CONTROL2( |
138 CastHostMsg_InsertCodedAudioFrame, | 130 CastHostMsg_InsertCodedAudioFrame, |
139 int32 /* channel_id */, | 131 int32 /* channel_id */, |
140 media::cast::transport::EncodedAudioFrame /* audio_frame */, | 132 media::cast::transport::EncodedFrame /* audio_frame */) |
141 base::TimeTicks /* recorded_time */) | |
142 | 133 |
143 IPC_MESSAGE_CONTROL3( | 134 IPC_MESSAGE_CONTROL2( |
144 CastHostMsg_InsertCodedVideoFrame, | 135 CastHostMsg_InsertCodedVideoFrame, |
145 int32 /* channel_id */, | 136 int32 /* channel_id */, |
146 media::cast::transport::EncodedVideoFrame /* video_frame */, | 137 media::cast::transport::EncodedFrame /* video_frame */) |
147 base::TimeTicks /* recorded_time */) | |
148 | 138 |
149 IPC_MESSAGE_CONTROL4( | 139 IPC_MESSAGE_CONTROL4( |
150 CastHostMsg_SendRtcpFromRtpSender, | 140 CastHostMsg_SendRtcpFromRtpSender, |
151 int32 /* channel_id */, | 141 int32 /* channel_id */, |
152 media::cast::transport::SendRtcpFromRtpSenderData /* flags, ssrc, name */, | 142 media::cast::transport::SendRtcpFromRtpSenderData /* flags, ssrc, name */, |
153 media::cast::transport::RtcpSenderInfo /* sender_info */, | 143 media::cast::transport::RtcpSenderInfo /* sender_info */, |
154 media::cast::transport::RtcpDlrrReportBlock /* dlrr */) | 144 media::cast::transport::RtcpDlrrReportBlock /* dlrr */) |
155 | 145 |
156 IPC_MESSAGE_CONTROL3( | 146 IPC_MESSAGE_CONTROL3( |
157 CastHostMsg_ResendPackets, | 147 CastHostMsg_ResendPackets, |
158 int32 /* channel_id */, | 148 int32 /* channel_id */, |
159 bool /* is_audio */, | 149 bool /* is_audio */, |
160 media::cast::MissingFramesAndPacketsMap /* missing_packets */) | 150 media::cast::MissingFramesAndPacketsMap /* missing_packets */) |
161 | 151 |
162 IPC_MESSAGE_CONTROL2( | 152 IPC_MESSAGE_CONTROL2( |
163 CastHostMsg_New, | 153 CastHostMsg_New, |
164 int32 /* channel_id */, | 154 int32 /* channel_id */, |
165 net::IPEndPoint /*remote_end_point*/); | 155 net::IPEndPoint /*remote_end_point*/); |
166 | 156 |
167 IPC_MESSAGE_CONTROL1( | 157 IPC_MESSAGE_CONTROL1( |
168 CastHostMsg_Delete, | 158 CastHostMsg_Delete, |
169 int32 /* channel_id */); | 159 int32 /* channel_id */); |
OLD | NEW |