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. | |
7 | 6 |
8 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
9 #include "media/cast/cast_sender.h" | 8 #include "media/cast/cast_sender.h" |
| 9 #include "media/cast/common/rtp_time.h" |
10 #include "media/cast/logging/logging_defines.h" | 10 #include "media/cast/logging/logging_defines.h" |
11 #include "media/cast/net/cast_transport_sender.h" | 11 #include "media/cast/net/cast_transport_sender.h" |
12 #include "media/cast/net/rtcp/rtcp_defines.h" | 12 #include "media/cast/net/rtcp/rtcp_defines.h" |
13 #include "net/base/ip_endpoint.h" | 13 #include "net/base/ip_endpoint.h" |
14 | 14 |
| 15 #ifndef CHROME_COMMON_CAST_MESSAGES_H_ |
| 16 #define CHROME_COMMON_CAST_MESSAGES_H_ |
| 17 |
| 18 namespace IPC { |
| 19 |
| 20 template<> |
| 21 struct ParamTraits<media::cast::RtpTimeTicks> { |
| 22 using param_type = media::cast::RtpTimeTicks; |
| 23 static void Write(Message* m, const param_type& p); |
| 24 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
| 25 static void Log(const param_type& p, std::string* l); |
| 26 }; |
| 27 |
| 28 } // namespace IPC |
| 29 |
| 30 #endif // CHROME_COMMON_CAST_MESSAGES_H_ |
| 31 |
| 32 // Multiply-included message file, hence no include guard from here. |
| 33 |
15 #undef IPC_MESSAGE_EXPORT | 34 #undef IPC_MESSAGE_EXPORT |
16 #define IPC_MESSAGE_EXPORT | 35 #define IPC_MESSAGE_EXPORT |
17 #define IPC_MESSAGE_START CastMsgStart | 36 #define IPC_MESSAGE_START CastMsgStart |
18 | 37 |
19 IPC_ENUM_TRAITS_MAX_VALUE( | 38 IPC_ENUM_TRAITS_MAX_VALUE( |
20 media::cast::EncodedFrame::Dependency, | 39 media::cast::EncodedFrame::Dependency, |
21 media::cast::EncodedFrame::DEPENDENCY_LAST) | 40 media::cast::EncodedFrame::DEPENDENCY_LAST) |
22 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::Codec, | 41 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::Codec, |
23 media::cast::CODEC_LAST) | 42 media::cast::CODEC_LAST) |
24 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::CastTransportStatus, | 43 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::CastTransportStatus, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 CastHostMsg_InsertFrame, | 173 CastHostMsg_InsertFrame, |
155 int32 /* channel_id */, | 174 int32 /* channel_id */, |
156 uint32 /* ssrc */, | 175 uint32 /* ssrc */, |
157 media::cast::EncodedFrame /* audio/video frame */) | 176 media::cast::EncodedFrame /* audio/video frame */) |
158 | 177 |
159 IPC_MESSAGE_CONTROL4( | 178 IPC_MESSAGE_CONTROL4( |
160 CastHostMsg_SendSenderReport, | 179 CastHostMsg_SendSenderReport, |
161 int32 /* channel_id */, | 180 int32 /* channel_id */, |
162 uint32 /* ssrc */, | 181 uint32 /* ssrc */, |
163 base::TimeTicks /* current_time */, | 182 base::TimeTicks /* current_time */, |
164 uint32 /* current_time_as_rtp_timestamp */) | 183 media::cast::RtpTimeTicks /* current_time_as_rtp_timestamp */) |
165 | 184 |
166 IPC_MESSAGE_CONTROL3( | 185 IPC_MESSAGE_CONTROL3( |
167 CastHostMsg_CancelSendingFrames, | 186 CastHostMsg_CancelSendingFrames, |
168 int32 /* channel_id */, | 187 int32 /* channel_id */, |
169 uint32 /* ssrc */, | 188 uint32 /* ssrc */, |
170 std::vector<uint32> /* frame_ids */) | 189 std::vector<uint32> /* frame_ids */) |
171 | 190 |
172 IPC_MESSAGE_CONTROL3( | 191 IPC_MESSAGE_CONTROL3( |
173 CastHostMsg_ResendFrameForKickstart, | 192 CastHostMsg_ResendFrameForKickstart, |
174 int32 /* channel_id */, | 193 int32 /* channel_id */, |
(...skipping 13 matching lines...) Expand all Loading... |
188 IPC_MESSAGE_CONTROL4( | 207 IPC_MESSAGE_CONTROL4( |
189 CastHostMsg_New, | 208 CastHostMsg_New, |
190 int32 /* channel_id */, | 209 int32 /* channel_id */, |
191 net::IPEndPoint /* local_end_point */, | 210 net::IPEndPoint /* local_end_point */, |
192 net::IPEndPoint /* remote_end_point */, | 211 net::IPEndPoint /* remote_end_point */, |
193 base::DictionaryValue /* options */) | 212 base::DictionaryValue /* options */) |
194 | 213 |
195 IPC_MESSAGE_CONTROL1( | 214 IPC_MESSAGE_CONTROL1( |
196 CastHostMsg_Delete, | 215 CastHostMsg_Delete, |
197 int32 /* channel_id */) | 216 int32 /* channel_id */) |
OLD | NEW |