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

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

Issue 1540383002: [rtp_rtcp] ReportBlockInformation cleaned and moved out of the rtcp_receiver_help. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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
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
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_
13 13
14 #include <map> 14 #include <map>
15 #include <set> 15 #include <set>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/base/thread_annotations.h" 18 #include "webrtc/base/thread_annotations.h"
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
20 #include "webrtc/modules/rtp_rtcp/source/report_block_information.h"
20 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h" 21 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h"
21 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" 22 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h"
22 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" 23 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
23 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" 24 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h"
24 #include "webrtc/typedefs.h" 25 #include "webrtc/typedefs.h"
25 26
26 namespace webrtc { 27 namespace webrtc {
27 class ModuleRtpRtcpImpl; 28 class ModuleRtpRtcpImpl;
28 29
29 class RTCPReceiver : public TMMBRHelp 30 class RTCPReceiver : public TMMBRHelp
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 249
249 void HandleTransportFeedback( 250 void HandleTransportFeedback(
250 RTCPUtility::RTCPParserV2* rtcp_parser, 251 RTCPUtility::RTCPParserV2* rtcp_parser,
251 RTCPHelp::RTCPPacketInformation* rtcp_packet_information) 252 RTCPHelp::RTCPPacketInformation* rtcp_packet_information)
252 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 253 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
253 254
254 private: 255 private:
255 typedef std::map<uint32_t, RTCPHelp::RTCPReceiveInformation*> 256 typedef std::map<uint32_t, RTCPHelp::RTCPReceiveInformation*>
256 ReceivedInfoMap; 257 ReceivedInfoMap;
257 // RTCP report block information mapped by remote SSRC. 258 // RTCP report block information mapped by remote SSRC.
258 typedef std::map<uint32_t, RTCPHelp::RTCPReportBlockInformation*> 259 typedef std::map<uint32_t, rtcp::ReportBlockInformation*> ReportBlockInfoMap;
259 ReportBlockInfoMap;
260 // RTCP report block information map mapped by source SSRC. 260 // RTCP report block information map mapped by source SSRC.
261 typedef std::map<uint32_t, ReportBlockInfoMap> ReportBlockMap; 261 typedef std::map<uint32_t, ReportBlockInfoMap> ReportBlockMap;
262 262
263 RTCPHelp::RTCPReportBlockInformation* CreateOrGetReportBlockInformation( 263 rtcp::ReportBlockInformation* CreateOrGetReportBlockInformation(
264 uint32_t remote_ssrc, uint32_t source_ssrc) 264 uint32_t remote_ssrc,
265 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 265 uint32_t source_ssrc)
266 RTCPHelp::RTCPReportBlockInformation* GetReportBlockInformation( 266 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
267 uint32_t remote_ssrc, uint32_t source_ssrc) const 267 const rtcp::ReportBlockInformation* GetReportBlockInformation(
268 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 268 uint32_t remote_ssrc,
269 uint32_t source_ssrc) const
270 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
269 271
270 Clock* const _clock; 272 Clock* const _clock;
271 const bool receiver_only_; 273 const bool receiver_only_;
272 RtcpMode _method; 274 RtcpMode _method;
273 int64_t _lastReceived; 275 int64_t _lastReceived;
274 ModuleRtpRtcpImpl& _rtpRtcp; 276 ModuleRtpRtcpImpl& _rtpRtcp;
275 277
276 CriticalSectionWrapper* _criticalSectionFeedbacks; 278 CriticalSectionWrapper* _criticalSectionFeedbacks;
277 RtcpBandwidthObserver* const _cbRtcpBandwidthObserver; 279 RtcpBandwidthObserver* const _cbRtcpBandwidthObserver;
278 RtcpIntraFrameObserver* const _cbRtcpIntraFrameObserver; 280 RtcpIntraFrameObserver* const _cbRtcpIntraFrameObserver;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; 319 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_;
318 RtcpPacketTypeCounter packet_type_counter_; 320 RtcpPacketTypeCounter packet_type_counter_;
319 321
320 RTCPUtility::NackStats nack_stats_; 322 RTCPUtility::NackStats nack_stats_;
321 323
322 size_t num_skipped_packets_; 324 size_t num_skipped_packets_;
323 int64_t last_skipped_packets_warning_; 325 int64_t last_skipped_packets_warning_;
324 }; 326 };
325 } // namespace webrtc 327 } // namespace webrtc
326 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ 328 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698