blob: 7c023d182267bd345c49d3b11fcfac142646537e [file] [log] [blame]
hbosd565b732016-08-30 14:04:35 -07001/*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#include "api/stats/rtcstats_objects.h"
hbosd565b732016-08-30 14:04:35 -070012
Yves Gerey3e707812018-11-28 16:47:49 +010013#include <utility>
14
15#include "rtc_base/checks.h"
16
Jakob Ivarsson758d9462019-03-19 15:38:49 +010017#include "api/stats/rtc_stats.h"
18
hbosd565b732016-08-30 14:04:35 -070019namespace webrtc {
20
agrieve26622d32017-08-08 10:48:15 -070021const char* const RTCDataChannelState::kConnecting = "connecting";
22const char* const RTCDataChannelState::kOpen = "open";
23const char* const RTCDataChannelState::kClosing = "closing";
24const char* const RTCDataChannelState::kClosed = "closed";
hboscc555c52016-10-18 12:48:31 -070025
agrieve26622d32017-08-08 10:48:15 -070026const char* const RTCStatsIceCandidatePairState::kFrozen = "frozen";
27const char* const RTCStatsIceCandidatePairState::kWaiting = "waiting";
28const char* const RTCStatsIceCandidatePairState::kInProgress = "in-progress";
29const char* const RTCStatsIceCandidatePairState::kFailed = "failed";
30const char* const RTCStatsIceCandidatePairState::kSucceeded = "succeeded";
hbosc47a0c32016-10-11 14:54:49 -070031
32// Strings defined in https://tools.ietf.org/html/rfc5245.
agrieve26622d32017-08-08 10:48:15 -070033const char* const RTCIceCandidateType::kHost = "host";
34const char* const RTCIceCandidateType::kSrflx = "srflx";
35const char* const RTCIceCandidateType::kPrflx = "prflx";
36const char* const RTCIceCandidateType::kRelay = "relay";
hbosab9f6e42016-10-07 02:18:47 -070037
agrieve26622d32017-08-08 10:48:15 -070038const char* const RTCDtlsTransportState::kNew = "new";
39const char* const RTCDtlsTransportState::kConnecting = "connecting";
40const char* const RTCDtlsTransportState::kConnected = "connected";
41const char* const RTCDtlsTransportState::kClosed = "closed";
42const char* const RTCDtlsTransportState::kFailed = "failed";
hbos7064d592017-01-16 07:38:02 -080043
agrieve26622d32017-08-08 10:48:15 -070044const char* const RTCMediaStreamTrackKind::kAudio = "audio";
45const char* const RTCMediaStreamTrackKind::kVideo = "video";
hbos160e4a72017-01-17 02:53:23 -080046
Gary Liu37e489c2017-11-21 10:49:36 -080047// https://w3c.github.io/webrtc-stats/#dom-rtcnetworktype
48const char* const RTCNetworkType::kBluetooth = "bluetooth";
49const char* const RTCNetworkType::kCellular = "cellular";
50const char* const RTCNetworkType::kEthernet = "ethernet";
51const char* const RTCNetworkType::kWifi = "wifi";
52const char* const RTCNetworkType::kWimax = "wimax";
53const char* const RTCNetworkType::kVpn = "vpn";
54const char* const RTCNetworkType::kUnknown = "unknown";
55
Henrik Boström2e069262019-04-09 13:59:31 +020056// https://webrtc.org/experiments/rtp-hdrext/video-content-type/
57const char* const RTCContentType::kUnspecified = "unspecified";
58const char* const RTCContentType::kScreenshare = "screenshare";
59
Steve Antond6a5cbd2017-08-18 09:40:25 -070060// clang-format off
hbos2fa7c672016-10-24 04:00:05 -070061WEBRTC_RTCSTATS_IMPL(RTCCertificateStats, RTCStats, "certificate",
62 &fingerprint,
63 &fingerprint_algorithm,
64 &base64_certificate,
Nico Weber22f99252019-02-20 10:13:16 -050065 &issuer_certificate_id)
Steve Antond6a5cbd2017-08-18 09:40:25 -070066// clang-format on
hbos2fa7c672016-10-24 04:00:05 -070067
Yves Gerey665174f2018-06-19 15:03:05 +020068RTCCertificateStats::RTCCertificateStats(const std::string& id,
69 int64_t timestamp_us)
70 : RTCCertificateStats(std::string(id), timestamp_us) {}
hbos2fa7c672016-10-24 04:00:05 -070071
Yves Gerey665174f2018-06-19 15:03:05 +020072RTCCertificateStats::RTCCertificateStats(std::string&& id, int64_t timestamp_us)
hbos2fa7c672016-10-24 04:00:05 -070073 : RTCStats(std::move(id), timestamp_us),
74 fingerprint("fingerprint"),
75 fingerprint_algorithm("fingerprintAlgorithm"),
76 base64_certificate("base64Certificate"),
Yves Gerey665174f2018-06-19 15:03:05 +020077 issuer_certificate_id("issuerCertificateId") {}
hbos2fa7c672016-10-24 04:00:05 -070078
Yves Gerey665174f2018-06-19 15:03:05 +020079RTCCertificateStats::RTCCertificateStats(const RTCCertificateStats& other)
hbos2fa7c672016-10-24 04:00:05 -070080 : RTCStats(other.id(), other.timestamp_us()),
81 fingerprint(other.fingerprint),
82 fingerprint_algorithm(other.fingerprint_algorithm),
83 base64_certificate(other.base64_certificate),
Yves Gerey665174f2018-06-19 15:03:05 +020084 issuer_certificate_id(other.issuer_certificate_id) {}
hbos2fa7c672016-10-24 04:00:05 -070085
Yves Gerey665174f2018-06-19 15:03:05 +020086RTCCertificateStats::~RTCCertificateStats() {}
hbos2fa7c672016-10-24 04:00:05 -070087
Steve Antond6a5cbd2017-08-18 09:40:25 -070088// clang-format off
hbos0adb8282016-11-23 02:32:06 -080089WEBRTC_RTCSTATS_IMPL(RTCCodecStats, RTCStats, "codec",
90 &payload_type,
hbos13f54b22017-02-28 06:56:04 -080091 &mime_type,
hbos0adb8282016-11-23 02:32:06 -080092 &clock_rate,
93 &channels,
hbos13f54b22017-02-28 06:56:04 -080094 &sdp_fmtp_line,
Nico Weber22f99252019-02-20 10:13:16 -050095 &implementation)
Steve Antond6a5cbd2017-08-18 09:40:25 -070096// clang-format on
hbos0adb8282016-11-23 02:32:06 -080097
Yves Gerey665174f2018-06-19 15:03:05 +020098RTCCodecStats::RTCCodecStats(const std::string& id, int64_t timestamp_us)
99 : RTCCodecStats(std::string(id), timestamp_us) {}
hbos0adb8282016-11-23 02:32:06 -0800100
Yves Gerey665174f2018-06-19 15:03:05 +0200101RTCCodecStats::RTCCodecStats(std::string&& id, int64_t timestamp_us)
hbos0adb8282016-11-23 02:32:06 -0800102 : RTCStats(std::move(id), timestamp_us),
103 payload_type("payloadType"),
hbos13f54b22017-02-28 06:56:04 -0800104 mime_type("mimeType"),
hbos0adb8282016-11-23 02:32:06 -0800105 clock_rate("clockRate"),
106 channels("channels"),
hbos13f54b22017-02-28 06:56:04 -0800107 sdp_fmtp_line("sdpFmtpLine"),
Yves Gerey665174f2018-06-19 15:03:05 +0200108 implementation("implementation") {}
hbos0adb8282016-11-23 02:32:06 -0800109
Yves Gerey665174f2018-06-19 15:03:05 +0200110RTCCodecStats::RTCCodecStats(const RTCCodecStats& other)
hbos0adb8282016-11-23 02:32:06 -0800111 : RTCStats(other.id(), other.timestamp_us()),
112 payload_type(other.payload_type),
hbos13f54b22017-02-28 06:56:04 -0800113 mime_type(other.mime_type),
hbos0adb8282016-11-23 02:32:06 -0800114 clock_rate(other.clock_rate),
115 channels(other.channels),
hbos13f54b22017-02-28 06:56:04 -0800116 sdp_fmtp_line(other.sdp_fmtp_line),
Yves Gerey665174f2018-06-19 15:03:05 +0200117 implementation(other.implementation) {}
hbos0adb8282016-11-23 02:32:06 -0800118
Yves Gerey665174f2018-06-19 15:03:05 +0200119RTCCodecStats::~RTCCodecStats() {}
hbos0adb8282016-11-23 02:32:06 -0800120
Steve Antond6a5cbd2017-08-18 09:40:25 -0700121// clang-format off
hbos2fa7c672016-10-24 04:00:05 -0700122WEBRTC_RTCSTATS_IMPL(RTCDataChannelStats, RTCStats, "data-channel",
123 &label,
124 &protocol,
125 &datachannelid,
126 &state,
127 &messages_sent,
128 &bytes_sent,
129 &messages_received,
Nico Weber22f99252019-02-20 10:13:16 -0500130 &bytes_received)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700131// clang-format on
hbos2fa7c672016-10-24 04:00:05 -0700132
Yves Gerey665174f2018-06-19 15:03:05 +0200133RTCDataChannelStats::RTCDataChannelStats(const std::string& id,
134 int64_t timestamp_us)
135 : RTCDataChannelStats(std::string(id), timestamp_us) {}
hbos2fa7c672016-10-24 04:00:05 -0700136
Yves Gerey665174f2018-06-19 15:03:05 +0200137RTCDataChannelStats::RTCDataChannelStats(std::string&& id, int64_t timestamp_us)
hbos2fa7c672016-10-24 04:00:05 -0700138 : RTCStats(std::move(id), timestamp_us),
139 label("label"),
140 protocol("protocol"),
141 datachannelid("datachannelid"),
142 state("state"),
143 messages_sent("messagesSent"),
144 bytes_sent("bytesSent"),
145 messages_received("messagesReceived"),
Yves Gerey665174f2018-06-19 15:03:05 +0200146 bytes_received("bytesReceived") {}
hbos2fa7c672016-10-24 04:00:05 -0700147
Yves Gerey665174f2018-06-19 15:03:05 +0200148RTCDataChannelStats::RTCDataChannelStats(const RTCDataChannelStats& other)
hbos2fa7c672016-10-24 04:00:05 -0700149 : RTCStats(other.id(), other.timestamp_us()),
150 label(other.label),
151 protocol(other.protocol),
152 datachannelid(other.datachannelid),
153 state(other.state),
154 messages_sent(other.messages_sent),
155 bytes_sent(other.bytes_sent),
156 messages_received(other.messages_received),
Yves Gerey665174f2018-06-19 15:03:05 +0200157 bytes_received(other.bytes_received) {}
hbos2fa7c672016-10-24 04:00:05 -0700158
Yves Gerey665174f2018-06-19 15:03:05 +0200159RTCDataChannelStats::~RTCDataChannelStats() {}
hbos2fa7c672016-10-24 04:00:05 -0700160
Steve Antond6a5cbd2017-08-18 09:40:25 -0700161// clang-format off
hbosc47a0c32016-10-11 14:54:49 -0700162WEBRTC_RTCSTATS_IMPL(RTCIceCandidatePairStats, RTCStats, "candidate-pair",
163 &transport_id,
164 &local_candidate_id,
165 &remote_candidate_id,
166 &state,
167 &priority,
168 &nominated,
169 &writable,
170 &readable,
171 &bytes_sent,
172 &bytes_received,
hbos3168c7a2016-12-15 06:17:08 -0800173 &total_round_trip_time,
174 &current_round_trip_time,
hbosc47a0c32016-10-11 14:54:49 -0700175 &available_outgoing_bitrate,
176 &available_incoming_bitrate,
177 &requests_received,
178 &requests_sent,
179 &responses_received,
180 &responses_sent,
181 &retransmissions_received,
182 &retransmissions_sent,
183 &consent_requests_received,
184 &consent_requests_sent,
185 &consent_responses_received,
Nico Weber22f99252019-02-20 10:13:16 -0500186 &consent_responses_sent)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700187// clang-format on
hbosc47a0c32016-10-11 14:54:49 -0700188
Yves Gerey665174f2018-06-19 15:03:05 +0200189RTCIceCandidatePairStats::RTCIceCandidatePairStats(const std::string& id,
190 int64_t timestamp_us)
191 : RTCIceCandidatePairStats(std::string(id), timestamp_us) {}
hbosc47a0c32016-10-11 14:54:49 -0700192
Yves Gerey665174f2018-06-19 15:03:05 +0200193RTCIceCandidatePairStats::RTCIceCandidatePairStats(std::string&& id,
194 int64_t timestamp_us)
hbosc47a0c32016-10-11 14:54:49 -0700195 : RTCStats(std::move(id), timestamp_us),
196 transport_id("transportId"),
197 local_candidate_id("localCandidateId"),
198 remote_candidate_id("remoteCandidateId"),
199 state("state"),
200 priority("priority"),
201 nominated("nominated"),
202 writable("writable"),
203 readable("readable"),
204 bytes_sent("bytesSent"),
205 bytes_received("bytesReceived"),
hbos3168c7a2016-12-15 06:17:08 -0800206 total_round_trip_time("totalRoundTripTime"),
207 current_round_trip_time("currentRoundTripTime"),
hbosc47a0c32016-10-11 14:54:49 -0700208 available_outgoing_bitrate("availableOutgoingBitrate"),
209 available_incoming_bitrate("availableIncomingBitrate"),
210 requests_received("requestsReceived"),
211 requests_sent("requestsSent"),
212 responses_received("responsesReceived"),
213 responses_sent("responsesSent"),
214 retransmissions_received("retransmissionsReceived"),
215 retransmissions_sent("retransmissionsSent"),
216 consent_requests_received("consentRequestsReceived"),
217 consent_requests_sent("consentRequestsSent"),
218 consent_responses_received("consentResponsesReceived"),
Yves Gerey665174f2018-06-19 15:03:05 +0200219 consent_responses_sent("consentResponsesSent") {}
hbosc47a0c32016-10-11 14:54:49 -0700220
221RTCIceCandidatePairStats::RTCIceCandidatePairStats(
222 const RTCIceCandidatePairStats& other)
223 : RTCStats(other.id(), other.timestamp_us()),
224 transport_id(other.transport_id),
225 local_candidate_id(other.local_candidate_id),
226 remote_candidate_id(other.remote_candidate_id),
227 state(other.state),
228 priority(other.priority),
229 nominated(other.nominated),
230 writable(other.writable),
231 readable(other.readable),
232 bytes_sent(other.bytes_sent),
233 bytes_received(other.bytes_received),
hbos3168c7a2016-12-15 06:17:08 -0800234 total_round_trip_time(other.total_round_trip_time),
235 current_round_trip_time(other.current_round_trip_time),
hbosc47a0c32016-10-11 14:54:49 -0700236 available_outgoing_bitrate(other.available_outgoing_bitrate),
237 available_incoming_bitrate(other.available_incoming_bitrate),
238 requests_received(other.requests_received),
239 requests_sent(other.requests_sent),
240 responses_received(other.responses_received),
241 responses_sent(other.responses_sent),
242 retransmissions_received(other.retransmissions_received),
243 retransmissions_sent(other.retransmissions_sent),
244 consent_requests_received(other.consent_requests_received),
245 consent_requests_sent(other.consent_requests_sent),
246 consent_responses_received(other.consent_responses_received),
Yves Gerey665174f2018-06-19 15:03:05 +0200247 consent_responses_sent(other.consent_responses_sent) {}
hbosc47a0c32016-10-11 14:54:49 -0700248
Yves Gerey665174f2018-06-19 15:03:05 +0200249RTCIceCandidatePairStats::~RTCIceCandidatePairStats() {}
hbosc47a0c32016-10-11 14:54:49 -0700250
Steve Antond6a5cbd2017-08-18 09:40:25 -0700251// clang-format off
Henrik Boström1df1bf82018-03-20 13:24:20 +0100252WEBRTC_RTCSTATS_IMPL(RTCIceCandidateStats, RTCStats, "abstract-ice-candidate",
hbosb4e426e2017-01-02 09:59:31 -0800253 &transport_id,
hbosc3a2b7f2017-01-02 04:46:15 -0800254 &is_remote,
Gary Liu37e489c2017-11-21 10:49:36 -0800255 &network_type,
hbosab9f6e42016-10-07 02:18:47 -0700256 &ip,
257 &port,
258 &protocol,
Philipp Hancke95513752018-09-27 14:40:08 +0200259 &relay_protocol,
hbosab9f6e42016-10-07 02:18:47 -0700260 &candidate_type,
261 &priority,
hbosd17a5a72017-01-02 08:09:59 -0800262 &url,
Nico Weber22f99252019-02-20 10:13:16 -0500263 &deleted)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700264// clang-format on
hbosab9f6e42016-10-07 02:18:47 -0700265
Yves Gerey665174f2018-06-19 15:03:05 +0200266RTCIceCandidateStats::RTCIceCandidateStats(const std::string& id,
267 int64_t timestamp_us,
268 bool is_remote)
269 : RTCIceCandidateStats(std::string(id), timestamp_us, is_remote) {}
hbosab9f6e42016-10-07 02:18:47 -0700270
Gary Liu37e489c2017-11-21 10:49:36 -0800271RTCIceCandidateStats::RTCIceCandidateStats(std::string&& id,
272 int64_t timestamp_us,
273 bool is_remote)
hbosab9f6e42016-10-07 02:18:47 -0700274 : RTCStats(std::move(id), timestamp_us),
hbosb4e426e2017-01-02 09:59:31 -0800275 transport_id("transportId"),
hbosc3a2b7f2017-01-02 04:46:15 -0800276 is_remote("isRemote", is_remote),
Gary Liu37e489c2017-11-21 10:49:36 -0800277 network_type("networkType"),
hbosab9f6e42016-10-07 02:18:47 -0700278 ip("ip"),
279 port("port"),
280 protocol("protocol"),
Philipp Hancke95513752018-09-27 14:40:08 +0200281 relay_protocol("relayProtocol"),
hbosab9f6e42016-10-07 02:18:47 -0700282 candidate_type("candidateType"),
283 priority("priority"),
hbosd17a5a72017-01-02 08:09:59 -0800284 url("url"),
Gary Liu37e489c2017-11-21 10:49:36 -0800285 deleted("deleted", false) {}
hbosab9f6e42016-10-07 02:18:47 -0700286
287RTCIceCandidateStats::RTCIceCandidateStats(const RTCIceCandidateStats& other)
288 : RTCStats(other.id(), other.timestamp_us()),
hbosb4e426e2017-01-02 09:59:31 -0800289 transport_id(other.transport_id),
hbosc3a2b7f2017-01-02 04:46:15 -0800290 is_remote(other.is_remote),
Gary Liu37e489c2017-11-21 10:49:36 -0800291 network_type(other.network_type),
hbosab9f6e42016-10-07 02:18:47 -0700292 ip(other.ip),
293 port(other.port),
294 protocol(other.protocol),
Philipp Hancke95513752018-09-27 14:40:08 +0200295 relay_protocol(other.relay_protocol),
hbosab9f6e42016-10-07 02:18:47 -0700296 candidate_type(other.candidate_type),
297 priority(other.priority),
hbosd17a5a72017-01-02 08:09:59 -0800298 url(other.url),
Gary Liu37e489c2017-11-21 10:49:36 -0800299 deleted(other.deleted) {}
hbosab9f6e42016-10-07 02:18:47 -0700300
Yves Gerey665174f2018-06-19 15:03:05 +0200301RTCIceCandidateStats::~RTCIceCandidateStats() {}
hbosab9f6e42016-10-07 02:18:47 -0700302
303const char RTCLocalIceCandidateStats::kType[] = "local-candidate";
304
Yves Gerey665174f2018-06-19 15:03:05 +0200305RTCLocalIceCandidateStats::RTCLocalIceCandidateStats(const std::string& id,
306 int64_t timestamp_us)
307 : RTCIceCandidateStats(id, timestamp_us, false) {}
hbosab9f6e42016-10-07 02:18:47 -0700308
Yves Gerey665174f2018-06-19 15:03:05 +0200309RTCLocalIceCandidateStats::RTCLocalIceCandidateStats(std::string&& id,
310 int64_t timestamp_us)
311 : RTCIceCandidateStats(std::move(id), timestamp_us, false) {}
hbosab9f6e42016-10-07 02:18:47 -0700312
Henrik Boström1df1bf82018-03-20 13:24:20 +0100313std::unique_ptr<RTCStats> RTCLocalIceCandidateStats::copy() const {
314 return std::unique_ptr<RTCStats>(new RTCLocalIceCandidateStats(*this));
315}
316
hbosab9f6e42016-10-07 02:18:47 -0700317const char* RTCLocalIceCandidateStats::type() const {
318 return kType;
319}
320
321const char RTCRemoteIceCandidateStats::kType[] = "remote-candidate";
322
Yves Gerey665174f2018-06-19 15:03:05 +0200323RTCRemoteIceCandidateStats::RTCRemoteIceCandidateStats(const std::string& id,
324 int64_t timestamp_us)
325 : RTCIceCandidateStats(id, timestamp_us, true) {}
hbosab9f6e42016-10-07 02:18:47 -0700326
Yves Gerey665174f2018-06-19 15:03:05 +0200327RTCRemoteIceCandidateStats::RTCRemoteIceCandidateStats(std::string&& id,
328 int64_t timestamp_us)
329 : RTCIceCandidateStats(std::move(id), timestamp_us, true) {}
hbosab9f6e42016-10-07 02:18:47 -0700330
Henrik Boström1df1bf82018-03-20 13:24:20 +0100331std::unique_ptr<RTCStats> RTCRemoteIceCandidateStats::copy() const {
332 return std::unique_ptr<RTCStats>(new RTCRemoteIceCandidateStats(*this));
333}
334
hbosab9f6e42016-10-07 02:18:47 -0700335const char* RTCRemoteIceCandidateStats::type() const {
336 return kType;
337}
338
Steve Antond6a5cbd2017-08-18 09:40:25 -0700339// clang-format off
hbos09bc1282016-11-08 06:29:22 -0800340WEBRTC_RTCSTATS_IMPL(RTCMediaStreamStats, RTCStats, "stream",
341 &stream_identifier,
Nico Weber22f99252019-02-20 10:13:16 -0500342 &track_ids)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700343// clang-format on
hbos09bc1282016-11-08 06:29:22 -0800344
Yves Gerey665174f2018-06-19 15:03:05 +0200345RTCMediaStreamStats::RTCMediaStreamStats(const std::string& id,
346 int64_t timestamp_us)
347 : RTCMediaStreamStats(std::string(id), timestamp_us) {}
hbos09bc1282016-11-08 06:29:22 -0800348
Yves Gerey665174f2018-06-19 15:03:05 +0200349RTCMediaStreamStats::RTCMediaStreamStats(std::string&& id, int64_t timestamp_us)
hbos09bc1282016-11-08 06:29:22 -0800350 : RTCStats(std::move(id), timestamp_us),
351 stream_identifier("streamIdentifier"),
Yves Gerey665174f2018-06-19 15:03:05 +0200352 track_ids("trackIds") {}
hbos09bc1282016-11-08 06:29:22 -0800353
Yves Gerey665174f2018-06-19 15:03:05 +0200354RTCMediaStreamStats::RTCMediaStreamStats(const RTCMediaStreamStats& other)
hbos09bc1282016-11-08 06:29:22 -0800355 : RTCStats(other.id(), other.timestamp_us()),
356 stream_identifier(other.stream_identifier),
Yves Gerey665174f2018-06-19 15:03:05 +0200357 track_ids(other.track_ids) {}
hbos09bc1282016-11-08 06:29:22 -0800358
Yves Gerey665174f2018-06-19 15:03:05 +0200359RTCMediaStreamStats::~RTCMediaStreamStats() {}
hbos09bc1282016-11-08 06:29:22 -0800360
Steve Antond6a5cbd2017-08-18 09:40:25 -0700361// clang-format off
hbos09bc1282016-11-08 06:29:22 -0800362WEBRTC_RTCSTATS_IMPL(RTCMediaStreamTrackStats, RTCStats, "track",
zsteine76bd3a2017-07-14 12:17:49 -0700363 &track_identifier,
364 &remote_source,
365 &ended,
366 &detached,
367 &kind,
Gustaf Ullbergb0a02072017-10-02 12:00:34 +0200368 &jitter_buffer_delay,
Chen Xing0acffb52019-01-15 15:46:29 +0100369 &jitter_buffer_emitted_count,
zsteine76bd3a2017-07-14 12:17:49 -0700370 &frame_width,
371 &frame_height,
372 &frames_per_second,
373 &frames_sent,
Ilya Nikolaevskiy70473fc2018-02-28 16:35:03 +0100374 &huge_frames_sent,
zsteine76bd3a2017-07-14 12:17:49 -0700375 &frames_received,
376 &frames_decoded,
377 &frames_dropped,
378 &frames_corrupted,
379 &partial_frames_lost,
380 &full_frames_lost,
381 &audio_level,
382 &total_audio_energy,
zsteine76bd3a2017-07-14 12:17:49 -0700383 &echo_return_loss,
Steve Anton2dbc69f2017-08-24 17:15:13 -0700384 &echo_return_loss_enhancement,
385 &total_samples_received,
386 &total_samples_duration,
Gustaf Ullberg9a2e9062017-09-18 09:28:20 +0200387 &concealed_samples,
Ruslan Burakov8af88962018-11-22 17:21:10 +0100388 &concealment_events,
Jakob Ivarsson352ce5c2018-11-27 12:52:16 +0100389 &jitter_buffer_flushes,
Sergey Silkin02371062019-01-31 16:45:42 +0100390 &delayed_packet_outage_samples,
Jakob Ivarsson232b3fd2019-03-06 09:18:40 +0100391 &relative_packet_arrival_delay,
Sergey Silkin02371062019-01-31 16:45:42 +0100392 &freeze_count,
393 &pause_count,
394 &total_freezes_duration,
395 &total_pauses_duration,
396 &total_frames_duration,
Nico Weber22f99252019-02-20 10:13:16 -0500397 &sum_squared_frame_durations)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700398// clang-format on
hbos09bc1282016-11-08 06:29:22 -0800399
Yves Gerey665174f2018-06-19 15:03:05 +0200400RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(const std::string& id,
401 int64_t timestamp_us,
402 const char* kind)
403 : RTCMediaStreamTrackStats(std::string(id), timestamp_us, kind) {}
hbos09bc1282016-11-08 06:29:22 -0800404
zsteine76bd3a2017-07-14 12:17:49 -0700405RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(std::string&& id,
406 int64_t timestamp_us,
407 const char* kind)
hbos09bc1282016-11-08 06:29:22 -0800408 : RTCStats(std::move(id), timestamp_us),
409 track_identifier("trackIdentifier"),
410 remote_source("remoteSource"),
411 ended("ended"),
412 detached("detached"),
hbos160e4a72017-01-17 02:53:23 -0800413 kind("kind", kind),
Gustaf Ullbergb0a02072017-10-02 12:00:34 +0200414 jitter_buffer_delay("jitterBufferDelay"),
Chen Xing0acffb52019-01-15 15:46:29 +0100415 jitter_buffer_emitted_count("jitterBufferEmittedCount"),
hbos09bc1282016-11-08 06:29:22 -0800416 frame_width("frameWidth"),
417 frame_height("frameHeight"),
418 frames_per_second("framesPerSecond"),
419 frames_sent("framesSent"),
Ilya Nikolaevskiy70473fc2018-02-28 16:35:03 +0100420 huge_frames_sent("hugeFramesSent"),
hbos09bc1282016-11-08 06:29:22 -0800421 frames_received("framesReceived"),
422 frames_decoded("framesDecoded"),
423 frames_dropped("framesDropped"),
424 frames_corrupted("framesCorrupted"),
425 partial_frames_lost("partialFramesLost"),
426 full_frames_lost("fullFramesLost"),
427 audio_level("audioLevel"),
zsteine76bd3a2017-07-14 12:17:49 -0700428 total_audio_energy("totalAudioEnergy"),
hbos09bc1282016-11-08 06:29:22 -0800429 echo_return_loss("echoReturnLoss"),
Steve Anton2dbc69f2017-08-24 17:15:13 -0700430 echo_return_loss_enhancement("echoReturnLossEnhancement"),
431 total_samples_received("totalSamplesReceived"),
432 total_samples_duration("totalSamplesDuration"),
Gustaf Ullberg9a2e9062017-09-18 09:28:20 +0200433 concealed_samples("concealedSamples"),
Ruslan Burakov8af88962018-11-22 17:21:10 +0100434 concealment_events("concealmentEvents"),
Jakob Ivarsson758d9462019-03-19 15:38:49 +0100435 jitter_buffer_flushes(
436 "jitterBufferFlushes",
437 {NonStandardGroupId::kRtcAudioJitterBufferMaxPackets}),
438 delayed_packet_outage_samples(
439 "delayedPacketOutageSamples",
440 {NonStandardGroupId::kRtcAudioJitterBufferMaxPackets,
441 NonStandardGroupId::kRtcStatsRelativePacketArrivalDelay}),
442 relative_packet_arrival_delay(
443 "relativePacketArrivalDelay",
444 {NonStandardGroupId::kRtcStatsRelativePacketArrivalDelay}),
Sergey Silkin02371062019-01-31 16:45:42 +0100445 freeze_count("freezeCount"),
446 pause_count("pauseCount"),
447 total_freezes_duration("totalFreezesDuration"),
448 total_pauses_duration("totalPausesDuration"),
449 total_frames_duration("totalFramesDuration"),
450 sum_squared_frame_durations("sumOfSquaredFramesDuration") {
hbos160e4a72017-01-17 02:53:23 -0800451 RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio ||
452 kind == RTCMediaStreamTrackKind::kVideo);
hbos09bc1282016-11-08 06:29:22 -0800453}
454
455RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(
456 const RTCMediaStreamTrackStats& other)
457 : RTCStats(other.id(), other.timestamp_us()),
458 track_identifier(other.track_identifier),
459 remote_source(other.remote_source),
460 ended(other.ended),
461 detached(other.detached),
hbos160e4a72017-01-17 02:53:23 -0800462 kind(other.kind),
Gustaf Ullbergb0a02072017-10-02 12:00:34 +0200463 jitter_buffer_delay(other.jitter_buffer_delay),
Chen Xing0acffb52019-01-15 15:46:29 +0100464 jitter_buffer_emitted_count(other.jitter_buffer_emitted_count),
hbos09bc1282016-11-08 06:29:22 -0800465 frame_width(other.frame_width),
466 frame_height(other.frame_height),
467 frames_per_second(other.frames_per_second),
468 frames_sent(other.frames_sent),
Ilya Nikolaevskiy70473fc2018-02-28 16:35:03 +0100469 huge_frames_sent(other.huge_frames_sent),
hbos09bc1282016-11-08 06:29:22 -0800470 frames_received(other.frames_received),
471 frames_decoded(other.frames_decoded),
472 frames_dropped(other.frames_dropped),
473 frames_corrupted(other.frames_corrupted),
474 partial_frames_lost(other.partial_frames_lost),
475 full_frames_lost(other.full_frames_lost),
476 audio_level(other.audio_level),
zsteine76bd3a2017-07-14 12:17:49 -0700477 total_audio_energy(other.total_audio_energy),
hbos09bc1282016-11-08 06:29:22 -0800478 echo_return_loss(other.echo_return_loss),
Steve Anton2dbc69f2017-08-24 17:15:13 -0700479 echo_return_loss_enhancement(other.echo_return_loss_enhancement),
480 total_samples_received(other.total_samples_received),
481 total_samples_duration(other.total_samples_duration),
Gustaf Ullberg9a2e9062017-09-18 09:28:20 +0200482 concealed_samples(other.concealed_samples),
Ruslan Burakov8af88962018-11-22 17:21:10 +0100483 concealment_events(other.concealment_events),
Jakob Ivarsson352ce5c2018-11-27 12:52:16 +0100484 jitter_buffer_flushes(other.jitter_buffer_flushes),
Sergey Silkin02371062019-01-31 16:45:42 +0100485 delayed_packet_outage_samples(other.delayed_packet_outage_samples),
Jakob Ivarsson232b3fd2019-03-06 09:18:40 +0100486 relative_packet_arrival_delay(other.relative_packet_arrival_delay),
Sergey Silkin02371062019-01-31 16:45:42 +0100487 freeze_count(other.freeze_count),
488 pause_count(other.pause_count),
489 total_freezes_duration(other.total_freezes_duration),
490 total_pauses_duration(other.total_pauses_duration),
491 total_frames_duration(other.total_frames_duration),
492 sum_squared_frame_durations(other.sum_squared_frame_durations) {}
hbos09bc1282016-11-08 06:29:22 -0800493
Yves Gerey665174f2018-06-19 15:03:05 +0200494RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() {}
hbos09bc1282016-11-08 06:29:22 -0800495
Steve Antond6a5cbd2017-08-18 09:40:25 -0700496// clang-format off
hbosfc5e0502016-10-06 02:06:10 -0700497WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection",
498 &data_channels_opened,
Nico Weber22f99252019-02-20 10:13:16 -0500499 &data_channels_closed)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700500// clang-format on
hbosd565b732016-08-30 14:04:35 -0700501
Yves Gerey665174f2018-06-19 15:03:05 +0200502RTCPeerConnectionStats::RTCPeerConnectionStats(const std::string& id,
503 int64_t timestamp_us)
504 : RTCPeerConnectionStats(std::string(id), timestamp_us) {}
hbosd565b732016-08-30 14:04:35 -0700505
Yves Gerey665174f2018-06-19 15:03:05 +0200506RTCPeerConnectionStats::RTCPeerConnectionStats(std::string&& id,
507 int64_t timestamp_us)
hbos0e6758d2016-08-31 07:57:36 -0700508 : RTCStats(std::move(id), timestamp_us),
hbosd565b732016-08-30 14:04:35 -0700509 data_channels_opened("dataChannelsOpened"),
Yves Gerey665174f2018-06-19 15:03:05 +0200510 data_channels_closed("dataChannelsClosed") {}
hbosd565b732016-08-30 14:04:35 -0700511
hbosfc5e0502016-10-06 02:06:10 -0700512RTCPeerConnectionStats::RTCPeerConnectionStats(
513 const RTCPeerConnectionStats& other)
514 : RTCStats(other.id(), other.timestamp_us()),
515 data_channels_opened(other.data_channels_opened),
Yves Gerey665174f2018-06-19 15:03:05 +0200516 data_channels_closed(other.data_channels_closed) {}
hbosfc5e0502016-10-06 02:06:10 -0700517
Yves Gerey665174f2018-06-19 15:03:05 +0200518RTCPeerConnectionStats::~RTCPeerConnectionStats() {}
hbosfc5e0502016-10-06 02:06:10 -0700519
Steve Antond6a5cbd2017-08-18 09:40:25 -0700520// clang-format off
hbos6ded1902016-11-01 01:50:46 -0700521WEBRTC_RTCSTATS_IMPL(RTCRTPStreamStats, RTCStats, "rtp",
522 &ssrc,
523 &associate_stats_id,
524 &is_remote,
525 &media_type,
Philipp Hancke3bc01662018-08-28 14:55:03 +0200526 &kind,
hbosb0ae9202017-01-27 06:35:16 -0800527 &track_id,
hbos6ded1902016-11-01 01:50:46 -0700528 &transport_id,
529 &codec_id,
530 &fir_count,
531 &pli_count,
532 &nack_count,
hbos6769c492017-01-02 08:35:13 -0800533 &sli_count,
Nico Weber22f99252019-02-20 10:13:16 -0500534 &qp_sum)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700535// clang-format on
hbos6ded1902016-11-01 01:50:46 -0700536
Yves Gerey665174f2018-06-19 15:03:05 +0200537RTCRTPStreamStats::RTCRTPStreamStats(const std::string& id,
538 int64_t timestamp_us)
539 : RTCRTPStreamStats(std::string(id), timestamp_us) {}
hbos6ded1902016-11-01 01:50:46 -0700540
Yves Gerey665174f2018-06-19 15:03:05 +0200541RTCRTPStreamStats::RTCRTPStreamStats(std::string&& id, int64_t timestamp_us)
hbos6ded1902016-11-01 01:50:46 -0700542 : RTCStats(std::move(id), timestamp_us),
543 ssrc("ssrc"),
544 associate_stats_id("associateStatsId"),
545 is_remote("isRemote", false),
546 media_type("mediaType"),
Philipp Hancke3bc01662018-08-28 14:55:03 +0200547 kind("kind"),
hbosb0ae9202017-01-27 06:35:16 -0800548 track_id("trackId"),
hbos6ded1902016-11-01 01:50:46 -0700549 transport_id("transportId"),
550 codec_id("codecId"),
551 fir_count("firCount"),
552 pli_count("pliCount"),
553 nack_count("nackCount"),
hbos6769c492017-01-02 08:35:13 -0800554 sli_count("sliCount"),
Yves Gerey665174f2018-06-19 15:03:05 +0200555 qp_sum("qpSum") {}
hbos6ded1902016-11-01 01:50:46 -0700556
Yves Gerey665174f2018-06-19 15:03:05 +0200557RTCRTPStreamStats::RTCRTPStreamStats(const RTCRTPStreamStats& other)
hbos6ded1902016-11-01 01:50:46 -0700558 : RTCStats(other.id(), other.timestamp_us()),
559 ssrc(other.ssrc),
560 associate_stats_id(other.associate_stats_id),
561 is_remote(other.is_remote),
562 media_type(other.media_type),
Philipp Hancke3bc01662018-08-28 14:55:03 +0200563 kind(other.kind),
hbosb0ae9202017-01-27 06:35:16 -0800564 track_id(other.track_id),
hbos6ded1902016-11-01 01:50:46 -0700565 transport_id(other.transport_id),
566 codec_id(other.codec_id),
567 fir_count(other.fir_count),
568 pli_count(other.pli_count),
569 nack_count(other.nack_count),
hbos6769c492017-01-02 08:35:13 -0800570 sli_count(other.sli_count),
Yves Gerey665174f2018-06-19 15:03:05 +0200571 qp_sum(other.qp_sum) {}
hbos6ded1902016-11-01 01:50:46 -0700572
Yves Gerey665174f2018-06-19 15:03:05 +0200573RTCRTPStreamStats::~RTCRTPStreamStats() {}
hbos6ded1902016-11-01 01:50:46 -0700574
Steve Antond6a5cbd2017-08-18 09:40:25 -0700575// clang-format off
hbos6ded1902016-11-01 01:50:46 -0700576WEBRTC_RTCSTATS_IMPL(
hboseeafe942016-11-01 03:00:17 -0700577 RTCInboundRTPStreamStats, RTCRTPStreamStats, "inbound-rtp",
578 &packets_received,
579 &bytes_received,
580 &packets_lost,
581 &jitter,
582 &fraction_lost,
hbosa7a9be12017-03-01 01:02:45 -0800583 &round_trip_time,
hboseeafe942016-11-01 03:00:17 -0700584 &packets_discarded,
585 &packets_repaired,
586 &burst_packets_lost,
587 &burst_packets_discarded,
588 &burst_loss_count,
589 &burst_discard_count,
590 &burst_loss_rate,
591 &burst_discard_rate,
592 &gap_loss_rate,
hbos6769c492017-01-02 08:35:13 -0800593 &gap_discard_rate,
Henrik Boström2e069262019-04-09 13:59:31 +0200594 &frames_decoded,
595 &content_type)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700596// clang-format on
hboseeafe942016-11-01 03:00:17 -0700597
Yves Gerey665174f2018-06-19 15:03:05 +0200598RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(const std::string& id,
599 int64_t timestamp_us)
600 : RTCInboundRTPStreamStats(std::string(id), timestamp_us) {}
hboseeafe942016-11-01 03:00:17 -0700601
Yves Gerey665174f2018-06-19 15:03:05 +0200602RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(std::string&& id,
603 int64_t timestamp_us)
hboseeafe942016-11-01 03:00:17 -0700604 : RTCRTPStreamStats(std::move(id), timestamp_us),
605 packets_received("packetsReceived"),
606 bytes_received("bytesReceived"),
607 packets_lost("packetsLost"),
608 jitter("jitter"),
609 fraction_lost("fractionLost"),
hbosa7a9be12017-03-01 01:02:45 -0800610 round_trip_time("roundTripTime"),
hboseeafe942016-11-01 03:00:17 -0700611 packets_discarded("packetsDiscarded"),
612 packets_repaired("packetsRepaired"),
613 burst_packets_lost("burstPacketsLost"),
614 burst_packets_discarded("burstPacketsDiscarded"),
615 burst_loss_count("burstLossCount"),
616 burst_discard_count("burstDiscardCount"),
617 burst_loss_rate("burstLossRate"),
618 burst_discard_rate("burstDiscardRate"),
619 gap_loss_rate("gapLossRate"),
hbos6769c492017-01-02 08:35:13 -0800620 gap_discard_rate("gapDiscardRate"),
Henrik Boström2e069262019-04-09 13:59:31 +0200621 frames_decoded("framesDecoded"),
622 content_type("contentType") {}
hboseeafe942016-11-01 03:00:17 -0700623
624RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(
625 const RTCInboundRTPStreamStats& other)
626 : RTCRTPStreamStats(other),
627 packets_received(other.packets_received),
628 bytes_received(other.bytes_received),
629 packets_lost(other.packets_lost),
630 jitter(other.jitter),
631 fraction_lost(other.fraction_lost),
hbosa7a9be12017-03-01 01:02:45 -0800632 round_trip_time(other.round_trip_time),
hboseeafe942016-11-01 03:00:17 -0700633 packets_discarded(other.packets_discarded),
634 packets_repaired(other.packets_repaired),
635 burst_packets_lost(other.burst_packets_lost),
636 burst_packets_discarded(other.burst_packets_discarded),
637 burst_loss_count(other.burst_loss_count),
638 burst_discard_count(other.burst_discard_count),
639 burst_loss_rate(other.burst_loss_rate),
640 burst_discard_rate(other.burst_discard_rate),
641 gap_loss_rate(other.gap_loss_rate),
hbos6769c492017-01-02 08:35:13 -0800642 gap_discard_rate(other.gap_discard_rate),
Henrik Boström2e069262019-04-09 13:59:31 +0200643 frames_decoded(other.frames_decoded),
644 content_type(other.content_type) {}
hboseeafe942016-11-01 03:00:17 -0700645
Yves Gerey665174f2018-06-19 15:03:05 +0200646RTCInboundRTPStreamStats::~RTCInboundRTPStreamStats() {}
hboseeafe942016-11-01 03:00:17 -0700647
Steve Antond6a5cbd2017-08-18 09:40:25 -0700648// clang-format off
hboseeafe942016-11-01 03:00:17 -0700649WEBRTC_RTCSTATS_IMPL(
hbos6ded1902016-11-01 01:50:46 -0700650 RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp",
651 &packets_sent,
652 &bytes_sent,
653 &target_bitrate,
Henrik Boströmf71362f2019-04-08 16:14:23 +0200654 &frames_encoded,
Henrik Boström2e069262019-04-09 13:59:31 +0200655 &total_encode_time,
656 &content_type)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700657// clang-format on
hbos6ded1902016-11-01 01:50:46 -0700658
Yves Gerey665174f2018-06-19 15:03:05 +0200659RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(const std::string& id,
660 int64_t timestamp_us)
661 : RTCOutboundRTPStreamStats(std::string(id), timestamp_us) {}
hbos6ded1902016-11-01 01:50:46 -0700662
Yves Gerey665174f2018-06-19 15:03:05 +0200663RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(std::string&& id,
664 int64_t timestamp_us)
hbos6ded1902016-11-01 01:50:46 -0700665 : RTCRTPStreamStats(std::move(id), timestamp_us),
666 packets_sent("packetsSent"),
667 bytes_sent("bytesSent"),
668 target_bitrate("targetBitrate"),
Henrik Boströmf71362f2019-04-08 16:14:23 +0200669 frames_encoded("framesEncoded"),
Henrik Boström2e069262019-04-09 13:59:31 +0200670 total_encode_time("totalEncodeTime"),
671 content_type("contentType") {}
hbos6ded1902016-11-01 01:50:46 -0700672
673RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
674 const RTCOutboundRTPStreamStats& other)
675 : RTCRTPStreamStats(other),
676 packets_sent(other.packets_sent),
677 bytes_sent(other.bytes_sent),
678 target_bitrate(other.target_bitrate),
Henrik Boströmf71362f2019-04-08 16:14:23 +0200679 frames_encoded(other.frames_encoded),
Henrik Boström2e069262019-04-09 13:59:31 +0200680 total_encode_time(other.total_encode_time),
681 content_type(other.content_type) {}
hbos6ded1902016-11-01 01:50:46 -0700682
Yves Gerey665174f2018-06-19 15:03:05 +0200683RTCOutboundRTPStreamStats::~RTCOutboundRTPStreamStats() {}
hbos6ded1902016-11-01 01:50:46 -0700684
Steve Antond6a5cbd2017-08-18 09:40:25 -0700685// clang-format off
hbos2fa7c672016-10-24 04:00:05 -0700686WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport",
687 &bytes_sent,
688 &bytes_received,
689 &rtcp_transport_stats_id,
hbos7064d592017-01-16 07:38:02 -0800690 &dtls_state,
hbos2fa7c672016-10-24 04:00:05 -0700691 &selected_candidate_pair_id,
692 &local_certificate_id,
Nico Weber22f99252019-02-20 10:13:16 -0500693 &remote_certificate_id)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700694// clang-format on
hbos2fa7c672016-10-24 04:00:05 -0700695
Yves Gerey665174f2018-06-19 15:03:05 +0200696RTCTransportStats::RTCTransportStats(const std::string& id,
697 int64_t timestamp_us)
698 : RTCTransportStats(std::string(id), timestamp_us) {}
hbos2fa7c672016-10-24 04:00:05 -0700699
Yves Gerey665174f2018-06-19 15:03:05 +0200700RTCTransportStats::RTCTransportStats(std::string&& id, int64_t timestamp_us)
hbos2fa7c672016-10-24 04:00:05 -0700701 : RTCStats(std::move(id), timestamp_us),
702 bytes_sent("bytesSent"),
703 bytes_received("bytesReceived"),
704 rtcp_transport_stats_id("rtcpTransportStatsId"),
hbos7064d592017-01-16 07:38:02 -0800705 dtls_state("dtlsState"),
hbos2fa7c672016-10-24 04:00:05 -0700706 selected_candidate_pair_id("selectedCandidatePairId"),
707 local_certificate_id("localCertificateId"),
Yves Gerey665174f2018-06-19 15:03:05 +0200708 remote_certificate_id("remoteCertificateId") {}
hbos2fa7c672016-10-24 04:00:05 -0700709
Yves Gerey665174f2018-06-19 15:03:05 +0200710RTCTransportStats::RTCTransportStats(const RTCTransportStats& other)
hbos2fa7c672016-10-24 04:00:05 -0700711 : RTCStats(other.id(), other.timestamp_us()),
712 bytes_sent(other.bytes_sent),
713 bytes_received(other.bytes_received),
714 rtcp_transport_stats_id(other.rtcp_transport_stats_id),
hbos7064d592017-01-16 07:38:02 -0800715 dtls_state(other.dtls_state),
hbos2fa7c672016-10-24 04:00:05 -0700716 selected_candidate_pair_id(other.selected_candidate_pair_id),
717 local_certificate_id(other.local_certificate_id),
Yves Gerey665174f2018-06-19 15:03:05 +0200718 remote_certificate_id(other.remote_certificate_id) {}
hbos2fa7c672016-10-24 04:00:05 -0700719
Yves Gerey665174f2018-06-19 15:03:05 +0200720RTCTransportStats::~RTCTransportStats() {}
hbos2fa7c672016-10-24 04:00:05 -0700721
hbosd565b732016-08-30 14:04:35 -0700722} // namespace webrtc