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

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

Issue 1213603002: Remove ResetStatistics from RTP feedback. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: comment + rebase Created 5 years, 5 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/interface/rtp_rtcp.h » ('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 17 matching lines...) Expand all
28 virtual bool GetStatistics(RtcpStatistics* statistics, bool reset) = 0; 28 virtual bool GetStatistics(RtcpStatistics* statistics, bool reset) = 0;
29 virtual void GetDataCounters(size_t* bytes_received, 29 virtual void GetDataCounters(size_t* bytes_received,
30 uint32_t* packets_received) const = 0; 30 uint32_t* packets_received) const = 0;
31 31
32 // Gets received stream data counters (includes reset counter values). 32 // Gets received stream data counters (includes reset counter values).
33 virtual void GetReceiveStreamDataCounters( 33 virtual void GetReceiveStreamDataCounters(
34 StreamDataCounters* data_counters) const = 0; 34 StreamDataCounters* data_counters) const = 0;
35 35
36 virtual uint32_t BitrateReceived() const = 0; 36 virtual uint32_t BitrateReceived() const = 0;
37 37
38 // Resets all statistics.
39 virtual void ResetStatistics() = 0;
40
41 // Returns true if the packet with RTP header |header| is likely to be a 38 // Returns true if the packet with RTP header |header| is likely to be a
42 // retransmitted packet, false otherwise. 39 // retransmitted packet, false otherwise.
43 virtual bool IsRetransmitOfOldPacket(const RTPHeader& header, 40 virtual bool IsRetransmitOfOldPacket(const RTPHeader& header,
44 int64_t min_rtt) const = 0; 41 int64_t min_rtt) const = 0;
45 42
46 // Returns true if |sequence_number| is received in order, false otherwise. 43 // Returns true if |sequence_number| is received in order, false otherwise.
47 virtual bool IsPacketInOrder(uint16_t sequence_number) const = 0; 44 virtual bool IsPacketInOrder(uint16_t sequence_number) const = 0;
48 }; 45 };
49 46
50 typedef std::map<uint32_t, StreamStatistician*> StatisticianMap; 47 typedef std::map<uint32_t, StreamStatistician*> StatisticianMap;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 int32_t Process() override; 93 int32_t Process() override;
97 void SetMaxReorderingThreshold(int max_reordering_threshold) override; 94 void SetMaxReorderingThreshold(int max_reordering_threshold) override;
98 void RegisterRtcpStatisticsCallback( 95 void RegisterRtcpStatisticsCallback(
99 RtcpStatisticsCallback* callback) override; 96 RtcpStatisticsCallback* callback) override;
100 void RegisterRtpStatisticsCallback( 97 void RegisterRtpStatisticsCallback(
101 StreamDataCountersCallback* callback) override; 98 StreamDataCountersCallback* callback) override;
102 }; 99 };
103 100
104 } // namespace webrtc 101 } // namespace webrtc
105 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RECEIVE_STATISTICS_H_ 102 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RECEIVE_STATISTICS_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698