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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedVideoFrame) | 38 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedVideoFrame) |
39 IPC_STRUCT_TRAITS_MEMBER(codec) | 39 IPC_STRUCT_TRAITS_MEMBER(codec) |
40 IPC_STRUCT_TRAITS_MEMBER(key_frame) | 40 IPC_STRUCT_TRAITS_MEMBER(key_frame) |
41 IPC_STRUCT_TRAITS_MEMBER(frame_id) | 41 IPC_STRUCT_TRAITS_MEMBER(frame_id) |
42 IPC_STRUCT_TRAITS_MEMBER(last_referenced_frame_id) | 42 IPC_STRUCT_TRAITS_MEMBER(last_referenced_frame_id) |
43 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) | 43 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) |
44 IPC_STRUCT_TRAITS_MEMBER(data) | 44 IPC_STRUCT_TRAITS_MEMBER(data) |
45 IPC_STRUCT_TRAITS_END() | 45 IPC_STRUCT_TRAITS_END() |
46 | 46 |
47 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpSenderInfo) | |
48 IPC_STRUCT_TRAITS_MEMBER(ntp_seconds) | |
49 IPC_STRUCT_TRAITS_MEMBER(ntp_fraction) | |
50 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) | |
51 IPC_STRUCT_TRAITS_MEMBER(send_packet_count) | |
52 IPC_STRUCT_TRAITS_MEMBER(send_octet_count) | |
53 IPC_STRUCT_TRAITS_END() | |
54 | |
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) |
57 IPC_STRUCT_TRAITS_MEMBER(delay_since_last_rr) | 49 IPC_STRUCT_TRAITS_MEMBER(delay_since_last_rr) |
58 IPC_STRUCT_TRAITS_END() | 50 IPC_STRUCT_TRAITS_END() |
59 | 51 |
60 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtpConfig) | 52 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtpConfig) |
61 IPC_STRUCT_TRAITS_MEMBER(ssrc) | 53 IPC_STRUCT_TRAITS_MEMBER(ssrc) |
62 IPC_STRUCT_TRAITS_MEMBER(max_delay_ms) | 54 IPC_STRUCT_TRAITS_MEMBER(max_delay_ms) |
63 IPC_STRUCT_TRAITS_MEMBER(payload_type) | 55 IPC_STRUCT_TRAITS_MEMBER(payload_type) |
64 IPC_STRUCT_TRAITS_MEMBER(aes_key) | 56 IPC_STRUCT_TRAITS_MEMBER(aes_key) |
(...skipping 14 matching lines...) Expand all Loading... |
79 | 71 |
80 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::CastTransportVideoConfig) | 72 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::CastTransportVideoConfig) |
81 IPC_STRUCT_TRAITS_MEMBER(rtp) | 73 IPC_STRUCT_TRAITS_MEMBER(rtp) |
82 IPC_STRUCT_TRAITS_MEMBER(codec) | 74 IPC_STRUCT_TRAITS_MEMBER(codec) |
83 IPC_STRUCT_TRAITS_END() | 75 IPC_STRUCT_TRAITS_END() |
84 | 76 |
85 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::SendRtcpFromRtpSenderData) | 77 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::SendRtcpFromRtpSenderData) |
86 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags) | 78 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags) |
87 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc) | 79 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc) |
88 IPC_STRUCT_TRAITS_MEMBER(c_name) | 80 IPC_STRUCT_TRAITS_MEMBER(c_name) |
| 81 IPC_STRUCT_TRAITS_MEMBER(ntp_seconds) |
| 82 IPC_STRUCT_TRAITS_MEMBER(ntp_fraction) |
| 83 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) |
89 IPC_STRUCT_TRAITS_END() | 84 IPC_STRUCT_TRAITS_END() |
90 | 85 |
91 IPC_STRUCT_TRAITS_BEGIN(media::cast::PacketEvent) | 86 IPC_STRUCT_TRAITS_BEGIN(media::cast::PacketEvent) |
92 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) | 87 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) |
93 IPC_STRUCT_TRAITS_MEMBER(frame_id) | 88 IPC_STRUCT_TRAITS_MEMBER(frame_id) |
94 IPC_STRUCT_TRAITS_MEMBER(max_packet_id) | 89 IPC_STRUCT_TRAITS_MEMBER(max_packet_id) |
95 IPC_STRUCT_TRAITS_MEMBER(packet_id) | 90 IPC_STRUCT_TRAITS_MEMBER(packet_id) |
96 IPC_STRUCT_TRAITS_MEMBER(size) | 91 IPC_STRUCT_TRAITS_MEMBER(size) |
97 IPC_STRUCT_TRAITS_MEMBER(timestamp) | 92 IPC_STRUCT_TRAITS_MEMBER(timestamp) |
98 IPC_STRUCT_TRAITS_MEMBER(type) | 93 IPC_STRUCT_TRAITS_MEMBER(type) |
99 IPC_STRUCT_TRAITS_MEMBER(media_type) | 94 IPC_STRUCT_TRAITS_MEMBER(media_type) |
100 IPC_STRUCT_TRAITS_END() | 95 IPC_STRUCT_TRAITS_END() |
101 | 96 |
102 // Cast messages sent from the browser to the renderer. | 97 // Cast messages sent from the browser to the renderer. |
103 | 98 |
104 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, | 99 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, |
105 int32 /* channel_id */, | 100 int32 /* channel_id */, |
106 media::cast::Packet /* packet */); | 101 media::cast::Packet /* packet */); |
107 | 102 |
108 IPC_MESSAGE_CONTROL2( | 103 IPC_MESSAGE_CONTROL2( |
109 CastMsg_NotifyStatusChange, | 104 CastMsg_NotifyStatusChange, |
110 int32 /* channel_id */, | 105 int32 /* channel_id */, |
111 media::cast::transport::CastTransportStatus /* status */); | 106 media::cast::transport::CastTransportStatus /* status */); |
112 | 107 |
113 IPC_MESSAGE_CONTROL5( | |
114 CastMsg_RtpStatistics, | |
115 int32 /* channel_id */, | |
116 bool /* audio */, | |
117 media::cast::transport::RtcpSenderInfo /* sender_info */, | |
118 base::TimeTicks /* time_sent */, | |
119 uint32 /* rtp_timestamp */); | |
120 | |
121 IPC_MESSAGE_CONTROL2(CastMsg_RawEvents, | 108 IPC_MESSAGE_CONTROL2(CastMsg_RawEvents, |
122 int32 /* channel_id */, | 109 int32 /* channel_id */, |
123 std::vector<media::cast::PacketEvent> /* packet_events */); | 110 std::vector<media::cast::PacketEvent> /* packet_events */); |
124 | 111 |
125 // Cast messages sent from the renderer to the browser. | 112 // Cast messages sent from the renderer to the browser. |
126 | 113 |
127 IPC_MESSAGE_CONTROL2( | 114 IPC_MESSAGE_CONTROL2( |
128 CastHostMsg_InitializeAudio, | 115 CastHostMsg_InitializeAudio, |
129 int32 /*channel_id*/, | 116 int32 /*channel_id*/, |
130 media::cast::transport::CastTransportAudioConfig /*config*/) | 117 media::cast::transport::CastTransportAudioConfig /*config*/) |
131 | 118 |
132 IPC_MESSAGE_CONTROL2( | 119 IPC_MESSAGE_CONTROL2( |
133 CastHostMsg_InitializeVideo, | 120 CastHostMsg_InitializeVideo, |
134 int32 /*channel_id*/, | 121 int32 /*channel_id*/, |
135 media::cast::transport::CastTransportVideoConfig /*config*/) | 122 media::cast::transport::CastTransportVideoConfig /*config*/) |
136 | 123 |
137 IPC_MESSAGE_CONTROL3( | 124 IPC_MESSAGE_CONTROL3( |
138 CastHostMsg_InsertCodedAudioFrame, | 125 CastHostMsg_InsertCodedAudioFrame, |
139 int32 /* channel_id */, | 126 int32 /* channel_id */, |
140 media::cast::transport::EncodedAudioFrame /* audio_frame */, | 127 media::cast::transport::EncodedAudioFrame /* audio_frame */, |
141 base::TimeTicks /* recorded_time */) | 128 base::TimeTicks /* recorded_time */) |
142 | 129 |
143 IPC_MESSAGE_CONTROL3( | 130 IPC_MESSAGE_CONTROL3( |
144 CastHostMsg_InsertCodedVideoFrame, | 131 CastHostMsg_InsertCodedVideoFrame, |
145 int32 /* channel_id */, | 132 int32 /* channel_id */, |
146 media::cast::transport::EncodedVideoFrame /* video_frame */, | 133 media::cast::transport::EncodedVideoFrame /* video_frame */, |
147 base::TimeTicks /* recorded_time */) | 134 base::TimeTicks /* recorded_time */) |
148 | 135 |
149 IPC_MESSAGE_CONTROL4( | 136 IPC_MESSAGE_CONTROL3( |
150 CastHostMsg_SendRtcpFromRtpSender, | 137 CastHostMsg_SendRtcpFromRtpSender, |
151 int32 /* channel_id */, | 138 int32 /* channel_id */, |
152 media::cast::transport::SendRtcpFromRtpSenderData /* flags, ssrc, name */, | 139 media::cast::transport::SendRtcpFromRtpSenderData /* data */, |
153 media::cast::transport::RtcpSenderInfo /* sender_info */, | |
154 media::cast::transport::RtcpDlrrReportBlock /* dlrr */) | 140 media::cast::transport::RtcpDlrrReportBlock /* dlrr */) |
155 | 141 |
156 IPC_MESSAGE_CONTROL3( | 142 IPC_MESSAGE_CONTROL3( |
157 CastHostMsg_ResendPackets, | 143 CastHostMsg_ResendPackets, |
158 int32 /* channel_id */, | 144 int32 /* channel_id */, |
159 bool /* is_audio */, | 145 bool /* is_audio */, |
160 media::cast::MissingFramesAndPacketsMap /* missing_packets */) | 146 media::cast::MissingFramesAndPacketsMap /* missing_packets */) |
161 | 147 |
162 IPC_MESSAGE_CONTROL2( | 148 IPC_MESSAGE_CONTROL2( |
163 CastHostMsg_New, | 149 CastHostMsg_New, |
164 int32 /* channel_id */, | 150 int32 /* channel_id */, |
165 net::IPEndPoint /*remote_end_point*/); | 151 net::IPEndPoint /*remote_end_point*/); |
166 | 152 |
167 IPC_MESSAGE_CONTROL1( | 153 IPC_MESSAGE_CONTROL1( |
168 CastHostMsg_Delete, | 154 CastHostMsg_Delete, |
169 int32 /* channel_id */); | 155 int32 /* channel_id */); |
OLD | NEW |