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

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

Issue 281453003: Cast: Simplify code path for RTCP sender report (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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"
(...skipping 24 matching lines...) Expand all
35 35
36 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedVideoFrame) 36 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::EncodedVideoFrame)
37 IPC_STRUCT_TRAITS_MEMBER(codec) 37 IPC_STRUCT_TRAITS_MEMBER(codec)
38 IPC_STRUCT_TRAITS_MEMBER(key_frame) 38 IPC_STRUCT_TRAITS_MEMBER(key_frame)
39 IPC_STRUCT_TRAITS_MEMBER(frame_id) 39 IPC_STRUCT_TRAITS_MEMBER(frame_id)
40 IPC_STRUCT_TRAITS_MEMBER(last_referenced_frame_id) 40 IPC_STRUCT_TRAITS_MEMBER(last_referenced_frame_id)
41 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) 41 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
42 IPC_STRUCT_TRAITS_MEMBER(data) 42 IPC_STRUCT_TRAITS_MEMBER(data)
43 IPC_STRUCT_TRAITS_END() 43 IPC_STRUCT_TRAITS_END()
44 44
45 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpSenderInfo)
46 IPC_STRUCT_TRAITS_MEMBER(ntp_seconds)
47 IPC_STRUCT_TRAITS_MEMBER(ntp_fraction)
48 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
49 IPC_STRUCT_TRAITS_MEMBER(send_packet_count)
50 IPC_STRUCT_TRAITS_MEMBER(send_octet_count)
51 IPC_STRUCT_TRAITS_END()
52
53 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpDlrrReportBlock) 45 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtcpDlrrReportBlock)
54 IPC_STRUCT_TRAITS_MEMBER(last_rr) 46 IPC_STRUCT_TRAITS_MEMBER(last_rr)
55 IPC_STRUCT_TRAITS_MEMBER(delay_since_last_rr) 47 IPC_STRUCT_TRAITS_MEMBER(delay_since_last_rr)
56 IPC_STRUCT_TRAITS_END() 48 IPC_STRUCT_TRAITS_END()
57 49
58 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtpConfig) 50 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtpConfig)
59 IPC_STRUCT_TRAITS_MEMBER(ssrc) 51 IPC_STRUCT_TRAITS_MEMBER(ssrc)
60 IPC_STRUCT_TRAITS_MEMBER(max_delay_ms) 52 IPC_STRUCT_TRAITS_MEMBER(max_delay_ms)
61 IPC_STRUCT_TRAITS_MEMBER(payload_type) 53 IPC_STRUCT_TRAITS_MEMBER(payload_type)
62 IPC_STRUCT_TRAITS_MEMBER(aes_key) 54 IPC_STRUCT_TRAITS_MEMBER(aes_key)
(...skipping 14 matching lines...) Expand all
77 69
78 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::CastTransportVideoConfig) 70 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::CastTransportVideoConfig)
79 IPC_STRUCT_TRAITS_MEMBER(rtp) 71 IPC_STRUCT_TRAITS_MEMBER(rtp)
80 IPC_STRUCT_TRAITS_MEMBER(codec) 72 IPC_STRUCT_TRAITS_MEMBER(codec)
81 IPC_STRUCT_TRAITS_END() 73 IPC_STRUCT_TRAITS_END()
82 74
83 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::SendRtcpFromRtpSenderData) 75 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::SendRtcpFromRtpSenderData)
84 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags) 76 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags)
85 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc) 77 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc)
86 IPC_STRUCT_TRAITS_MEMBER(c_name) 78 IPC_STRUCT_TRAITS_MEMBER(c_name)
79 IPC_STRUCT_TRAITS_MEMBER(ntp_seconds)
80 IPC_STRUCT_TRAITS_MEMBER(ntp_fraction)
81 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
87 IPC_STRUCT_TRAITS_END() 82 IPC_STRUCT_TRAITS_END()
88 83
89 IPC_STRUCT_TRAITS_BEGIN(media::cast::PacketEvent) 84 IPC_STRUCT_TRAITS_BEGIN(media::cast::PacketEvent)
90 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) 85 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
91 IPC_STRUCT_TRAITS_MEMBER(frame_id) 86 IPC_STRUCT_TRAITS_MEMBER(frame_id)
92 IPC_STRUCT_TRAITS_MEMBER(max_packet_id) 87 IPC_STRUCT_TRAITS_MEMBER(max_packet_id)
93 IPC_STRUCT_TRAITS_MEMBER(packet_id) 88 IPC_STRUCT_TRAITS_MEMBER(packet_id)
94 IPC_STRUCT_TRAITS_MEMBER(size) 89 IPC_STRUCT_TRAITS_MEMBER(size)
95 IPC_STRUCT_TRAITS_MEMBER(timestamp) 90 IPC_STRUCT_TRAITS_MEMBER(timestamp)
96 IPC_STRUCT_TRAITS_MEMBER(type) 91 IPC_STRUCT_TRAITS_MEMBER(type)
97 IPC_STRUCT_TRAITS_END() 92 IPC_STRUCT_TRAITS_END()
98 93
99 // Cast messages sent from the browser to the renderer. 94 // Cast messages sent from the browser to the renderer.
100 95
101 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, 96 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket,
102 int32 /* channel_id */, 97 int32 /* channel_id */,
103 media::cast::Packet /* packet */); 98 media::cast::Packet /* packet */);
104 99
105 IPC_MESSAGE_CONTROL2( 100 IPC_MESSAGE_CONTROL2(
106 CastMsg_NotifyStatusChange, 101 CastMsg_NotifyStatusChange,
107 int32 /* channel_id */, 102 int32 /* channel_id */,
108 media::cast::transport::CastTransportStatus /* status */); 103 media::cast::transport::CastTransportStatus /* status */);
109 104
110 IPC_MESSAGE_CONTROL5(
111 CastMsg_RtpStatistics,
112 int32 /* channel_id */,
113 bool /* audio */,
114 media::cast::transport::RtcpSenderInfo /* sender_info */,
115 base::TimeTicks /* time_sent */,
116 uint32 /* rtp_timestamp */);
117
118 IPC_MESSAGE_CONTROL2(CastMsg_RawEvents, 105 IPC_MESSAGE_CONTROL2(CastMsg_RawEvents,
119 int32 /* channel_id */, 106 int32 /* channel_id */,
120 std::vector<media::cast::PacketEvent> /* packet_events */); 107 std::vector<media::cast::PacketEvent> /* packet_events */);
121 108
122 // Cast messages sent from the renderer to the browser. 109 // Cast messages sent from the renderer to the browser.
123 110
124 IPC_MESSAGE_CONTROL2( 111 IPC_MESSAGE_CONTROL2(
125 CastHostMsg_InitializeAudio, 112 CastHostMsg_InitializeAudio,
126 int32 /*channel_id*/, 113 int32 /*channel_id*/,
127 media::cast::transport::CastTransportAudioConfig /*config*/) 114 media::cast::transport::CastTransportAudioConfig /*config*/)
128 115
129 IPC_MESSAGE_CONTROL2( 116 IPC_MESSAGE_CONTROL2(
130 CastHostMsg_InitializeVideo, 117 CastHostMsg_InitializeVideo,
131 int32 /*channel_id*/, 118 int32 /*channel_id*/,
132 media::cast::transport::CastTransportVideoConfig /*config*/) 119 media::cast::transport::CastTransportVideoConfig /*config*/)
133 120
134 IPC_MESSAGE_CONTROL3( 121 IPC_MESSAGE_CONTROL3(
135 CastHostMsg_InsertCodedAudioFrame, 122 CastHostMsg_InsertCodedAudioFrame,
136 int32 /* channel_id */, 123 int32 /* channel_id */,
137 media::cast::transport::EncodedAudioFrame /* audio_frame */, 124 media::cast::transport::EncodedAudioFrame /* audio_frame */,
138 base::TimeTicks /* recorded_time */) 125 base::TimeTicks /* recorded_time */)
139 126
140 IPC_MESSAGE_CONTROL3( 127 IPC_MESSAGE_CONTROL3(
141 CastHostMsg_InsertCodedVideoFrame, 128 CastHostMsg_InsertCodedVideoFrame,
142 int32 /* channel_id */, 129 int32 /* channel_id */,
143 media::cast::transport::EncodedVideoFrame /* video_frame */, 130 media::cast::transport::EncodedVideoFrame /* video_frame */,
144 base::TimeTicks /* recorded_time */) 131 base::TimeTicks /* recorded_time */)
145 132
146 IPC_MESSAGE_CONTROL4( 133 IPC_MESSAGE_CONTROL3(
147 CastHostMsg_SendRtcpFromRtpSender, 134 CastHostMsg_SendRtcpFromRtpSender,
148 int32 /* channel_id */, 135 int32 /* channel_id */,
149 media::cast::transport::SendRtcpFromRtpSenderData /* flags, ssrc, name */, 136 media::cast::transport::SendRtcpFromRtpSenderData /* data */,
150 media::cast::transport::RtcpSenderInfo /* sender_info */,
151 media::cast::transport::RtcpDlrrReportBlock /* dlrr */) 137 media::cast::transport::RtcpDlrrReportBlock /* dlrr */)
152 138
153 IPC_MESSAGE_CONTROL3( 139 IPC_MESSAGE_CONTROL3(
154 CastHostMsg_ResendPackets, 140 CastHostMsg_ResendPackets,
155 int32 /* channel_id */, 141 int32 /* channel_id */,
156 bool /* is_audio */, 142 bool /* is_audio */,
157 media::cast::MissingFramesAndPacketsMap /* missing_packets */) 143 media::cast::MissingFramesAndPacketsMap /* missing_packets */)
158 144
159 IPC_MESSAGE_CONTROL2( 145 IPC_MESSAGE_CONTROL2(
160 CastHostMsg_New, 146 CastHostMsg_New,
161 int32 /* channel_id */, 147 int32 /* channel_id */,
162 net::IPEndPoint /*remote_end_point*/); 148 net::IPEndPoint /*remote_end_point*/);
163 149
164 IPC_MESSAGE_CONTROL1( 150 IPC_MESSAGE_CONTROL1(
165 CastHostMsg_Delete, 151 CastHostMsg_Delete,
166 int32 /* channel_id */); 152 int32 /* channel_id */);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698