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

Side by Side Diff: webrtc/modules/rtp_rtcp/include/receive_statistics.h

Issue 2988143002: Remove NullReceiveStatistics (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698