| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 RTCStatsMember<uint32_t> pli_count; | 229 RTCStatsMember<uint32_t> pli_count; |
| 230 RTCStatsMember<uint32_t> nack_count; | 230 RTCStatsMember<uint32_t> nack_count; |
| 231 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657854 | 231 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657854 |
| 232 RTCStatsMember<uint32_t> sli_count; | 232 RTCStatsMember<uint32_t> sli_count; |
| 233 | 233 |
| 234 protected: | 234 protected: |
| 235 RTCRTPStreamStats(const std::string& id, int64_t timestamp_us); | 235 RTCRTPStreamStats(const std::string& id, int64_t timestamp_us); |
| 236 RTCRTPStreamStats(std::string&& id, int64_t timestamp_us); | 236 RTCRTPStreamStats(std::string&& id, int64_t timestamp_us); |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 // https://w3c.github.io/webrtc-stats/#inboundrtpstats-dict* |
| 240 // TODO(hbos): Finish implementation and support the remote case |
| 241 // |is_remote = true|. Tracking bug crbug.com/657855 |
| 242 class RTCInboundRTPStreamStats final : public RTCRTPStreamStats { |
| 243 public: |
| 244 WEBRTC_RTCSTATS_DECL(); |
| 245 |
| 246 RTCInboundRTPStreamStats(const std::string& id, int64_t timestamp_us); |
| 247 RTCInboundRTPStreamStats(std::string&& id, int64_t timestamp_us); |
| 248 RTCInboundRTPStreamStats(const RTCInboundRTPStreamStats& other); |
| 249 ~RTCInboundRTPStreamStats() override; |
| 250 |
| 251 RTCStatsMember<uint32_t> packets_received; |
| 252 RTCStatsMember<uint64_t> bytes_received; |
| 253 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 254 RTCStatsMember<uint32_t> packets_lost; |
| 255 RTCStatsMember<double> jitter; |
| 256 RTCStatsMember<double> fraction_lost; |
| 257 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 258 RTCStatsMember<uint32_t> packets_discarded; |
| 259 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 260 RTCStatsMember<uint32_t> packets_repaired; |
| 261 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 262 RTCStatsMember<uint32_t> burst_packets_lost; |
| 263 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 264 RTCStatsMember<uint32_t> burst_packets_discarded; |
| 265 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 266 RTCStatsMember<uint32_t> burst_loss_count; |
| 267 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 268 RTCStatsMember<uint32_t> burst_discard_count; |
| 269 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 270 RTCStatsMember<double> burst_loss_rate; |
| 271 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 272 RTCStatsMember<double> burst_discard_rate; |
| 273 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 274 RTCStatsMember<double> gap_loss_rate; |
| 275 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855 |
| 276 RTCStatsMember<double> gap_discard_rate; |
| 277 }; |
| 278 |
| 239 // https://w3c.github.io/webrtc-stats/#outboundrtpstats-dict* | 279 // https://w3c.github.io/webrtc-stats/#outboundrtpstats-dict* |
| 240 // TODO(hbos): Finish implementation and support the remote case | 280 // TODO(hbos): Finish implementation and support the remote case |
| 241 // |is_remote = true|. Tracking bug crbug.com/657856 | 281 // |is_remote = true|. Tracking bug crbug.com/657856 |
| 242 class RTCOutboundRTPStreamStats final : public RTCRTPStreamStats { | 282 class RTCOutboundRTPStreamStats final : public RTCRTPStreamStats { |
| 243 public: | 283 public: |
| 244 WEBRTC_RTCSTATS_DECL(); | 284 WEBRTC_RTCSTATS_DECL(); |
| 245 | 285 |
| 246 RTCOutboundRTPStreamStats(const std::string& id, int64_t timestamp_us); | 286 RTCOutboundRTPStreamStats(const std::string& id, int64_t timestamp_us); |
| 247 RTCOutboundRTPStreamStats(std::string&& id, int64_t timestamp_us); | 287 RTCOutboundRTPStreamStats(std::string&& id, int64_t timestamp_us); |
| 248 RTCOutboundRTPStreamStats(const RTCOutboundRTPStreamStats& other); | 288 RTCOutboundRTPStreamStats(const RTCOutboundRTPStreamStats& other); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 271 RTCStatsMember<std::string> rtcp_transport_stats_id; | 311 RTCStatsMember<std::string> rtcp_transport_stats_id; |
| 272 RTCStatsMember<bool> active_connection; | 312 RTCStatsMember<bool> active_connection; |
| 273 RTCStatsMember<std::string> selected_candidate_pair_id; | 313 RTCStatsMember<std::string> selected_candidate_pair_id; |
| 274 RTCStatsMember<std::string> local_certificate_id; | 314 RTCStatsMember<std::string> local_certificate_id; |
| 275 RTCStatsMember<std::string> remote_certificate_id; | 315 RTCStatsMember<std::string> remote_certificate_id; |
| 276 }; | 316 }; |
| 277 | 317 |
| 278 } // namespace webrtc | 318 } // namespace webrtc |
| 279 | 319 |
| 280 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ | 320 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ |
| OLD | NEW |