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

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

Issue 1373903003: Unify newapi::RtcpMode and RTCPMethod. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: ehm, compile the code Created 5 years, 2 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
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 RTCPReceiver(Clock* clock, 32 RTCPReceiver(Clock* clock,
33 bool receiver_only, 33 bool receiver_only,
34 RtcpPacketTypeCounterObserver* packet_type_counter_observer, 34 RtcpPacketTypeCounterObserver* packet_type_counter_observer,
35 RtcpBandwidthObserver* rtcp_bandwidth_observer, 35 RtcpBandwidthObserver* rtcp_bandwidth_observer,
36 RtcpIntraFrameObserver* rtcp_intra_frame_observer, 36 RtcpIntraFrameObserver* rtcp_intra_frame_observer,
37 TransportFeedbackObserver* transport_feedback_observer, 37 TransportFeedbackObserver* transport_feedback_observer,
38 ModuleRtpRtcpImpl* owner); 38 ModuleRtpRtcpImpl* owner);
39 virtual ~RTCPReceiver(); 39 virtual ~RTCPReceiver();
40 40
41 RTCPMethod Status() const; 41 RtcpMode Status() const;
42 void SetRTCPStatus(RTCPMethod method); 42 void SetRTCPStatus(RtcpMode method);
43 43
44 int64_t LastReceived(); 44 int64_t LastReceived();
45 int64_t LastReceivedReceiverReport() const; 45 int64_t LastReceivedReceiverReport() const;
46 46
47 void SetSsrcs(uint32_t main_ssrc, 47 void SetSsrcs(uint32_t main_ssrc,
48 const std::set<uint32_t>& registered_ssrcs); 48 const std::set<uint32_t>& registered_ssrcs);
49 void SetRelaySSRC(uint32_t ssrc); 49 void SetRelaySSRC(uint32_t ssrc);
50 void SetRemoteSSRC(uint32_t ssrc); 50 void SetRemoteSSRC(uint32_t ssrc);
51 uint32_t RemoteSSRC() const; 51 uint32_t RemoteSSRC() const;
52 52
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 232
233 RTCPHelp::RTCPReportBlockInformation* CreateOrGetReportBlockInformation( 233 RTCPHelp::RTCPReportBlockInformation* CreateOrGetReportBlockInformation(
234 uint32_t remote_ssrc, uint32_t source_ssrc) 234 uint32_t remote_ssrc, uint32_t source_ssrc)
235 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 235 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
236 RTCPHelp::RTCPReportBlockInformation* GetReportBlockInformation( 236 RTCPHelp::RTCPReportBlockInformation* GetReportBlockInformation(
237 uint32_t remote_ssrc, uint32_t source_ssrc) const 237 uint32_t remote_ssrc, uint32_t source_ssrc) const
238 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 238 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
239 239
240 Clock* const _clock; 240 Clock* const _clock;
241 const bool receiver_only_; 241 const bool receiver_only_;
242 RTCPMethod _method; 242 RtcpMode _method;
243 int64_t _lastReceived; 243 int64_t _lastReceived;
244 ModuleRtpRtcpImpl& _rtpRtcp; 244 ModuleRtpRtcpImpl& _rtpRtcp;
245 245
246 CriticalSectionWrapper* _criticalSectionFeedbacks; 246 CriticalSectionWrapper* _criticalSectionFeedbacks;
247 RtcpBandwidthObserver* const _cbRtcpBandwidthObserver; 247 RtcpBandwidthObserver* const _cbRtcpBandwidthObserver;
248 RtcpIntraFrameObserver* const _cbRtcpIntraFrameObserver; 248 RtcpIntraFrameObserver* const _cbRtcpIntraFrameObserver;
249 TransportFeedbackObserver* const _cbTransportFeedbackObserver; 249 TransportFeedbackObserver* const _cbTransportFeedbackObserver;
250 250
251 CriticalSectionWrapper* _criticalSectionRTCPReceiver; 251 CriticalSectionWrapper* _criticalSectionRTCPReceiver;
252 uint32_t main_ssrc_; 252 uint32_t main_ssrc_;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; 287 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_;
288 RtcpPacketTypeCounter packet_type_counter_; 288 RtcpPacketTypeCounter packet_type_counter_;
289 289
290 RTCPUtility::NackStats nack_stats_; 290 RTCPUtility::NackStats nack_stats_;
291 291
292 size_t num_skipped_packets_; 292 size_t num_skipped_packets_;
293 int64_t last_skipped_packets_warning_; 293 int64_t last_skipped_packets_warning_;
294 }; 294 };
295 } // namespace webrtc 295 } // namespace webrtc
296 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ 296 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_format_remb_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698