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

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: rebase 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::Dependency,
22 media::cast::transport::EncodedFrame::DEPENDENCY_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(dependency)
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::RtcpDlrrReportBlock) 43 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpDlrrReportBlock)
48 IPC_STRUCT_TRAITS_MEMBER(last_rr) 44 IPC_STRUCT_TRAITS_MEMBER(last_rr)
49 IPC_STRUCT_TRAITS_MEMBER(delay_since_last_rr) 45 IPC_STRUCT_TRAITS_MEMBER(delay_since_last_rr)
50 IPC_STRUCT_TRAITS_END() 46 IPC_STRUCT_TRAITS_END()
51 47
52 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtpConfig) 48 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtpConfig)
53 IPC_STRUCT_TRAITS_MEMBER(ssrc) 49 IPC_STRUCT_TRAITS_MEMBER(ssrc)
54 IPC_STRUCT_TRAITS_MEMBER(max_delay_ms) 50 IPC_STRUCT_TRAITS_MEMBER(max_delay_ms)
55 IPC_STRUCT_TRAITS_MEMBER(payload_type) 51 IPC_STRUCT_TRAITS_MEMBER(payload_type)
56 IPC_STRUCT_TRAITS_MEMBER(aes_key) 52 IPC_STRUCT_TRAITS_MEMBER(aes_key)
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 IPC_MESSAGE_CONTROL2( 110 IPC_MESSAGE_CONTROL2(
115 CastHostMsg_InitializeAudio, 111 CastHostMsg_InitializeAudio,
116 int32 /*channel_id*/, 112 int32 /*channel_id*/,
117 media::cast::transport::CastTransportAudioConfig /*config*/) 113 media::cast::transport::CastTransportAudioConfig /*config*/)
118 114
119 IPC_MESSAGE_CONTROL2( 115 IPC_MESSAGE_CONTROL2(
120 CastHostMsg_InitializeVideo, 116 CastHostMsg_InitializeVideo,
121 int32 /*channel_id*/, 117 int32 /*channel_id*/,
122 media::cast::transport::CastTransportVideoConfig /*config*/) 118 media::cast::transport::CastTransportVideoConfig /*config*/)
123 119
124 IPC_MESSAGE_CONTROL3( 120 IPC_MESSAGE_CONTROL2(
125 CastHostMsg_InsertCodedAudioFrame, 121 CastHostMsg_InsertCodedAudioFrame,
126 int32 /* channel_id */, 122 int32 /* channel_id */,
127 media::cast::transport::EncodedAudioFrame /* audio_frame */, 123 media::cast::transport::EncodedFrame /* audio_frame */)
128 base::TimeTicks /* recorded_time */)
129 124
130 IPC_MESSAGE_CONTROL3( 125 IPC_MESSAGE_CONTROL2(
131 CastHostMsg_InsertCodedVideoFrame, 126 CastHostMsg_InsertCodedVideoFrame,
132 int32 /* channel_id */, 127 int32 /* channel_id */,
133 media::cast::transport::EncodedVideoFrame /* video_frame */, 128 media::cast::transport::EncodedFrame /* video_frame */)
134 base::TimeTicks /* recorded_time */)
135 129
136 IPC_MESSAGE_CONTROL3( 130 IPC_MESSAGE_CONTROL3(
137 CastHostMsg_SendRtcpFromRtpSender, 131 CastHostMsg_SendRtcpFromRtpSender,
138 int32 /* channel_id */, 132 int32 /* channel_id */,
139 media::cast::transport::SendRtcpFromRtpSenderData /* data */, 133 media::cast::transport::SendRtcpFromRtpSenderData /* data */,
140 media::cast::transport::RtcpDlrrReportBlock /* dlrr */) 134 media::cast::transport::RtcpDlrrReportBlock /* dlrr */)
141 135
142 IPC_MESSAGE_CONTROL3( 136 IPC_MESSAGE_CONTROL3(
143 CastHostMsg_ResendPackets, 137 CastHostMsg_ResendPackets,
144 int32 /* channel_id */, 138 int32 /* channel_id */,
145 bool /* is_audio */, 139 bool /* is_audio */,
146 media::cast::MissingFramesAndPacketsMap /* missing_packets */) 140 media::cast::MissingFramesAndPacketsMap /* missing_packets */)
147 141
148 IPC_MESSAGE_CONTROL2( 142 IPC_MESSAGE_CONTROL2(
149 CastHostMsg_New, 143 CastHostMsg_New,
150 int32 /* channel_id */, 144 int32 /* channel_id */,
151 net::IPEndPoint /*remote_end_point*/); 145 net::IPEndPoint /*remote_end_point*/);
152 146
153 IPC_MESSAGE_CONTROL1( 147 IPC_MESSAGE_CONTROL1(
154 CastHostMsg_Delete, 148 CastHostMsg_Delete,
155 int32 /* channel_id */); 149 int32 /* channel_id */);
OLDNEW
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter_unittest.cc ('k') | chrome/renderer/media/cast_transport_sender_ipc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698