OLD | NEW |
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 consent_requests_received(other.consent_requests_received), | 230 consent_requests_received(other.consent_requests_received), |
231 consent_requests_sent(other.consent_requests_sent), | 231 consent_requests_sent(other.consent_requests_sent), |
232 consent_responses_received(other.consent_responses_received), | 232 consent_responses_received(other.consent_responses_received), |
233 consent_responses_sent(other.consent_responses_sent) { | 233 consent_responses_sent(other.consent_responses_sent) { |
234 } | 234 } |
235 | 235 |
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 &ip, | 241 &ip, |
241 &port, | 242 &port, |
242 &protocol, | 243 &protocol, |
243 &candidate_type, | 244 &candidate_type, |
244 &priority, | 245 &priority, |
245 &url); | 246 &url); |
246 | 247 |
247 RTCIceCandidateStats::RTCIceCandidateStats( | 248 RTCIceCandidateStats::RTCIceCandidateStats( |
248 const std::string& id, int64_t timestamp_us) | 249 const std::string& id, int64_t timestamp_us, bool is_remote) |
249 : RTCIceCandidateStats(std::string(id), timestamp_us) { | 250 : RTCIceCandidateStats(std::string(id), timestamp_us, is_remote) { |
250 } | 251 } |
251 | 252 |
252 RTCIceCandidateStats::RTCIceCandidateStats( | 253 RTCIceCandidateStats::RTCIceCandidateStats( |
253 std::string&& id, int64_t timestamp_us) | 254 std::string&& id, int64_t timestamp_us, bool is_remote) |
254 : RTCStats(std::move(id), timestamp_us), | 255 : RTCStats(std::move(id), timestamp_us), |
| 256 is_remote("isRemote", is_remote), |
255 ip("ip"), | 257 ip("ip"), |
256 port("port"), | 258 port("port"), |
257 protocol("protocol"), | 259 protocol("protocol"), |
258 candidate_type("candidateType"), | 260 candidate_type("candidateType"), |
259 priority("priority"), | 261 priority("priority"), |
260 url("url") { | 262 url("url") { |
261 } | 263 } |
262 | 264 |
263 RTCIceCandidateStats::RTCIceCandidateStats(const RTCIceCandidateStats& other) | 265 RTCIceCandidateStats::RTCIceCandidateStats(const RTCIceCandidateStats& other) |
264 : RTCStats(other.id(), other.timestamp_us()), | 266 : RTCStats(other.id(), other.timestamp_us()), |
| 267 is_remote(other.is_remote), |
265 ip(other.ip), | 268 ip(other.ip), |
266 port(other.port), | 269 port(other.port), |
267 protocol(other.protocol), | 270 protocol(other.protocol), |
268 candidate_type(other.candidate_type), | 271 candidate_type(other.candidate_type), |
269 priority(other.priority), | 272 priority(other.priority), |
270 url(other.url) { | 273 url(other.url) { |
271 } | 274 } |
272 | 275 |
273 RTCIceCandidateStats::~RTCIceCandidateStats() { | 276 RTCIceCandidateStats::~RTCIceCandidateStats() { |
274 } | 277 } |
275 | 278 |
276 const char RTCLocalIceCandidateStats::kType[] = "local-candidate"; | 279 const char RTCLocalIceCandidateStats::kType[] = "local-candidate"; |
277 | 280 |
278 RTCLocalIceCandidateStats::RTCLocalIceCandidateStats( | 281 RTCLocalIceCandidateStats::RTCLocalIceCandidateStats( |
279 const std::string& id, int64_t timestamp_us) | 282 const std::string& id, int64_t timestamp_us) |
280 : RTCIceCandidateStats(id, timestamp_us) { | 283 : RTCIceCandidateStats(id, timestamp_us, false) { |
281 } | 284 } |
282 | 285 |
283 RTCLocalIceCandidateStats::RTCLocalIceCandidateStats( | 286 RTCLocalIceCandidateStats::RTCLocalIceCandidateStats( |
284 std::string&& id, int64_t timestamp_us) | 287 std::string&& id, int64_t timestamp_us) |
285 : RTCIceCandidateStats(std::move(id), timestamp_us) { | 288 : RTCIceCandidateStats(std::move(id), timestamp_us, false) { |
286 } | 289 } |
287 | 290 |
288 const char* RTCLocalIceCandidateStats::type() const { | 291 const char* RTCLocalIceCandidateStats::type() const { |
289 return kType; | 292 return kType; |
290 } | 293 } |
291 | 294 |
292 const char RTCRemoteIceCandidateStats::kType[] = "remote-candidate"; | 295 const char RTCRemoteIceCandidateStats::kType[] = "remote-candidate"; |
293 | 296 |
294 RTCRemoteIceCandidateStats::RTCRemoteIceCandidateStats( | 297 RTCRemoteIceCandidateStats::RTCRemoteIceCandidateStats( |
295 const std::string& id, int64_t timestamp_us) | 298 const std::string& id, int64_t timestamp_us) |
296 : RTCIceCandidateStats(id, timestamp_us) { | 299 : RTCIceCandidateStats(id, timestamp_us, true) { |
297 } | 300 } |
298 | 301 |
299 RTCRemoteIceCandidateStats::RTCRemoteIceCandidateStats( | 302 RTCRemoteIceCandidateStats::RTCRemoteIceCandidateStats( |
300 std::string&& id, int64_t timestamp_us) | 303 std::string&& id, int64_t timestamp_us) |
301 : RTCIceCandidateStats(std::move(id), timestamp_us) { | 304 : RTCIceCandidateStats(std::move(id), timestamp_us, true) { |
302 } | 305 } |
303 | 306 |
304 const char* RTCRemoteIceCandidateStats::type() const { | 307 const char* RTCRemoteIceCandidateStats::type() const { |
305 return kType; | 308 return kType; |
306 } | 309 } |
307 | 310 |
308 WEBRTC_RTCSTATS_IMPL(RTCMediaStreamStats, RTCStats, "stream", | 311 WEBRTC_RTCSTATS_IMPL(RTCMediaStreamStats, RTCStats, "stream", |
309 &stream_identifier, | 312 &stream_identifier, |
310 &track_ids); | 313 &track_ids); |
311 | 314 |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 active_connection(other.active_connection), | 621 active_connection(other.active_connection), |
619 selected_candidate_pair_id(other.selected_candidate_pair_id), | 622 selected_candidate_pair_id(other.selected_candidate_pair_id), |
620 local_certificate_id(other.local_certificate_id), | 623 local_certificate_id(other.local_certificate_id), |
621 remote_certificate_id(other.remote_certificate_id) { | 624 remote_certificate_id(other.remote_certificate_id) { |
622 } | 625 } |
623 | 626 |
624 RTCTransportStats::~RTCTransportStats() { | 627 RTCTransportStats::~RTCTransportStats() { |
625 } | 628 } |
626 | 629 |
627 } // namespace webrtc | 630 } // namespace webrtc |
OLD | NEW |