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

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

Issue 178073004: Cast: IPC from browser to renderer to send packet events from transport to cast library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/media/cast_ipc_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 IPC_STRUCT_TRAITS_MEMBER(base) 86 IPC_STRUCT_TRAITS_MEMBER(base)
84 IPC_STRUCT_TRAITS_MEMBER(codec) 87 IPC_STRUCT_TRAITS_MEMBER(codec)
85 IPC_STRUCT_TRAITS_END() 88 IPC_STRUCT_TRAITS_END()
86 89
87 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::SendRtcpFromRtpSenderData) 90 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::SendRtcpFromRtpSenderData)
88 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags) 91 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags)
89 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc) 92 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc)
90 IPC_STRUCT_TRAITS_MEMBER(c_name) 93 IPC_STRUCT_TRAITS_MEMBER(c_name)
91 IPC_STRUCT_TRAITS_END() 94 IPC_STRUCT_TRAITS_END()
92 95
96 IPC_STRUCT_TRAITS_BEGIN(media::cast::PacketEvent)
97 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
98 IPC_STRUCT_TRAITS_MEMBER(frame_id)
99 IPC_STRUCT_TRAITS_MEMBER(max_packet_id)
100 IPC_STRUCT_TRAITS_MEMBER(packet_id)
101 IPC_STRUCT_TRAITS_MEMBER(size)
102 IPC_STRUCT_TRAITS_MEMBER(timestamp)
103 IPC_STRUCT_TRAITS_MEMBER(type)
104 IPC_STRUCT_TRAITS_END()
105
106 IPC_STRUCT_TRAITS_BEGIN(media::cast::CastLoggingConfig)
107 IPC_STRUCT_TRAITS_MEMBER(enable_raw_data_collection)
108 IPC_STRUCT_TRAITS_MEMBER(enable_stats_data_collection)
109 IPC_STRUCT_TRAITS_MEMBER(enable_tracing)
110 IPC_STRUCT_TRAITS_END()
93 111
94 // Cast messages sent from the browser to the renderer. 112 // Cast messages sent from the browser to the renderer.
95 113
96 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, 114 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket,
97 int32 /* channel_id */, 115 int32 /* channel_id */,
98 media::cast::Packet /* packet */); 116 media::cast::Packet /* packet */);
99 117
100 IPC_MESSAGE_CONTROL2( 118 IPC_MESSAGE_CONTROL2(
101 CastMsg_NotifyStatusChange, 119 CastMsg_NotifyStatusChange,
102 int32 /* channel_id */, 120 int32 /* channel_id */,
103 media::cast::transport::CastTransportStatus /* status */); 121 media::cast::transport::CastTransportStatus /* status */);
104 122
105 IPC_MESSAGE_CONTROL5( 123 IPC_MESSAGE_CONTROL5(
106 CastMsg_RtpStatistics, 124 CastMsg_RtpStatistics,
107 int32 /* channel_id */, 125 int32 /* channel_id */,
108 bool /* audio */, 126 bool /* audio */,
109 media::cast::transport::RtcpSenderInfo /* sender_info */, 127 media::cast::transport::RtcpSenderInfo /* sender_info */,
110 base::TimeTicks /* time_sent */, 128 base::TimeTicks /* time_sent */,
111 uint32 /* rtp_timestamp */); 129 uint32 /* rtp_timestamp */);
112 130
131 IPC_MESSAGE_CONTROL2(CastMsg_RawEvents,
132 int32 /* channel_id */,
133 std::vector<media::cast::PacketEvent> /* packet_events */);
113 134
114 // Cast messages sent from the renderer to the browser. 135 // Cast messages sent from the renderer to the browser.
115 136
116 IPC_MESSAGE_CONTROL2( 137 IPC_MESSAGE_CONTROL2(
117 CastHostMsg_InitializeAudio, 138 CastHostMsg_InitializeAudio,
118 int32 /*channel_id*/, 139 int32 /*channel_id*/,
119 media::cast::transport::CastTransportAudioConfig /*config*/) 140 media::cast::transport::CastTransportAudioConfig /*config*/)
120 141
121 IPC_MESSAGE_CONTROL2( 142 IPC_MESSAGE_CONTROL2(
122 CastHostMsg_InitializeVideo, 143 CastHostMsg_InitializeVideo,
(...skipping 19 matching lines...) Expand all
142 media::cast::transport::RtcpSenderInfo /* sender_info */, 163 media::cast::transport::RtcpSenderInfo /* sender_info */,
143 media::cast::transport::RtcpDlrrReportBlock /* dlrr */, 164 media::cast::transport::RtcpDlrrReportBlock /* dlrr */,
144 media::cast::transport::RtcpSenderLogMessage /* sender_log */) 165 media::cast::transport::RtcpSenderLogMessage /* sender_log */)
145 166
146 IPC_MESSAGE_CONTROL3( 167 IPC_MESSAGE_CONTROL3(
147 CastHostMsg_ResendPackets, 168 CastHostMsg_ResendPackets,
148 int32 /* channel_id */, 169 int32 /* channel_id */,
149 bool /* is_audio */, 170 bool /* is_audio */,
150 media::cast::MissingFramesAndPacketsMap /* missing_packets */) 171 media::cast::MissingFramesAndPacketsMap /* missing_packets */)
151 172
152 IPC_MESSAGE_CONTROL3( 173 IPC_MESSAGE_CONTROL4(CastHostMsg_New,
153 CastHostMsg_New, 174 int32 /* channel_id */,
154 int32 /* channel_id */, 175 net::IPEndPoint /*local_end_point*/,
155 net::IPEndPoint /*local_end_point*/, 176 net::IPEndPoint /*remote_end_point*/,
156 net::IPEndPoint /*remote_end_point*/); 177 media::cast::CastLoggingConfig /* logging_config */);
157 178
158 IPC_MESSAGE_CONTROL1( 179 IPC_MESSAGE_CONTROL1(
159 CastHostMsg_Delete, 180 CastHostMsg_Delete,
160 int32 /* channel_id */); 181 int32 /* channel_id */);
OLDNEW
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/media/cast_ipc_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698