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::RtpReceiverStatistics) | 106 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtpReceiverStatistics) |
107 IPC_STRUCT_TRAITS_MEMBER(fraction_lost) | 107 IPC_STRUCT_TRAITS_MEMBER(fraction_lost) |
108 IPC_STRUCT_TRAITS_MEMBER(cumulative_lost) | 108 IPC_STRUCT_TRAITS_MEMBER(cumulative_lost) |
109 IPC_STRUCT_TRAITS_MEMBER(extended_high_sequence_number) | 109 IPC_STRUCT_TRAITS_MEMBER(extended_high_sequence_number) |
110 IPC_STRUCT_TRAITS_MEMBER(jitter) | 110 IPC_STRUCT_TRAITS_MEMBER(jitter) |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 IPC_MESSAGE_CONTROL3(CastMsg_Rtt, | 143 IPC_MESSAGE_CONTROL3(CastMsg_Rtt, |
144 int32_t /* channel_id */, | 144 int32_t /* channel_id */, |
145 uint32_t /* ssrc */, | 145 uint32_t /* ssrc */, |
146 base::TimeDelta /* rtt */) | 146 base::TimeDelta /* rtt */) |
147 | 147 |
148 IPC_MESSAGE_CONTROL3(CastMsg_RtcpCastMessage, | 148 IPC_MESSAGE_CONTROL3(CastMsg_RtcpCastMessage, |
149 int32_t /* channel_id */, | 149 int32_t /* channel_id */, |
150 uint32_t /* ssrc */, | 150 uint32_t /* ssrc */, |
151 media::cast::RtcpCastMessage /* cast_message */) | 151 media::cast::RtcpCastMessage /* cast_message */) |
152 | 152 |
153 IPC_MESSAGE_CONTROL2(CastMsg_Pli, int32_t /* channel_id */, uint32_t /* ssrc */) | |
dcheng
2016/03/01 23:44:12
These messages need more documentation in general.
xjz
2016/03/02 04:24:16
Add comment.
| |
154 | |
153 IPC_MESSAGE_CONTROL2(CastMsg_NotifyStatusChange, | 155 IPC_MESSAGE_CONTROL2(CastMsg_NotifyStatusChange, |
154 int32_t /* channel_id */, | 156 int32_t /* channel_id */, |
155 media::cast::CastTransportStatus /* status */) | 157 media::cast::CastTransportStatus /* status */) |
156 | 158 |
157 IPC_MESSAGE_CONTROL3(CastMsg_RawEvents, | 159 IPC_MESSAGE_CONTROL3(CastMsg_RawEvents, |
158 int32_t /* channel_id */, | 160 int32_t /* channel_id */, |
159 std::vector<media::cast::PacketEvent> /* packet_events */, | 161 std::vector<media::cast::PacketEvent> /* packet_events */, |
160 std::vector<media::cast::FrameEvent> /* frame_events */) | 162 std::vector<media::cast::FrameEvent> /* frame_events */) |
161 | 163 |
162 // Cast messages sent from the renderer to the browser. | 164 // Cast messages sent from the renderer to the browser. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
198 int32_t /* channel id */, | 200 int32_t /* channel id */, |
199 media::cast::SendRtcpFromRtpReceiver_Params /* data */) | 201 media::cast::SendRtcpFromRtpReceiver_Params /* data */) |
200 | 202 |
201 IPC_MESSAGE_CONTROL4(CastHostMsg_New, | 203 IPC_MESSAGE_CONTROL4(CastHostMsg_New, |
202 int32_t /* channel_id */, | 204 int32_t /* channel_id */, |
203 net::IPEndPoint /* local_end_point */, | 205 net::IPEndPoint /* local_end_point */, |
204 net::IPEndPoint /* remote_end_point */, | 206 net::IPEndPoint /* remote_end_point */, |
205 base::DictionaryValue /* options */) | 207 base::DictionaryValue /* options */) |
206 | 208 |
207 IPC_MESSAGE_CONTROL1(CastHostMsg_Delete, int32_t /* channel_id */) | 209 IPC_MESSAGE_CONTROL1(CastHostMsg_Delete, int32_t /* channel_id */) |
OLD | NEW |