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" |
11 #include "media/cast/logging/logging_defines.h" | 11 #include "media/cast/logging/logging_defines.h" |
12 #include "media/cast/net/cast_transport.h" | 12 #include "media/cast/net/cast_transport.h" |
13 #include "media/cast/net/rtcp/rtcp_defines.h" | 13 #include "media/cast/net/rtcp/rtcp_defines.h" |
14 #include "net/base/ip_endpoint.h" | 14 #include "net/base/ip_endpoint.h" |
15 | 15 |
16 #ifndef CHROME_COMMON_CAST_MESSAGES_H_ | 16 #ifndef CHROME_COMMON_CAST_MESSAGES_H_ |
17 #define CHROME_COMMON_CAST_MESSAGES_H_ | 17 #define CHROME_COMMON_CAST_MESSAGES_H_ |
18 | 18 |
19 namespace IPC { | 19 namespace IPC { |
20 | 20 |
21 template<> | 21 template<> |
22 struct ParamTraits<media::cast::RtpTimeTicks> { | 22 struct ParamTraits<media::cast::RtpTimeTicks> { |
23 using param_type = media::cast::RtpTimeTicks; | 23 using param_type = media::cast::RtpTimeTicks; |
| 24 static void GetSize(base::PickleSizer* s, const param_type& p); |
24 static void Write(base::Pickle* m, const param_type& p); | 25 static void Write(base::Pickle* m, const param_type& p); |
25 static bool Read(const base::Pickle* m, | 26 static bool Read(const base::Pickle* m, |
26 base::PickleIterator* iter, | 27 base::PickleIterator* iter, |
27 param_type* r); | 28 param_type* r); |
28 static void Log(const param_type& p, std::string* l); | 29 static void Log(const param_type& p, std::string* l); |
29 }; | 30 }; |
30 | 31 |
31 template<> | 32 template<> |
32 struct ParamTraits<media::cast::FrameId> { | 33 struct ParamTraits<media::cast::FrameId> { |
33 using param_type = media::cast::FrameId; | 34 using param_type = media::cast::FrameId; |
| 35 static void GetSize(base::PickleSizer* s, const param_type& p); |
34 static void Write(base::Pickle* m, const param_type& p); | 36 static void Write(base::Pickle* m, const param_type& p); |
35 static bool Read(const base::Pickle* m, | 37 static bool Read(const base::Pickle* m, |
36 base::PickleIterator* iter, | 38 base::PickleIterator* iter, |
37 param_type* r); | 39 param_type* r); |
38 static void Log(const param_type& p, std::string* l); | 40 static void Log(const param_type& p, std::string* l); |
39 }; | 41 }; |
40 | 42 |
41 } // namespace IPC | 43 } // namespace IPC |
42 | 44 |
43 #endif // CHROME_COMMON_CAST_MESSAGES_H_ | 45 #endif // CHROME_COMMON_CAST_MESSAGES_H_ |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 int32_t /* channel id */, | 242 int32_t /* channel id */, |
241 media::cast::ReceiverRtcpEventSubscriber::RtcpEvents /* rtcp_events */) | 243 media::cast::ReceiverRtcpEventSubscriber::RtcpEvents /* rtcp_events */) |
242 | 244 |
243 IPC_MESSAGE_CONTROL2( | 245 IPC_MESSAGE_CONTROL2( |
244 CastHostMsg_AddRtpReceiverReport, | 246 CastHostMsg_AddRtpReceiverReport, |
245 int32_t /* channel id */, | 247 int32_t /* channel id */, |
246 media::cast::RtcpReportBlock /* rtp_receiver_report_block */) | 248 media::cast::RtcpReportBlock /* rtp_receiver_report_block */) |
247 | 249 |
248 IPC_MESSAGE_CONTROL1(CastHostMsg_SendRtcpFromRtpReceiver, | 250 IPC_MESSAGE_CONTROL1(CastHostMsg_SendRtcpFromRtpReceiver, |
249 int32_t /* channel id */) | 251 int32_t /* channel id */) |
OLD | NEW |