| OLD | NEW |
| 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_RTP_RTCP_IMPL_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ |
| 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ |
| 13 | 13 |
| 14 #include <list> | 14 #include <list> |
| 15 #include <set> | 15 #include <set> |
| 16 #include <utility> | 16 #include <utility> |
| 17 #include <vector> | 17 #include <vector> |
| 18 | 18 |
| 19 #include "webrtc/base/criticalsection.h" | 19 #include "webrtc/base/criticalsection.h" |
| 20 #include "webrtc/base/gtest_prod_util.h" | 20 #include "webrtc/base/gtest_prod_util.h" |
| 21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
| 22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 22 #include "webrtc/modules/rtp_rtcp/source/packet_loss_stats.h" | 23 #include "webrtc/modules/rtp_rtcp/source/packet_loss_stats.h" |
| 23 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h" | 24 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h" |
| 24 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" |
| 25 #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h" |
| 26 | 27 |
| 27 namespace webrtc { | 28 namespace webrtc { |
| 28 | 29 |
| 29 class ModuleRtpRtcpImpl : public RtpRtcp { | 30 class ModuleRtpRtcpImpl : public RtpRtcp { |
| 30 public: | 31 public: |
| 31 explicit ModuleRtpRtcpImpl(const RtpRtcp::Configuration& configuration); | 32 explicit ModuleRtpRtcpImpl(const RtpRtcp::Configuration& configuration); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 313 |
| 313 // Good state of RTP receiver inform sender. | 314 // Good state of RTP receiver inform sender. |
| 314 int32_t SendRTCPReferencePictureSelection(uint64_t picture_id) override; | 315 int32_t SendRTCPReferencePictureSelection(uint64_t picture_id) override; |
| 315 | 316 |
| 316 void RegisterSendChannelRtpStatisticsCallback( | 317 void RegisterSendChannelRtpStatisticsCallback( |
| 317 StreamDataCountersCallback* callback) override; | 318 StreamDataCountersCallback* callback) override; |
| 318 StreamDataCountersCallback* GetSendChannelRtpStatisticsCallback() | 319 StreamDataCountersCallback* GetSendChannelRtpStatisticsCallback() |
| 319 const override; | 320 const override; |
| 320 | 321 |
| 321 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers); | 322 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers); |
| 323 void OnReceivedRtcpReportBlocks(const ReportBlockList& report_blocks); |
| 322 | 324 |
| 323 void OnRequestSendReport(); | 325 void OnRequestSendReport(); |
| 324 | 326 |
| 325 protected: | 327 protected: |
| 326 bool UpdateRTCPReceiveInformationTimers(); | 328 bool UpdateRTCPReceiveInformationTimers(); |
| 327 | 329 |
| 328 RTPSender rtp_sender_; | 330 RTPSender rtp_sender_; |
| 329 | 331 |
| 330 RTCPSender rtcp_sender_; | 332 RTCPSender rtcp_sender_; |
| 331 RTCPReceiver rtcp_receiver_; | 333 RTCPReceiver rtcp_receiver_; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 PacketLossStats receive_loss_stats_; | 367 PacketLossStats receive_loss_stats_; |
| 366 | 368 |
| 367 // The processed RTT from RtcpRttStats. | 369 // The processed RTT from RtcpRttStats. |
| 368 rtc::CriticalSection critical_section_rtt_; | 370 rtc::CriticalSection critical_section_rtt_; |
| 369 int64_t rtt_ms_; | 371 int64_t rtt_ms_; |
| 370 }; | 372 }; |
| 371 | 373 |
| 372 } // namespace webrtc | 374 } // namespace webrtc |
| 373 | 375 |
| 374 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ | 376 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ |
| OLD | NEW |