Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Side by Side Diff: chrome/common/cast_messages.h

Issue 288103002: [Cast] EncodedAudioFrame+EncodedVideoFrame+reference_time --> EncodedFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed hclam@'s first round comments. Fixed chrome unit_tests compiles. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/logging/logging_defines.h"
11 #include "media/cast/rtcp/rtcp_defines.h" 11 #include "media/cast/rtcp/rtcp_defines.h"
12 #include "media/cast/transport/cast_transport_sender.h" 12 #include "media/cast/transport/cast_transport_sender.h"
13 #include "net/base/ip_endpoint.h" 13 #include "net/base/ip_endpoint.h"
14 #include "net/base/net_util.h" 14 #include "net/base/net_util.h"
15 15
16 #undef IPC_MESSAGE_EXPORT 16 #undef IPC_MESSAGE_EXPORT
17 #define IPC_MESSAGE_EXPORT 17 #define IPC_MESSAGE_EXPORT
18 #define IPC_MESSAGE_START CastMsgStart 18 #define IPC_MESSAGE_START CastMsgStart
19 19
20 IPC_ENUM_TRAITS_MAX_VALUE(
21 media::cast::transport::EncodedFrame::Relationship,
22 media::cast::transport::EncodedFrame::RELATIONSHIP_LAST)
20 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::AudioCodec, 23 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::AudioCodec,
21 media::cast::transport::kAudioCodecLast) 24 media::cast::transport::kAudioCodecLast)
22 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::VideoCodec, 25 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::VideoCodec,
23 media::cast::transport::kVideoCodecLast) 26 media::cast::transport::kVideoCodecLast)
24 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::CastTransportStatus, 27 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::transport::CastTransportStatus,
25 media::cast::transport::CAST_TRANSPORT_STATUS_LAST) 28 media::cast::transport::CAST_TRANSPORT_STATUS_LAST)
26 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::CastLoggingEvent, 29 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::CastLoggingEvent,
27 media::cast::kNumOfLoggingEvents) 30 media::cast::kNumOfLoggingEvents)
28 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::EventMediaType, 31 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::EventMediaType,
29 media::cast::EVENT_MEDIA_TYPE_LAST) 32 media::cast::EVENT_MEDIA_TYPE_LAST)
30 33
31 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedAudioFrame) 34 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedFrame)
32 IPC_STRUCT_TRAITS_MEMBER(codec) 35 IPC_STRUCT_TRAITS_MEMBER(relationship)
33 IPC_STRUCT_TRAITS_MEMBER(frame_id) 36 IPC_STRUCT_TRAITS_MEMBER(frame_id)
37 IPC_STRUCT_TRAITS_MEMBER(referenced_frame_id)
34 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) 38 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
39 IPC_STRUCT_TRAITS_MEMBER(reference_time)
35 IPC_STRUCT_TRAITS_MEMBER(data) 40 IPC_STRUCT_TRAITS_MEMBER(data)
36 IPC_STRUCT_TRAITS_END() 41 IPC_STRUCT_TRAITS_END()
37 42
38 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedVideoFrame)
39 IPC_STRUCT_TRAITS_MEMBER(codec)
40 IPC_STRUCT_TRAITS_MEMBER(key_frame)
41 IPC_STRUCT_TRAITS_MEMBER(frame_id)
42 IPC_STRUCT_TRAITS_MEMBER(last_referenced_frame_id)
43 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
44 IPC_STRUCT_TRAITS_MEMBER(data)
45 IPC_STRUCT_TRAITS_END()
46
47 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpSenderInfo) 43 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpSenderInfo)
48 IPC_STRUCT_TRAITS_MEMBER(ntp_seconds) 44 IPC_STRUCT_TRAITS_MEMBER(ntp_seconds)
49 IPC_STRUCT_TRAITS_MEMBER(ntp_fraction) 45 IPC_STRUCT_TRAITS_MEMBER(ntp_fraction)
50 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) 46 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
51 IPC_STRUCT_TRAITS_MEMBER(send_packet_count) 47 IPC_STRUCT_TRAITS_MEMBER(send_packet_count)
52 IPC_STRUCT_TRAITS_MEMBER(send_octet_count) 48 IPC_STRUCT_TRAITS_MEMBER(send_octet_count)
53 IPC_STRUCT_TRAITS_END() 49 IPC_STRUCT_TRAITS_END()
54 50
55 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpDlrrReportBlock) 51 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpDlrrReportBlock)
56 IPC_STRUCT_TRAITS_MEMBER(last_rr) 52 IPC_STRUCT_TRAITS_MEMBER(last_rr)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 IPC_MESSAGE_CONTROL2( 123 IPC_MESSAGE_CONTROL2(
128 CastHostMsg_InitializeAudio, 124 CastHostMsg_InitializeAudio,
129 int32 /*channel_id*/, 125 int32 /*channel_id*/,
130 media::cast::transport::CastTransportAudioConfig /*config*/) 126 media::cast::transport::CastTransportAudioConfig /*config*/)
131 127
132 IPC_MESSAGE_CONTROL2( 128 IPC_MESSAGE_CONTROL2(
133 CastHostMsg_InitializeVideo, 129 CastHostMsg_InitializeVideo,
134 int32 /*channel_id*/, 130 int32 /*channel_id*/,
135 media::cast::transport::CastTransportVideoConfig /*config*/) 131 media::cast::transport::CastTransportVideoConfig /*config*/)
136 132
137 IPC_MESSAGE_CONTROL3( 133 IPC_MESSAGE_CONTROL2(
138 CastHostMsg_InsertCodedAudioFrame, 134 CastHostMsg_InsertCodedAudioFrame,
139 int32 /* channel_id */, 135 int32 /* channel_id */,
140 media::cast::transport::EncodedAudioFrame /* audio_frame */, 136 media::cast::transport::EncodedFrame /* audio_frame */)
141 base::TimeTicks /* recorded_time */)
142 137
143 IPC_MESSAGE_CONTROL3( 138 IPC_MESSAGE_CONTROL2(
144 CastHostMsg_InsertCodedVideoFrame, 139 CastHostMsg_InsertCodedVideoFrame,
145 int32 /* channel_id */, 140 int32 /* channel_id */,
146 media::cast::transport::EncodedVideoFrame /* video_frame */, 141 media::cast::transport::EncodedFrame /* video_frame */)
147 base::TimeTicks /* recorded_time */)
148 142
149 IPC_MESSAGE_CONTROL4( 143 IPC_MESSAGE_CONTROL4(
150 CastHostMsg_SendRtcpFromRtpSender, 144 CastHostMsg_SendRtcpFromRtpSender,
151 int32 /* channel_id */, 145 int32 /* channel_id */,
152 media::cast::transport::SendRtcpFromRtpSenderData /* flags, ssrc, name */, 146 media::cast::transport::SendRtcpFromRtpSenderData /* flags, ssrc, name */,
153 media::cast::transport::RtcpSenderInfo /* sender_info */, 147 media::cast::transport::RtcpSenderInfo /* sender_info */,
154 media::cast::transport::RtcpDlrrReportBlock /* dlrr */) 148 media::cast::transport::RtcpDlrrReportBlock /* dlrr */)
155 149
156 IPC_MESSAGE_CONTROL3( 150 IPC_MESSAGE_CONTROL3(
157 CastHostMsg_ResendPackets, 151 CastHostMsg_ResendPackets,
158 int32 /* channel_id */, 152 int32 /* channel_id */,
159 bool /* is_audio */, 153 bool /* is_audio */,
160 media::cast::MissingFramesAndPacketsMap /* missing_packets */) 154 media::cast::MissingFramesAndPacketsMap /* missing_packets */)
161 155
162 IPC_MESSAGE_CONTROL2( 156 IPC_MESSAGE_CONTROL2(
163 CastHostMsg_New, 157 CastHostMsg_New,
164 int32 /* channel_id */, 158 int32 /* channel_id */,
165 net::IPEndPoint /*remote_end_point*/); 159 net::IPEndPoint /*remote_end_point*/);
166 160
167 IPC_MESSAGE_CONTROL1( 161 IPC_MESSAGE_CONTROL1(
168 CastHostMsg_Delete, 162 CastHostMsg_Delete,
169 int32 /* channel_id */); 163 int32 /* channel_id */);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698