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