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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 : RTCStats(other.id(), other.timestamp_us()), | 55 : RTCStats(other.id(), other.timestamp_us()), |
56 fingerprint(other.fingerprint), | 56 fingerprint(other.fingerprint), |
57 fingerprint_algorithm(other.fingerprint_algorithm), | 57 fingerprint_algorithm(other.fingerprint_algorithm), |
58 base64_certificate(other.base64_certificate), | 58 base64_certificate(other.base64_certificate), |
59 issuer_certificate_id(other.issuer_certificate_id) { | 59 issuer_certificate_id(other.issuer_certificate_id) { |
60 } | 60 } |
61 | 61 |
62 RTCCertificateStats::~RTCCertificateStats() { | 62 RTCCertificateStats::~RTCCertificateStats() { |
63 } | 63 } |
64 | 64 |
| 65 WEBRTC_RTCSTATS_IMPL(RTCCodecStats, RTCStats, "codec", |
| 66 &payload_type, |
| 67 &codec, |
| 68 &clock_rate, |
| 69 &channels, |
| 70 ¶meters, |
| 71 &implementation); |
| 72 |
| 73 RTCCodecStats::RTCCodecStats( |
| 74 const std::string& id, int64_t timestamp_us) |
| 75 : RTCCodecStats(std::string(id), timestamp_us) { |
| 76 } |
| 77 |
| 78 RTCCodecStats::RTCCodecStats( |
| 79 std::string&& id, int64_t timestamp_us) |
| 80 : RTCStats(std::move(id), timestamp_us), |
| 81 payload_type("payloadType"), |
| 82 codec("codec"), |
| 83 clock_rate("clockRate"), |
| 84 channels("channels"), |
| 85 parameters("parameters"), |
| 86 implementation("implementation") { |
| 87 } |
| 88 |
| 89 RTCCodecStats::RTCCodecStats( |
| 90 const RTCCodecStats& other) |
| 91 : RTCStats(other.id(), other.timestamp_us()), |
| 92 payload_type(other.payload_type), |
| 93 codec(other.codec), |
| 94 clock_rate(other.clock_rate), |
| 95 channels(other.channels), |
| 96 parameters(other.parameters), |
| 97 implementation(other.implementation) { |
| 98 } |
| 99 |
| 100 RTCCodecStats::~RTCCodecStats() { |
| 101 } |
| 102 |
65 WEBRTC_RTCSTATS_IMPL(RTCDataChannelStats, RTCStats, "data-channel", | 103 WEBRTC_RTCSTATS_IMPL(RTCDataChannelStats, RTCStats, "data-channel", |
66 &label, | 104 &label, |
67 &protocol, | 105 &protocol, |
68 &datachannelid, | 106 &datachannelid, |
69 &state, | 107 &state, |
70 &messages_sent, | 108 &messages_sent, |
71 &bytes_sent, | 109 &bytes_sent, |
72 &messages_received, | 110 &messages_received, |
73 &bytes_received); | 111 &bytes_received); |
74 | 112 |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 active_connection(other.active_connection), | 618 active_connection(other.active_connection), |
581 selected_candidate_pair_id(other.selected_candidate_pair_id), | 619 selected_candidate_pair_id(other.selected_candidate_pair_id), |
582 local_certificate_id(other.local_certificate_id), | 620 local_certificate_id(other.local_certificate_id), |
583 remote_certificate_id(other.remote_certificate_id) { | 621 remote_certificate_id(other.remote_certificate_id) { |
584 } | 622 } |
585 | 623 |
586 RTCTransportStats::~RTCTransportStats() { | 624 RTCTransportStats::~RTCTransportStats() { |
587 } | 625 } |
588 | 626 |
589 } // namespace webrtc | 627 } // namespace webrtc |
OLD | NEW |