Index: webrtc/stats/rtcstats_objects.cc |
diff --git a/webrtc/stats/rtcstats_objects.cc b/webrtc/stats/rtcstats_objects.cc |
index fbd16ed39daddfc4a7e0c190f01bd6549091f9c8..b90941a5c00b48e79148fd50dc208e2755d9f711 100644 |
--- a/webrtc/stats/rtcstats_objects.cc |
+++ b/webrtc/stats/rtcstats_objects.cc |
@@ -12,7 +12,11 @@ |
namespace webrtc { |
-const char RTCCertificateStats::kType[] = "certificate"; |
+WEBRTC_RTCSTATS_IMPL(RTCCertificateStats, RTCStats, "certificate", |
+ &fingerprint, |
+ &fingerprint_algorithm, |
+ &base64_certificate, |
+ &issuer_certificate_id); |
RTCCertificateStats::RTCCertificateStats( |
const std::string& id, int64_t timestamp_us) |
@@ -28,7 +32,21 @@ RTCCertificateStats::RTCCertificateStats( |
issuer_certificate_id("issuerCertificateId") { |
} |
-const char RTCPeerConnectionStats::kType[] = "peer-connection"; |
+RTCCertificateStats::RTCCertificateStats( |
+ const RTCCertificateStats& other) |
+ : RTCStats(other.id(), other.timestamp_us()), |
+ fingerprint(other.fingerprint), |
+ fingerprint_algorithm(other.fingerprint_algorithm), |
+ base64_certificate(other.base64_certificate), |
+ issuer_certificate_id(other.issuer_certificate_id) { |
+} |
+ |
+RTCCertificateStats::~RTCCertificateStats() { |
+} |
+ |
+WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection", |
+ &data_channels_opened, |
+ &data_channels_closed); |
RTCPeerConnectionStats::RTCPeerConnectionStats( |
const std::string& id, int64_t timestamp_us) |
@@ -42,4 +60,14 @@ RTCPeerConnectionStats::RTCPeerConnectionStats( |
data_channels_closed("dataChannelsClosed") { |
} |
+RTCPeerConnectionStats::RTCPeerConnectionStats( |
+ const RTCPeerConnectionStats& other) |
+ : RTCStats(other.id(), other.timestamp_us()), |
+ data_channels_opened(other.data_channels_opened), |
+ data_channels_closed(other.data_channels_closed) { |
+} |
+ |
+RTCPeerConnectionStats::~RTCPeerConnectionStats() { |
+} |
+ |
} // namespace webrtc |