RTCIceCandidateStats.deleted = false added.

Since previously, only the deleted = false case is supported, but now
that stat is added. It's a recent addition to the spec:
https://w3c.github.io/webrtc-stats/#dom-rtcicecandidatestats-deleted

BUG=webrtc:6756, chromium:632723, chromium:627816

Review-Url: https://codereview.webrtc.org/2591963003
Cr-Commit-Position: refs/heads/master@{#15871}
This commit is contained in:
hbos
2017-01-02 08:09:59 -08:00
committed by Commit bot
parent 06495bcbb7
commit d17a5a7709
4 changed files with 17 additions and 3 deletions

View File

@ -242,7 +242,8 @@ WEBRTC_RTCSTATS_IMPL(RTCIceCandidateStats, RTCStats, "ice-candidate",
&protocol,
&candidate_type,
&priority,
&url);
&url,
&deleted);
RTCIceCandidateStats::RTCIceCandidateStats(
const std::string& id, int64_t timestamp_us, bool is_remote)
@ -258,7 +259,8 @@ RTCIceCandidateStats::RTCIceCandidateStats(
protocol("protocol"),
candidate_type("candidateType"),
priority("priority"),
url("url") {
url("url"),
deleted("deleted", false) {
}
RTCIceCandidateStats::RTCIceCandidateStats(const RTCIceCandidateStats& other)
@ -269,7 +271,8 @@ RTCIceCandidateStats::RTCIceCandidateStats(const RTCIceCandidateStats& other)
protocol(other.protocol),
candidate_type(other.candidate_type),
priority(other.priority),
url(other.url) {
url(other.url),
deleted(other.deleted) {
}
RTCIceCandidateStats::~RTCIceCandidateStats() {