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 |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
305 const std::vector<uint16_t>& nack_sequence_numbers) override; | 305 const std::vector<uint16_t>& nack_sequence_numbers) override; |
306 void OnReceivedRtcpReportBlocks( | 306 void OnReceivedRtcpReportBlocks( |
307 const ReportBlockList& report_blocks) override; | 307 const ReportBlockList& report_blocks) override; |
308 void OnRequestSendReport() override; | 308 void OnRequestSendReport() override; |
309 | 309 |
310 void SetVideoBitrateAllocation(const BitrateAllocation& bitrate) override; | 310 void SetVideoBitrateAllocation(const BitrateAllocation& bitrate) override; |
311 | 311 |
312 protected: | 312 protected: |
313 bool UpdateRTCPReceiveInformationTimers(); | 313 bool UpdateRTCPReceiveInformationTimers(); |
314 | 314 |
315 RTPSender* rtp_sender() { return &rtp_sender_; } | |
316 const RTPSender* rtp_sender() const { return &rtp_sender_; } | |
317 | |
318 RTCPSender* rtcp_sender() { return &rtcp_sender_; } | |
319 const RTCPSender* rtcp_sender() const { return &rtcp_sender_; } | |
320 | |
321 RTCPReceiver* rtcp_receiver() { return &rtcp_receiver_; } | |
322 const RTCPReceiver* rtcp_receiver() const { return &rtcp_receiver_; } | |
323 | |
324 Clock* clock() { return clock_; } | |
danilchap
2017/03/13 12:57:19
since Clock interface has only const functions, it
nisse-webrtc
2017/03/13 14:05:46
Done. Made the |clock_| member const const as well
| |
325 | |
326 // TODO(nisse): Demote all member variables to private, as soon as | |
327 // downstream code is updated to use the above accessor methods. | |
315 RTPSender rtp_sender_; | 328 RTPSender rtp_sender_; |
316 | 329 |
317 RTCPSender rtcp_sender_; | 330 RTCPSender rtcp_sender_; |
318 RTCPReceiver rtcp_receiver_; | 331 RTCPReceiver rtcp_receiver_; |
319 | 332 |
320 Clock* clock_; | 333 Clock* clock_; |
321 | 334 |
322 private: | 335 private: |
323 FRIEND_TEST_ALL_PREFIXES(RtpRtcpImplTest, Rtt); | 336 FRIEND_TEST_ALL_PREFIXES(RtpRtcpImplTest, Rtt); |
324 FRIEND_TEST_ALL_PREFIXES(RtpRtcpImplTest, RttForReceiverOnly); | 337 FRIEND_TEST_ALL_PREFIXES(RtpRtcpImplTest, RttForReceiverOnly); |
(...skipping 26 matching lines...) Expand all Loading... | |
351 PacketLossStats receive_loss_stats_; | 364 PacketLossStats receive_loss_stats_; |
352 | 365 |
353 // The processed RTT from RtcpRttStats. | 366 // The processed RTT from RtcpRttStats. |
354 rtc::CriticalSection critical_section_rtt_; | 367 rtc::CriticalSection critical_section_rtt_; |
355 int64_t rtt_ms_; | 368 int64_t rtt_ms_; |
356 }; | 369 }; |
357 | 370 |
358 } // namespace webrtc | 371 } // namespace webrtc |
359 | 372 |
360 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ | 373 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ |
OLD | NEW |