Chromium Code Reviews| Index: webrtc/api/stats/rtcstats_objects.h |
| diff --git a/webrtc/api/stats/rtcstats_objects.h b/webrtc/api/stats/rtcstats_objects.h |
| index 4738fe89a89793e7f3993c843693927fc05ad7ba..dfdf1f5ba8475b064961c698b6ea4ea6e224c9dd 100644 |
| --- a/webrtc/api/stats/rtcstats_objects.h |
| +++ b/webrtc/api/stats/rtcstats_objects.h |
| @@ -35,6 +35,24 @@ struct RTCIceCandidateType { |
| static const char* kRelay; |
| }; |
| +// https://w3c.github.io/webrtc-stats/#certificatestats-dict* |
| +class RTCCertificateStats final : public RTCStats { |
| + public: |
| + WEBRTC_RTCSTATS_DECL(); |
| + |
| + RTCCertificateStats(const std::string& id, int64_t timestamp_us); |
| + RTCCertificateStats(std::string&& id, int64_t timestamp_us); |
| + RTCCertificateStats(const RTCCertificateStats& other); |
| + ~RTCCertificateStats() override; |
| + |
| + RTCStatsMember<std::string> fingerprint; |
| + RTCStatsMember<std::string> fingerprint_algorithm; |
| + RTCStatsMember<std::string> base64_certificate; |
| + RTCStatsMember<std::string> issuer_certificate_id; |
| +}; |
| + |
| +// https://w3c.github.io/webrtc-stats/#candidatepair-dict* |
| +// TODO(hbos): Tracking bug crbug.com/633550 |
| class RTCIceCandidatePairStats : public RTCStats { |
| public: |
| WEBRTC_RTCSTATS_DECL(); |
| @@ -73,6 +91,7 @@ class RTCIceCandidatePairStats : public RTCStats { |
| }; |
| // https://w3c.github.io/webrtc-stats/#icecandidate-dict* |
| +// TODO(hbos): Tracking bug crbug.com/632723 |
|
hta-webrtc
2016/10/12 22:52:35
Complete sentence: TODO(hbos): Finish implementati
hbos
2016/10/17 19:33:13
Done.
|
| class RTCIceCandidateStats : public RTCStats { |
| public: |
| WEBRTC_RTCSTATS_DECL(); |
| @@ -113,22 +132,6 @@ class RTCRemoteIceCandidateStats final : public RTCIceCandidateStats { |
| const char* type() const override; |
| }; |
| -// https://w3c.github.io/webrtc-stats/#certificatestats-dict* |
| -class RTCCertificateStats final : public RTCStats { |
| - public: |
| - WEBRTC_RTCSTATS_DECL(); |
| - |
| - RTCCertificateStats(const std::string& id, int64_t timestamp_us); |
| - RTCCertificateStats(std::string&& id, int64_t timestamp_us); |
| - RTCCertificateStats(const RTCCertificateStats& other); |
| - ~RTCCertificateStats() override; |
| - |
| - RTCStatsMember<std::string> fingerprint; |
| - RTCStatsMember<std::string> fingerprint_algorithm; |
| - RTCStatsMember<std::string> base64_certificate; |
| - RTCStatsMember<std::string> issuer_certificate_id; |
| -}; |
| - |
| // https://w3c.github.io/webrtc-stats/#pcstats-dict* |
| // TODO(hbos): Tracking bug crbug.com/636818 |
| class RTCPeerConnectionStats final : public RTCStats { |
| @@ -144,6 +147,26 @@ class RTCPeerConnectionStats final : public RTCStats { |
| RTCStatsMember<uint32_t> data_channels_closed; |
| }; |
| +// https://w3c.github.io/webrtc-stats/#transportstats-dict* |
| +// TODO(hbos): Tracking bug crbug.com/653873 |
| +class RTCTransportStats final : public RTCStats { |
| + public: |
| + WEBRTC_RTCSTATS_DECL(); |
| + |
| + RTCTransportStats(const std::string& id, int64_t timestamp_us); |
| + RTCTransportStats(std::string&& id, int64_t timestamp_us); |
| + RTCTransportStats(const RTCTransportStats& other); |
| + ~RTCTransportStats() override; |
| + |
| + RTCStatsMember<uint64_t> bytes_sent; |
| + RTCStatsMember<uint64_t> bytes_received; |
| + RTCStatsMember<std::string> rtcp_transport_stats_id; |
| + RTCStatsMember<bool> active_connection; |
| + RTCStatsMember<std::string> selected_candidate_pair_id; |
| + RTCStatsMember<std::string> local_certificate_id; |
| + RTCStatsMember<std::string> remote_certificate_id; |
| +}; |
| + |
| } // namespace webrtc |
| #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ |