Move RtcpReportBlocks implementation from ReceiveStatistics to ReceiveStatisticsImpl
BUG=webrtc:8016 Review-Url: https://codereview.webrtc.org/2997783002 Cr-Commit-Position: refs/heads/master@{#19327}
This commit is contained in:
@ -89,10 +89,6 @@ class ReceiveStatistics : public ReceiveStatisticsProvider {
|
||||
// Called on new RTP stats creation.
|
||||
virtual void RegisterRtpStatisticsCallback(
|
||||
StreamDataCountersCallback* callback) = 0;
|
||||
|
||||
// TODO(danilchap): Make pure virtual when all implmentations of the
|
||||
// ReceiveStatistics interface will implement it.
|
||||
std::vector<rtcp::ReportBlock> RtcpReportBlocks(size_t max_blocks) override;
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
@ -494,7 +494,7 @@ void ReceiveStatisticsImpl::DataCountersUpdated(const StreamDataCounters& stats,
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<rtcp::ReportBlock> ReceiveStatistics::RtcpReportBlocks(
|
||||
std::vector<rtcp::ReportBlock> ReceiveStatisticsImpl::RtcpReportBlocks(
|
||||
size_t max_blocks) {
|
||||
StatisticianMap statisticians = GetActiveStatisticians();
|
||||
std::vector<rtcp::ReportBlock> result;
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/rtc_base/criticalsection.h"
|
||||
#include "webrtc/rtc_base/rate_statistics.h"
|
||||
@ -97,6 +98,9 @@ class ReceiveStatisticsImpl : public ReceiveStatistics,
|
||||
|
||||
~ReceiveStatisticsImpl();
|
||||
|
||||
// Implement ReceiveStatisticsProvider.
|
||||
std::vector<rtcp::ReportBlock> RtcpReportBlocks(size_t max_blocks) override;
|
||||
|
||||
// Implement ReceiveStatistics.
|
||||
void IncomingPacket(const RTPHeader& header,
|
||||
size_t packet_length,
|
||||
|
||||
Reference in New Issue
Block a user