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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_receiver.h

Issue 2337283003: Merge RtcpReceive::Handle<Packet>Item functions into Handle<Packet> (Closed)
Patch Set: Rebase nits Created 4 years, 3 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 | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 void HandleReportBlock(const RTCPUtility::RTCPPacket& rtcpPacket, 145 void HandleReportBlock(const RTCPUtility::RTCPPacket& rtcpPacket,
146 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation, 146 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation,
147 uint32_t remoteSSRC) 147 uint32_t remoteSSRC)
148 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 148 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
149 149
150 void HandleSDES(RTCPUtility::RTCPParserV2& rtcpParser, 150 void HandleSDES(RTCPUtility::RTCPParserV2& rtcpParser,
151 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 151 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
152 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 152 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
153 153
154 void HandleSDESChunk(RTCPUtility::RTCPParserV2& rtcpParser)
155 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
156
157 void HandleXrHeader(RTCPUtility::RTCPParserV2& parser, 154 void HandleXrHeader(RTCPUtility::RTCPParserV2& parser,
158 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 155 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
159 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 156 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
160 157
161 void HandleXrReceiveReferenceTime( 158 void HandleXrReceiveReferenceTime(
162 RTCPUtility::RTCPParserV2& parser, 159 RTCPUtility::RTCPParserV2& parser,
163 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 160 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
164 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 161 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
165 162
166 void HandleXrDlrrReportBlock( 163 void HandleXrDlrrReportBlock(
167 RTCPUtility::RTCPParserV2& parser, 164 RTCPUtility::RTCPParserV2& parser,
168 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 165 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
169 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 166 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
170 167
171 void HandleXrDlrrReportBlockItem(
172 const RTCPUtility::RTCPPacket& packet,
173 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
174 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
175
176 void HandleNACK(RTCPUtility::RTCPParserV2& rtcpParser, 168 void HandleNACK(RTCPUtility::RTCPParserV2& rtcpParser,
177 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 169 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
178 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 170 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
179 171
180 void HandleNACKItem(const RTCPUtility::RTCPPacket& rtcpPacket,
181 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
182 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
183
184 void HandleBYE(RTCPUtility::RTCPParserV2& rtcpParser) 172 void HandleBYE(RTCPUtility::RTCPParserV2& rtcpParser)
185 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 173 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
186 174
187 void HandlePLI(RTCPUtility::RTCPParserV2& rtcpParser, 175 void HandlePLI(RTCPUtility::RTCPParserV2& rtcpParser,
188 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 176 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
189 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 177 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
190 178
191 void HandleSLI(RTCPUtility::RTCPParserV2& rtcpParser, 179 void HandleSLI(RTCPUtility::RTCPParserV2& rtcpParser,
192 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 180 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
193 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 181 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
194 182
195 void HandleSLIItem(const RTCPUtility::RTCPPacket& rtcpPacket,
196 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
197 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
198
199 void HandleRPSI(RTCPUtility::RTCPParserV2& rtcpParser, 183 void HandleRPSI(RTCPUtility::RTCPParserV2& rtcpParser,
200 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 184 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
201 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 185 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
202 186
203 void HandlePsfbApp(RTCPUtility::RTCPParserV2& rtcpParser, 187 void HandlePsfbApp(RTCPUtility::RTCPParserV2& rtcpParser,
204 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 188 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
205 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 189 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
206 190
207 void HandleREMBItem(RTCPUtility::RTCPParserV2& rtcpParser,
208 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
209 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
210
211 void HandleTMMBR(RTCPUtility::RTCPParserV2& rtcpParser, 191 void HandleTMMBR(RTCPUtility::RTCPParserV2& rtcpParser,
212 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 192 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
213 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 193 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
214 194
215 void HandleTMMBRItem(RTCPHelp::RTCPReceiveInformation& receiveInfo,
216 const RTCPUtility::RTCPPacket& rtcpPacket,
217 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation,
218 uint32_t senderSSRC)
219 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
220
221 void HandleTMMBN(RTCPUtility::RTCPParserV2& rtcpParser, 195 void HandleTMMBN(RTCPUtility::RTCPParserV2& rtcpParser,
222 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 196 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
223 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 197 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
224 198
225 void HandleSR_REQ(RTCPUtility::RTCPParserV2& rtcpParser, 199 void HandleSR_REQ(RTCPUtility::RTCPParserV2& rtcpParser,
226 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 200 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
227 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 201 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
228 202
229 void HandleTMMBNItem(RTCPHelp::RTCPReceiveInformation& receiveInfo,
230 const RTCPUtility::RTCPPacket& rtcpPacket)
231 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
232
233 void HandleFIR(RTCPUtility::RTCPParserV2& rtcpParser, 203 void HandleFIR(RTCPUtility::RTCPParserV2& rtcpParser,
234 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 204 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
235 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 205 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
236 206
237 void HandleFIRItem(RTCPHelp::RTCPReceiveInformation* receiveInfo,
238 const RTCPUtility::RTCPPacket& rtcpPacket,
239 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
240 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
241
242 void HandleTransportFeedback( 207 void HandleTransportFeedback(
243 RTCPUtility::RTCPParserV2* rtcp_parser, 208 RTCPUtility::RTCPParserV2* rtcp_parser,
244 RTCPHelp::RTCPPacketInformation* rtcp_packet_information) 209 RTCPHelp::RTCPPacketInformation* rtcp_packet_information)
245 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 210 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
246 211
247 RTCPHelp::RTCPReportBlockInformation* CreateOrGetReportBlockInformation( 212 RTCPHelp::RTCPReportBlockInformation* CreateOrGetReportBlockInformation(
248 uint32_t remote_ssrc, 213 uint32_t remote_ssrc,
249 uint32_t source_ssrc) 214 uint32_t source_ssrc)
250 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 215 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
251 RTCPHelp::RTCPReportBlockInformation* GetReportBlockInformation( 216 RTCPHelp::RTCPReportBlockInformation* GetReportBlockInformation(
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; 266 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_;
302 RtcpPacketTypeCounter packet_type_counter_; 267 RtcpPacketTypeCounter packet_type_counter_;
303 268
304 RTCPUtility::NackStats nack_stats_; 269 RTCPUtility::NackStats nack_stats_;
305 270
306 size_t num_skipped_packets_; 271 size_t num_skipped_packets_;
307 int64_t last_skipped_packets_warning_; 272 int64_t last_skipped_packets_warning_;
308 }; 273 };
309 } // namespace webrtc 274 } // namespace webrtc
310 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ 275 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698