Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: webrtc/stats/rtcstats_objects.cc

Issue 2591963003: RTCIceCandidateStats.deleted = false added. (Closed)
Patch Set: Rebase with master Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/stats/rtcstats_objects.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 RTCIceCandidatePairStats::~RTCIceCandidatePairStats() { 236 RTCIceCandidatePairStats::~RTCIceCandidatePairStats() {
237 } 237 }
238 238
239 WEBRTC_RTCSTATS_IMPL(RTCIceCandidateStats, RTCStats, "ice-candidate", 239 WEBRTC_RTCSTATS_IMPL(RTCIceCandidateStats, RTCStats, "ice-candidate",
240 &is_remote, 240 &is_remote,
241 &ip, 241 &ip,
242 &port, 242 &port,
243 &protocol, 243 &protocol,
244 &candidate_type, 244 &candidate_type,
245 &priority, 245 &priority,
246 &url); 246 &url,
247 &deleted);
247 248
248 RTCIceCandidateStats::RTCIceCandidateStats( 249 RTCIceCandidateStats::RTCIceCandidateStats(
249 const std::string& id, int64_t timestamp_us, bool is_remote) 250 const std::string& id, int64_t timestamp_us, bool is_remote)
250 : RTCIceCandidateStats(std::string(id), timestamp_us, is_remote) { 251 : RTCIceCandidateStats(std::string(id), timestamp_us, is_remote) {
251 } 252 }
252 253
253 RTCIceCandidateStats::RTCIceCandidateStats( 254 RTCIceCandidateStats::RTCIceCandidateStats(
254 std::string&& id, int64_t timestamp_us, bool is_remote) 255 std::string&& id, int64_t timestamp_us, bool is_remote)
255 : RTCStats(std::move(id), timestamp_us), 256 : RTCStats(std::move(id), timestamp_us),
256 is_remote("isRemote", is_remote), 257 is_remote("isRemote", is_remote),
257 ip("ip"), 258 ip("ip"),
258 port("port"), 259 port("port"),
259 protocol("protocol"), 260 protocol("protocol"),
260 candidate_type("candidateType"), 261 candidate_type("candidateType"),
261 priority("priority"), 262 priority("priority"),
262 url("url") { 263 url("url"),
264 deleted("deleted", false) {
263 } 265 }
264 266
265 RTCIceCandidateStats::RTCIceCandidateStats(const RTCIceCandidateStats& other) 267 RTCIceCandidateStats::RTCIceCandidateStats(const RTCIceCandidateStats& other)
266 : RTCStats(other.id(), other.timestamp_us()), 268 : RTCStats(other.id(), other.timestamp_us()),
267 is_remote(other.is_remote), 269 is_remote(other.is_remote),
268 ip(other.ip), 270 ip(other.ip),
269 port(other.port), 271 port(other.port),
270 protocol(other.protocol), 272 protocol(other.protocol),
271 candidate_type(other.candidate_type), 273 candidate_type(other.candidate_type),
272 priority(other.priority), 274 priority(other.priority),
273 url(other.url) { 275 url(other.url),
276 deleted(other.deleted) {
274 } 277 }
275 278
276 RTCIceCandidateStats::~RTCIceCandidateStats() { 279 RTCIceCandidateStats::~RTCIceCandidateStats() {
277 } 280 }
278 281
279 const char RTCLocalIceCandidateStats::kType[] = "local-candidate"; 282 const char RTCLocalIceCandidateStats::kType[] = "local-candidate";
280 283
281 RTCLocalIceCandidateStats::RTCLocalIceCandidateStats( 284 RTCLocalIceCandidateStats::RTCLocalIceCandidateStats(
282 const std::string& id, int64_t timestamp_us) 285 const std::string& id, int64_t timestamp_us)
283 : RTCIceCandidateStats(id, timestamp_us, false) { 286 : RTCIceCandidateStats(id, timestamp_us, false) {
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 active_connection(other.active_connection), 624 active_connection(other.active_connection),
622 selected_candidate_pair_id(other.selected_candidate_pair_id), 625 selected_candidate_pair_id(other.selected_candidate_pair_id),
623 local_certificate_id(other.local_certificate_id), 626 local_certificate_id(other.local_certificate_id),
624 remote_certificate_id(other.remote_certificate_id) { 627 remote_certificate_id(other.remote_certificate_id) {
625 } 628 }
626 629
627 RTCTransportStats::~RTCTransportStats() { 630 RTCTransportStats::~RTCTransportStats() {
628 } 631 }
629 632
630 } // namespace webrtc 633 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/stats/rtcstats_objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698