Chromium Code Reviews| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 RTCCertificateStats(std::string&& id, int64_t timestamp_us); | 52 RTCCertificateStats(std::string&& id, int64_t timestamp_us); |
| 53 RTCCertificateStats(const RTCCertificateStats& other); | 53 RTCCertificateStats(const RTCCertificateStats& other); |
| 54 ~RTCCertificateStats() override; | 54 ~RTCCertificateStats() override; |
| 55 | 55 |
| 56 RTCStatsMember<std::string> fingerprint; | 56 RTCStatsMember<std::string> fingerprint; |
| 57 RTCStatsMember<std::string> fingerprint_algorithm; | 57 RTCStatsMember<std::string> fingerprint_algorithm; |
| 58 RTCStatsMember<std::string> base64_certificate; | 58 RTCStatsMember<std::string> base64_certificate; |
| 59 RTCStatsMember<std::string> issuer_certificate_id; | 59 RTCStatsMember<std::string> issuer_certificate_id; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 // https://w3c.github.io/webrtc-stats/#codec-dict* | |
| 63 // TODO(hbos): Finish implementation. Tracking bug crbug.com/659117 | |
| 64 // Codec stats objects currently aren't identified correctly, this could result | |
| 65 // in multiple stats objects for the same codec or an ID being reused if a | |
| 66 // stream changes codec. | |
|
hta-webrtc
2016/11/23 07:37:35
I don't think this is true at the moment.... direc
hbos
2016/11/23 09:40:59
Done.
| |
| 67 class RTCCodecStats final : public RTCStats { | |
| 68 public: | |
| 69 WEBRTC_RTCSTATS_DECL(); | |
| 70 | |
| 71 RTCCodecStats(const std::string& id, int64_t timestamp_us); | |
| 72 RTCCodecStats(std::string&& id, int64_t timestamp_us); | |
| 73 RTCCodecStats(const RTCCodecStats& other); | |
| 74 ~RTCCodecStats() override; | |
| 75 | |
| 76 RTCStatsMember<uint32_t> payload_type; | |
| 77 RTCStatsMember<std::string> codec; | |
| 78 RTCStatsMember<uint32_t> clock_rate; | |
| 79 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/659117 | |
| 80 RTCStatsMember<uint32_t> channels; | |
| 81 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/659117 | |
| 82 RTCStatsMember<std::string> parameters; | |
| 83 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/659117 | |
| 84 RTCStatsMember<std::string> implementation; | |
| 85 }; | |
| 86 | |
| 62 // https://w3c.github.io/webrtc-stats/#dcstats-dict* | 87 // https://w3c.github.io/webrtc-stats/#dcstats-dict* |
| 63 class RTCDataChannelStats final : public RTCStats { | 88 class RTCDataChannelStats final : public RTCStats { |
| 64 public: | 89 public: |
| 65 WEBRTC_RTCSTATS_DECL(); | 90 WEBRTC_RTCSTATS_DECL(); |
| 66 | 91 |
| 67 RTCDataChannelStats(const std::string& id, int64_t timestamp_us); | 92 RTCDataChannelStats(const std::string& id, int64_t timestamp_us); |
| 68 RTCDataChannelStats(std::string&& id, int64_t timestamp_us); | 93 RTCDataChannelStats(std::string&& id, int64_t timestamp_us); |
| 69 RTCDataChannelStats(const RTCDataChannelStats& other); | 94 RTCDataChannelStats(const RTCDataChannelStats& other); |
| 70 ~RTCDataChannelStats() override; | 95 ~RTCDataChannelStats() override; |
| 71 | 96 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 274 // TODO(hbos): When the remote case is supported |RTCStatsCollector| needs to | 299 // TODO(hbos): When the remote case is supported |RTCStatsCollector| needs to |
| 275 // set this. crbug.com/657855, 657856 | 300 // set this. crbug.com/657855, 657856 |
| 276 RTCStatsMember<std::string> associate_stats_id; | 301 RTCStatsMember<std::string> associate_stats_id; |
| 277 // TODO(hbos): Remote case not supported by |RTCStatsCollector|. | 302 // TODO(hbos): Remote case not supported by |RTCStatsCollector|. |
| 278 // crbug.com/657855, 657856 | 303 // crbug.com/657855, 657856 |
| 279 RTCStatsMember<bool> is_remote; // = false | 304 RTCStatsMember<bool> is_remote; // = false |
| 280 RTCStatsMember<std::string> media_type; | 305 RTCStatsMember<std::string> media_type; |
| 281 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657854, 659137 | 306 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657854, 659137 |
| 282 RTCStatsMember<std::string> media_track_id; | 307 RTCStatsMember<std::string> media_track_id; |
| 283 RTCStatsMember<std::string> transport_id; | 308 RTCStatsMember<std::string> transport_id; |
| 284 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657854, 659117 | |
| 285 RTCStatsMember<std::string> codec_id; | 309 RTCStatsMember<std::string> codec_id; |
| 286 // FIR and PLI counts are only defined for |media_type == "video"|. | 310 // FIR and PLI counts are only defined for |media_type == "video"|. |
| 287 RTCStatsMember<uint32_t> fir_count; | 311 RTCStatsMember<uint32_t> fir_count; |
| 288 RTCStatsMember<uint32_t> pli_count; | 312 RTCStatsMember<uint32_t> pli_count; |
| 289 // TODO(hbos): NACK count should be collected by |RTCStatsCollector| for both | 313 // TODO(hbos): NACK count should be collected by |RTCStatsCollector| for both |
| 290 // audio and video but is only defined in the "video" case. crbug.com/657856 | 314 // audio and video but is only defined in the "video" case. crbug.com/657856 |
| 291 RTCStatsMember<uint32_t> nack_count; | 315 RTCStatsMember<uint32_t> nack_count; |
| 292 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657854 | 316 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657854 |
| 293 // SLI count is only defined for |media_type == "video"|. | 317 // SLI count is only defined for |media_type == "video"|. |
| 294 RTCStatsMember<uint32_t> sli_count; | 318 RTCStatsMember<uint32_t> sli_count; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 374 RTCStatsMember<std::string> rtcp_transport_stats_id; | 398 RTCStatsMember<std::string> rtcp_transport_stats_id; |
| 375 RTCStatsMember<bool> active_connection; | 399 RTCStatsMember<bool> active_connection; |
| 376 RTCStatsMember<std::string> selected_candidate_pair_id; | 400 RTCStatsMember<std::string> selected_candidate_pair_id; |
| 377 RTCStatsMember<std::string> local_certificate_id; | 401 RTCStatsMember<std::string> local_certificate_id; |
| 378 RTCStatsMember<std::string> remote_certificate_id; | 402 RTCStatsMember<std::string> remote_certificate_id; |
| 379 }; | 403 }; |
| 380 | 404 |
| 381 } // namespace webrtc | 405 } // namespace webrtc |
| 382 | 406 |
| 383 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ | 407 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ |
| OLD | NEW |