Index: webrtc/stats/rtcstats_objects.cc |
diff --git a/webrtc/stats/rtcstats_objects.cc b/webrtc/stats/rtcstats_objects.cc |
index 3d1d369407811e48a1fb3d6887fea63781f2f4cd..2523e36a88731e72a23f3858a50ddf760d86b5b9 100644 |
--- a/webrtc/stats/rtcstats_objects.cc |
+++ b/webrtc/stats/rtcstats_objects.cc |
@@ -347,6 +347,72 @@ RTCRTPStreamStats::~RTCRTPStreamStats() { |
} |
WEBRTC_RTCSTATS_IMPL( |
+ RTCInboundRTPStreamStats, RTCRTPStreamStats, "inbound-rtp", |
+ &packets_received, |
+ &bytes_received, |
+ &packets_lost, |
+ &jitter, |
+ &fraction_lost, |
+ &packets_discarded, |
+ &packets_repaired, |
+ &burst_packets_lost, |
+ &burst_packets_discarded, |
+ &burst_loss_count, |
+ &burst_discard_count, |
+ &burst_loss_rate, |
+ &burst_discard_rate, |
+ &gap_loss_rate, |
+ &gap_discard_rate); |
+ |
+RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( |
+ const std::string& id, int64_t timestamp_us) |
+ : RTCInboundRTPStreamStats(std::string(id), timestamp_us) { |
+} |
+ |
+RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( |
+ std::string&& id, int64_t timestamp_us) |
+ : RTCRTPStreamStats(std::move(id), timestamp_us), |
+ packets_received("packetsReceived"), |
+ bytes_received("bytesReceived"), |
+ packets_lost("packetsLost"), |
+ jitter("jitter"), |
+ fraction_lost("fractionLost"), |
+ packets_discarded("packetsDiscarded"), |
+ packets_repaired("packetsRepaired"), |
+ burst_packets_lost("burstPacketsLost"), |
+ burst_packets_discarded("burstPacketsDiscarded"), |
+ burst_loss_count("burstLossCount"), |
+ burst_discard_count("burstDiscardCount"), |
+ burst_loss_rate("burstLossRate"), |
+ burst_discard_rate("burstDiscardRate"), |
+ gap_loss_rate("gapLossRate"), |
+ gap_discard_rate("gapDiscardRate") { |
+} |
+ |
+RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( |
+ const RTCInboundRTPStreamStats& other) |
+ : RTCRTPStreamStats(other), |
+ packets_received(other.packets_received), |
+ bytes_received(other.bytes_received), |
+ packets_lost(other.packets_lost), |
+ jitter(other.jitter), |
+ fraction_lost(other.fraction_lost), |
+ packets_discarded(other.packets_discarded), |
+ packets_repaired(other.packets_repaired), |
+ burst_packets_lost(other.burst_packets_lost), |
+ burst_packets_discarded(other.burst_packets_discarded), |
+ burst_loss_count(other.burst_loss_count), |
+ burst_discard_count(other.burst_discard_count), |
+ burst_loss_rate(other.burst_loss_rate), |
+ burst_discard_rate(other.burst_discard_rate), |
+ gap_loss_rate(other.gap_loss_rate), |
+ gap_discard_rate(other.gap_discard_rate) { |
+} |
+ |
+RTCInboundRTPStreamStats::~RTCInboundRTPStreamStats() { |
+} |
+ |
+WEBRTC_RTCSTATS_IMPL( |
RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp", |
&packets_sent, |
&bytes_sent, |