Index: webrtc/api/stats/rtcstats_objects.h |
diff --git a/webrtc/api/stats/rtcstats_objects.h b/webrtc/api/stats/rtcstats_objects.h |
index 22c06e4fcbb4b238c48f6e9ab85c8c27e90d8395..0eb609f1004bfd66db3de799788c01a122bcc467 100644 |
--- a/webrtc/api/stats/rtcstats_objects.h |
+++ b/webrtc/api/stats/rtcstats_objects.h |
@@ -42,6 +42,15 @@ struct RTCIceCandidateType { |
static const char* kRelay; |
}; |
+// https://w3c.github.io/webrtc-pc/#idl-def-rtcdtlstransportstate |
+struct RTCDtlsTransportState { |
+ static const char* kNew; |
+ static const char* kConnecting; |
+ static const char* kConnected; |
+ static const char* kClosed; |
+ static const char* kFailed; |
+}; |
+ |
// https://w3c.github.io/webrtc-stats/#certificatestats-dict* |
class RTCCertificateStats final : public RTCStats { |
public: |
@@ -392,7 +401,8 @@ class RTCTransportStats final : public RTCStats { |
RTCStatsMember<uint64_t> bytes_sent; |
RTCStatsMember<uint64_t> bytes_received; |
RTCStatsMember<std::string> rtcp_transport_stats_id; |
- RTCStatsMember<bool> active_connection; |
+ // TODO(hbos): Support enum types? "RTCStatsMember<RTCDtlsTransportState>"? |
+ RTCStatsMember<std::string> dtls_state; |
RTCStatsMember<std::string> selected_candidate_pair_id; |
RTCStatsMember<std::string> local_certificate_id; |
RTCStatsMember<std::string> remote_certificate_id; |