| 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 11 matching lines...) Expand all Loading... |
| 22 const char* RTCStatsIceCandidatePairState::kInProgress = "in-progress"; | 22 const char* RTCStatsIceCandidatePairState::kInProgress = "in-progress"; |
| 23 const char* RTCStatsIceCandidatePairState::kFailed = "failed"; | 23 const char* RTCStatsIceCandidatePairState::kFailed = "failed"; |
| 24 const char* RTCStatsIceCandidatePairState::kSucceeded = "succeeded"; | 24 const char* RTCStatsIceCandidatePairState::kSucceeded = "succeeded"; |
| 25 | 25 |
| 26 // Strings defined in https://tools.ietf.org/html/rfc5245. | 26 // Strings defined in https://tools.ietf.org/html/rfc5245. |
| 27 const char* RTCIceCandidateType::kHost = "host"; | 27 const char* RTCIceCandidateType::kHost = "host"; |
| 28 const char* RTCIceCandidateType::kSrflx = "srflx"; | 28 const char* RTCIceCandidateType::kSrflx = "srflx"; |
| 29 const char* RTCIceCandidateType::kPrflx = "prflx"; | 29 const char* RTCIceCandidateType::kPrflx = "prflx"; |
| 30 const char* RTCIceCandidateType::kRelay = "relay"; | 30 const char* RTCIceCandidateType::kRelay = "relay"; |
| 31 | 31 |
| 32 const char* RTCDtlsTransportState::kNew = "new"; |
| 33 const char* RTCDtlsTransportState::kConnecting = "connecting"; |
| 34 const char* RTCDtlsTransportState::kConnected = "connected"; |
| 35 const char* RTCDtlsTransportState::kClosed = "closed"; |
| 36 const char* RTCDtlsTransportState::kFailed = "failed"; |
| 37 |
| 32 WEBRTC_RTCSTATS_IMPL(RTCCertificateStats, RTCStats, "certificate", | 38 WEBRTC_RTCSTATS_IMPL(RTCCertificateStats, RTCStats, "certificate", |
| 33 &fingerprint, | 39 &fingerprint, |
| 34 &fingerprint_algorithm, | 40 &fingerprint_algorithm, |
| 35 &base64_certificate, | 41 &base64_certificate, |
| 36 &issuer_certificate_id); | 42 &issuer_certificate_id); |
| 37 | 43 |
| 38 RTCCertificateStats::RTCCertificateStats( | 44 RTCCertificateStats::RTCCertificateStats( |
| 39 const std::string& id, int64_t timestamp_us) | 45 const std::string& id, int64_t timestamp_us) |
| 40 : RTCCertificateStats(std::string(id), timestamp_us) { | 46 : RTCCertificateStats(std::string(id), timestamp_us) { |
| 41 } | 47 } |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 frames_encoded(other.frames_encoded) { | 600 frames_encoded(other.frames_encoded) { |
| 595 } | 601 } |
| 596 | 602 |
| 597 RTCOutboundRTPStreamStats::~RTCOutboundRTPStreamStats() { | 603 RTCOutboundRTPStreamStats::~RTCOutboundRTPStreamStats() { |
| 598 } | 604 } |
| 599 | 605 |
| 600 WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport", | 606 WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport", |
| 601 &bytes_sent, | 607 &bytes_sent, |
| 602 &bytes_received, | 608 &bytes_received, |
| 603 &rtcp_transport_stats_id, | 609 &rtcp_transport_stats_id, |
| 604 &active_connection, | 610 &dtls_state, |
| 605 &selected_candidate_pair_id, | 611 &selected_candidate_pair_id, |
| 606 &local_certificate_id, | 612 &local_certificate_id, |
| 607 &remote_certificate_id); | 613 &remote_certificate_id); |
| 608 | 614 |
| 609 RTCTransportStats::RTCTransportStats( | 615 RTCTransportStats::RTCTransportStats( |
| 610 const std::string& id, int64_t timestamp_us) | 616 const std::string& id, int64_t timestamp_us) |
| 611 : RTCTransportStats(std::string(id), timestamp_us) { | 617 : RTCTransportStats(std::string(id), timestamp_us) { |
| 612 } | 618 } |
| 613 | 619 |
| 614 RTCTransportStats::RTCTransportStats( | 620 RTCTransportStats::RTCTransportStats( |
| 615 std::string&& id, int64_t timestamp_us) | 621 std::string&& id, int64_t timestamp_us) |
| 616 : RTCStats(std::move(id), timestamp_us), | 622 : RTCStats(std::move(id), timestamp_us), |
| 617 bytes_sent("bytesSent"), | 623 bytes_sent("bytesSent"), |
| 618 bytes_received("bytesReceived"), | 624 bytes_received("bytesReceived"), |
| 619 rtcp_transport_stats_id("rtcpTransportStatsId"), | 625 rtcp_transport_stats_id("rtcpTransportStatsId"), |
| 620 active_connection("activeConnection"), | 626 dtls_state("dtlsState"), |
| 621 selected_candidate_pair_id("selectedCandidatePairId"), | 627 selected_candidate_pair_id("selectedCandidatePairId"), |
| 622 local_certificate_id("localCertificateId"), | 628 local_certificate_id("localCertificateId"), |
| 623 remote_certificate_id("remoteCertificateId") { | 629 remote_certificate_id("remoteCertificateId") { |
| 624 } | 630 } |
| 625 | 631 |
| 626 RTCTransportStats::RTCTransportStats( | 632 RTCTransportStats::RTCTransportStats( |
| 627 const RTCTransportStats& other) | 633 const RTCTransportStats& other) |
| 628 : RTCStats(other.id(), other.timestamp_us()), | 634 : RTCStats(other.id(), other.timestamp_us()), |
| 629 bytes_sent(other.bytes_sent), | 635 bytes_sent(other.bytes_sent), |
| 630 bytes_received(other.bytes_received), | 636 bytes_received(other.bytes_received), |
| 631 rtcp_transport_stats_id(other.rtcp_transport_stats_id), | 637 rtcp_transport_stats_id(other.rtcp_transport_stats_id), |
| 632 active_connection(other.active_connection), | 638 dtls_state(other.dtls_state), |
| 633 selected_candidate_pair_id(other.selected_candidate_pair_id), | 639 selected_candidate_pair_id(other.selected_candidate_pair_id), |
| 634 local_certificate_id(other.local_certificate_id), | 640 local_certificate_id(other.local_certificate_id), |
| 635 remote_certificate_id(other.remote_certificate_id) { | 641 remote_certificate_id(other.remote_certificate_id) { |
| 636 } | 642 } |
| 637 | 643 |
| 638 RTCTransportStats::~RTCTransportStats() { | 644 RTCTransportStats::~RTCTransportStats() { |
| 639 } | 645 } |
| 640 | 646 |
| 641 } // namespace webrtc | 647 } // namespace webrtc |
| OLD | NEW |