Index: webrtc/api/stats/rtcstats_objects.h |
diff --git a/webrtc/api/stats/rtcstats_objects.h b/webrtc/api/stats/rtcstats_objects.h |
index ac480a937b0bd6d0178e668d2eb2678c5f5d8bc7..6ff9f9949a4fa2e862d38fd1b1b086a86d571395 100644 |
--- a/webrtc/api/stats/rtcstats_objects.h |
+++ b/webrtc/api/stats/rtcstats_objects.h |
@@ -17,6 +17,26 @@ |
namespace webrtc { |
+// https://w3c.github.io/webrtc-stats/#certificatestats-dict* |
+class RTCCertificateStats : public RTCStats { |
+ public: |
+ RTCCertificateStats(const std::string& id, int64_t timestamp_us); |
+ RTCCertificateStats(std::string&& id, int64_t timestamp_us); |
+ |
+ WEBRTC_RTCSTATS_IMPL(RTCStats, RTCCertificateStats, |
+ &fingerprint, |
+ &fingerprint_algorithm, |
+ &base64_certificate, |
+ &issuer_certificate_id); |
+ |
+ 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 : public RTCStats { |
public: |
RTCPeerConnectionStats(const std::string& id, int64_t timestamp_us); |