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_sender.h" | 12 #include "media/cast/net/cast_transport_sender.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 Write(Message* m, const param_type& p); | 24 static void Write(base::Pickle* m, const param_type& p); |
25 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); | 25 static bool Read(const base::Pickle* m, |
| 26 base::PickleIterator* iter, |
| 27 param_type* r); |
26 static void Log(const param_type& p, std::string* l); | 28 static void Log(const param_type& p, std::string* l); |
27 }; | 29 }; |
28 | 30 |
29 } // namespace IPC | 31 } // namespace IPC |
30 | 32 |
31 #endif // CHROME_COMMON_CAST_MESSAGES_H_ | 33 #endif // CHROME_COMMON_CAST_MESSAGES_H_ |
32 | 34 |
33 // Multiply-included message file, hence no include guard from here. | 35 // Multiply-included message file, hence no include guard from here. |
34 | 36 |
35 #undef IPC_MESSAGE_EXPORT | 37 #undef IPC_MESSAGE_EXPORT |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 int32_t /* channel id */, | 198 int32_t /* channel id */, |
197 media::cast::SendRtcpFromRtpReceiver_Params /* data */) | 199 media::cast::SendRtcpFromRtpReceiver_Params /* data */) |
198 | 200 |
199 IPC_MESSAGE_CONTROL4(CastHostMsg_New, | 201 IPC_MESSAGE_CONTROL4(CastHostMsg_New, |
200 int32_t /* channel_id */, | 202 int32_t /* channel_id */, |
201 net::IPEndPoint /* local_end_point */, | 203 net::IPEndPoint /* local_end_point */, |
202 net::IPEndPoint /* remote_end_point */, | 204 net::IPEndPoint /* remote_end_point */, |
203 base::DictionaryValue /* options */) | 205 base::DictionaryValue /* options */) |
204 | 206 |
205 IPC_MESSAGE_CONTROL1(CastHostMsg_Delete, int32_t /* channel_id */) | 207 IPC_MESSAGE_CONTROL1(CastHostMsg_Delete, int32_t /* channel_id */) |
OLD | NEW |