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/rtcp/rtcp_defines.h" | 11 #include "media/cast/rtcp/rtcp_defines.h" |
11 #include "media/cast/transport/cast_transport_sender.h" | 12 #include "media/cast/transport/cast_transport_sender.h" |
12 #include "net/base/ip_endpoint.h" | 13 #include "net/base/ip_endpoint.h" |
13 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
14 | 15 |
15 #undef IPC_MESSAGE_EXPORT | 16 #undef IPC_MESSAGE_EXPORT |
16 #define IPC_MESSAGE_EXPORT | 17 #define IPC_MESSAGE_EXPORT |
17 #define IPC_MESSAGE_START CastMsgStart | 18 #define IPC_MESSAGE_START CastMsgStart |
18 | 19 |
19 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::AudioCodec, | 20 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::AudioCodec, |
20 media::cast::transport::kAudioCodecLast) | 21 media::cast::transport::kAudioCodecLast) |
21 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::VideoCodec, | 22 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::VideoCodec, |
22 media::cast::transport::kVideoCodecLast) | 23 media::cast::transport::kVideoCodecLast) |
23 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::RtcpSenderFrameStatus, | 24 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::RtcpSenderFrameStatus, |
24 media::cast::transport::kRtcpSenderFrameStatusLast) | 25 media::cast::transport::kRtcpSenderFrameStatusLast) |
25 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::CastTransportStatus, | 26 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::CastTransportStatus, |
26 media::cast::transport::CAST_TRANSPORT_STATUS_LAST) | 27 media::cast::transport::CAST_TRANSPORT_STATUS_LAST) |
28 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::CastLoggingEvent, | |
29 media::cast::kNumOfLoggingEvents) | |
27 | 30 |
28 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedAudioFrame) | 31 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedAudioFrame) |
29 IPC_STRUCT_TRAITS_MEMBER(codec) | 32 IPC_STRUCT_TRAITS_MEMBER(codec) |
30 IPC_STRUCT_TRAITS_MEMBER(frame_id) | 33 IPC_STRUCT_TRAITS_MEMBER(frame_id) |
31 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) | 34 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) |
32 IPC_STRUCT_TRAITS_MEMBER(data) | 35 IPC_STRUCT_TRAITS_MEMBER(data) |
33 IPC_STRUCT_TRAITS_END() | 36 IPC_STRUCT_TRAITS_END() |
34 | 37 |
35 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedVideoFrame) | 38 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedVideoFrame) |
36 IPC_STRUCT_TRAITS_MEMBER(codec) | 39 IPC_STRUCT_TRAITS_MEMBER(codec) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 IPC_STRUCT_TRAITS_MEMBER(audio_ssrc) | 73 IPC_STRUCT_TRAITS_MEMBER(audio_ssrc) |
71 IPC_STRUCT_TRAITS_MEMBER(video_ssrc) | 74 IPC_STRUCT_TRAITS_MEMBER(video_ssrc) |
72 IPC_STRUCT_TRAITS_MEMBER(video_codec) | 75 IPC_STRUCT_TRAITS_MEMBER(video_codec) |
73 IPC_STRUCT_TRAITS_MEMBER(audio_codec) | 76 IPC_STRUCT_TRAITS_MEMBER(audio_codec) |
74 IPC_STRUCT_TRAITS_MEMBER(audio_frequency) | 77 IPC_STRUCT_TRAITS_MEMBER(audio_frequency) |
75 IPC_STRUCT_TRAITS_MEMBER(audio_channels) | 78 IPC_STRUCT_TRAITS_MEMBER(audio_channels) |
76 IPC_STRUCT_TRAITS_MEMBER(audio_rtp_config) | 79 IPC_STRUCT_TRAITS_MEMBER(audio_rtp_config) |
77 IPC_STRUCT_TRAITS_MEMBER(video_rtp_config) | 80 IPC_STRUCT_TRAITS_MEMBER(video_rtp_config) |
78 IPC_STRUCT_TRAITS_MEMBER(aes_key) | 81 IPC_STRUCT_TRAITS_MEMBER(aes_key) |
79 IPC_STRUCT_TRAITS_MEMBER(aes_iv_mask) | 82 IPC_STRUCT_TRAITS_MEMBER(aes_iv_mask) |
83 IPC_STRUCT_TRAITS_MEMBER(enable_raw_event_logging) | |
80 IPC_STRUCT_TRAITS_END() | 84 IPC_STRUCT_TRAITS_END() |
81 | 85 |
82 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::SendRtcpFromRtpSenderData) | 86 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::SendRtcpFromRtpSenderData) |
83 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags) | 87 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags) |
84 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc) | 88 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc) |
85 IPC_STRUCT_TRAITS_MEMBER(c_name) | 89 IPC_STRUCT_TRAITS_MEMBER(c_name) |
86 IPC_STRUCT_TRAITS_END() | 90 IPC_STRUCT_TRAITS_END() |
87 | 91 |
92 IPC_STRUCT_TRAITS_BEGIN(media::cast::PacketEvent) | |
93 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) | |
hubbe
2014/02/25 22:22:16
Indentation...
imcheng
2014/02/25 23:14:56
Done.
| |
94 IPC_STRUCT_TRAITS_MEMBER(frame_id) | |
95 IPC_STRUCT_TRAITS_MEMBER(max_packet_id) | |
96 IPC_STRUCT_TRAITS_MEMBER(packet_id) | |
97 IPC_STRUCT_TRAITS_MEMBER(size) | |
98 IPC_STRUCT_TRAITS_MEMBER(timestamp) | |
99 IPC_STRUCT_TRAITS_MEMBER(type) | |
100 IPC_STRUCT_TRAITS_END() | |
88 | 101 |
89 // Cast messages sent from the browser to the renderer. | 102 // Cast messages sent from the browser to the renderer. |
90 | 103 |
91 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, | 104 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, |
92 int32 /* channel_id */, | 105 int32 /* channel_id */, |
93 media::cast::Packet /* packet */); | 106 media::cast::Packet /* packet */); |
94 | 107 |
95 IPC_MESSAGE_CONTROL2( | 108 IPC_MESSAGE_CONTROL2( |
96 CastMsg_NotifyStatusChange, | 109 CastMsg_NotifyStatusChange, |
97 int32 /* channel_id */, | 110 int32 /* channel_id */, |
98 media::cast::transport::CastTransportStatus /* status */); | 111 media::cast::transport::CastTransportStatus /* status */); |
99 | 112 |
100 IPC_MESSAGE_CONTROL5( | 113 IPC_MESSAGE_CONTROL5( |
101 CastMsg_RtpStatistics, | 114 CastMsg_RtpStatistics, |
102 int32 /* channel_id */, | 115 int32 /* channel_id */, |
103 bool /* audio */, | 116 bool /* audio */, |
104 media::cast::transport::RtcpSenderInfo /* sender_info */, | 117 media::cast::transport::RtcpSenderInfo /* sender_info */, |
105 base::TimeTicks /* time_sent */, | 118 base::TimeTicks /* time_sent */, |
106 uint32 /* rtp_timestamp */); | 119 uint32 /* rtp_timestamp */); |
107 | 120 |
121 IPC_MESSAGE_CONTROL2(CastMsg_RawEvents, | |
122 int32 /* channel_id */, | |
123 std::vector<media::cast::PacketEvent> /* packet_events */); | |
108 | 124 |
109 // Cast messages sent from the renderer to the browser. | 125 // Cast messages sent from the renderer to the browser. |
110 | 126 |
111 IPC_MESSAGE_CONTROL3( | 127 IPC_MESSAGE_CONTROL3( |
112 CastHostMsg_InsertCodedAudioFrame, | 128 CastHostMsg_InsertCodedAudioFrame, |
113 int32 /* channel_id */, | 129 int32 /* channel_id */, |
114 media::cast::transport::EncodedAudioFrame /* audio_frame */, | 130 media::cast::transport::EncodedAudioFrame /* audio_frame */, |
115 base::TimeTicks /* recorded_time */) | 131 base::TimeTicks /* recorded_time */) |
116 | 132 |
117 IPC_MESSAGE_CONTROL3( | 133 IPC_MESSAGE_CONTROL3( |
(...skipping 17 matching lines...) Expand all Loading... | |
135 media::cast::MissingFramesAndPacketsMap /* missing_packets */) | 151 media::cast::MissingFramesAndPacketsMap /* missing_packets */) |
136 | 152 |
137 IPC_MESSAGE_CONTROL2( | 153 IPC_MESSAGE_CONTROL2( |
138 CastHostMsg_New, | 154 CastHostMsg_New, |
139 int32 /* channel_id */, | 155 int32 /* channel_id */, |
140 media::cast::transport::CastTransportConfig /* config */); | 156 media::cast::transport::CastTransportConfig /* config */); |
141 | 157 |
142 IPC_MESSAGE_CONTROL1( | 158 IPC_MESSAGE_CONTROL1( |
143 CastHostMsg_Delete, | 159 CastHostMsg_Delete, |
144 int32 /* channel_id */); | 160 int32 /* channel_id */); |
OLD | NEW |