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

Unified Diff: webrtc/api/stats/rtcstats_objects.h

Issue 2452043002: RTCInboundRTPStreamStats added. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/api/stats/rtcstats_objects.h
diff --git a/webrtc/api/stats/rtcstats_objects.h b/webrtc/api/stats/rtcstats_objects.h
index 65a70cef7a1ea63a610fb4b504d3b2e2e8500eec..bcb59f9dbaa73819a12e54e5c0e7575c4764ebcd 100644
--- a/webrtc/api/stats/rtcstats_objects.h
+++ b/webrtc/api/stats/rtcstats_objects.h
@@ -236,6 +236,46 @@ class RTCRTPStreamStats : public RTCStats {
RTCRTPStreamStats(std::string&& id, int64_t timestamp_us);
};
+// https://w3c.github.io/webrtc-stats/#inboundrtpstats-dict*
+// TODO(hbos): Finish implementation and support the remote case
+// |is_remote = true|. Tracking bug crbug.com/657855
+class RTCInboundRTPStreamStats final : public RTCRTPStreamStats {
+ public:
+ WEBRTC_RTCSTATS_DECL();
+
+ RTCInboundRTPStreamStats(const std::string& id, int64_t timestamp_us);
+ RTCInboundRTPStreamStats(std::string&& id, int64_t timestamp_us);
+ RTCInboundRTPStreamStats(const RTCInboundRTPStreamStats& other);
+ ~RTCInboundRTPStreamStats() override;
+
+ RTCStatsMember<uint32_t> packets_received;
+ RTCStatsMember<uint64_t> bytes_received;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<uint32_t> packets_lost;
+ RTCStatsMember<double> jitter;
+ RTCStatsMember<double> fraction_lost;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<uint32_t> packets_discarded;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<uint32_t> packets_repaired;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<uint32_t> burst_packets_lost;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<uint32_t> burst_packets_discarded;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<uint32_t> burst_loss_count;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<uint32_t> burst_discard_count;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<double> burst_loss_rate;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<double> burst_discard_rate;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<double> gap_loss_rate;
+ // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
+ RTCStatsMember<double> gap_discard_rate;
+};
+
// https://w3c.github.io/webrtc-stats/#outboundrtpstats-dict*
// TODO(hbos): Finish implementation and support the remote case
// |is_remote = true|. Tracking bug crbug.com/657856

Powered by Google App Engine
This is Rietveld 408576698