OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // Called on new RTP stats creation. | 89 // Called on new RTP stats creation. |
90 virtual void RegisterRtpStatisticsCallback( | 90 virtual void RegisterRtpStatisticsCallback( |
91 StreamDataCountersCallback* callback) = 0; | 91 StreamDataCountersCallback* callback) = 0; |
92 | 92 |
93 // TODO(danilchap): Make pure virtual when all implmentations of the | 93 // TODO(danilchap): Make pure virtual when all implmentations of the |
94 // ReceiveStatistics interface will implement it. | 94 // ReceiveStatistics interface will implement it. |
95 std::vector<rtcp::ReportBlock> RtcpReportBlocks(size_t max_blocks) override; | 95 std::vector<rtcp::ReportBlock> RtcpReportBlocks(size_t max_blocks) override; |
96 }; | 96 }; |
97 | 97 |
98 class NullReceiveStatistics : public ReceiveStatistics { | |
99 public: | |
100 void IncomingPacket(const RTPHeader& rtp_header, | |
101 size_t packet_length, | |
102 bool retransmitted) override; | |
103 void FecPacketReceived(const RTPHeader& header, | |
104 size_t packet_length) override; | |
105 StatisticianMap GetActiveStatisticians() const override; | |
106 StreamStatistician* GetStatistician(uint32_t ssrc) const override; | |
107 void SetMaxReorderingThreshold(int max_reordering_threshold) override; | |
108 void RegisterRtcpStatisticsCallback( | |
109 RtcpStatisticsCallback* callback) override; | |
110 void RegisterRtpStatisticsCallback( | |
111 StreamDataCountersCallback* callback) override; | |
112 }; | |
113 | |
114 } // namespace webrtc | 98 } // namespace webrtc |
115 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RECEIVE_STATISTICS_H_ | 99 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RECEIVE_STATISTICS_H_ |
OLD | NEW |