| 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 |
| 11 #include "webrtc/api/stats/rtcstats_objects.h" | 11 #include "webrtc/api/stats/rtcstats_objects.h" |
| 12 | 12 |
| 13 namespace webrtc { | 13 namespace webrtc { |
| 14 | 14 |
| 15 const char* RTCIceCandidateType::kHost = "host"; |
| 16 const char* RTCIceCandidateType::kSrflx = "srflx"; |
| 17 const char* RTCIceCandidateType::kPrflx = "prflx"; |
| 18 const char* RTCIceCandidateType::kRelay = "relay"; |
| 19 |
| 20 const char RTCIceCandidateStats::kType[] = "ice-candidate"; |
| 21 |
| 22 RTCIceCandidateStats::RTCIceCandidateStats( |
| 23 const std::string& id, int64_t timestamp_us) |
| 24 : RTCIceCandidateStats(std::string(id), timestamp_us) { |
| 25 } |
| 26 |
| 27 RTCIceCandidateStats::RTCIceCandidateStats( |
| 28 std::string&& id, int64_t timestamp_us) |
| 29 : RTCStats(std::move(id), timestamp_us), |
| 30 ip("ip"), |
| 31 port("port"), |
| 32 protocol("protocol"), |
| 33 candidate_type("candidateType"), |
| 34 priority("priority"), |
| 35 url("url") { |
| 36 } |
| 37 |
| 38 const char RTCLocalIceCandidateStats::kType[] = "local-candidate"; |
| 39 |
| 40 RTCLocalIceCandidateStats::RTCLocalIceCandidateStats( |
| 41 const std::string& id, int64_t timestamp_us) |
| 42 : RTCIceCandidateStats(id, timestamp_us) { |
| 43 } |
| 44 |
| 45 RTCLocalIceCandidateStats::RTCLocalIceCandidateStats( |
| 46 std::string&& id, int64_t timestamp_us) |
| 47 : RTCIceCandidateStats(std::move(id), timestamp_us) { |
| 48 } |
| 49 |
| 50 const char RTCRemoteIceCandidateStats::kType[] = "remote-candidate"; |
| 51 |
| 52 RTCRemoteIceCandidateStats::RTCRemoteIceCandidateStats( |
| 53 const std::string& id, int64_t timestamp_us) |
| 54 : RTCIceCandidateStats(id, timestamp_us) { |
| 55 } |
| 56 |
| 57 RTCRemoteIceCandidateStats::RTCRemoteIceCandidateStats( |
| 58 std::string&& id, int64_t timestamp_us) |
| 59 : RTCIceCandidateStats(std::move(id), timestamp_us) { |
| 60 } |
| 61 |
| 15 const char RTCCertificateStats::kType[] = "certificate"; | 62 const char RTCCertificateStats::kType[] = "certificate"; |
| 16 | 63 |
| 17 RTCCertificateStats::RTCCertificateStats( | 64 RTCCertificateStats::RTCCertificateStats( |
| 18 const std::string& id, int64_t timestamp_us) | 65 const std::string& id, int64_t timestamp_us) |
| 19 : RTCCertificateStats(std::string(id), timestamp_us) { | 66 : RTCCertificateStats(std::string(id), timestamp_us) { |
| 20 } | 67 } |
| 21 | 68 |
| 22 RTCCertificateStats::RTCCertificateStats( | 69 RTCCertificateStats::RTCCertificateStats( |
| 23 std::string&& id, int64_t timestamp_us) | 70 std::string&& id, int64_t timestamp_us) |
| 24 : RTCStats(std::move(id), timestamp_us), | 71 : RTCStats(std::move(id), timestamp_us), |
| (...skipping 11 matching lines...) Expand all Loading... |
| 36 } | 83 } |
| 37 | 84 |
| 38 RTCPeerConnectionStats::RTCPeerConnectionStats( | 85 RTCPeerConnectionStats::RTCPeerConnectionStats( |
| 39 std::string&& id, int64_t timestamp_us) | 86 std::string&& id, int64_t timestamp_us) |
| 40 : RTCStats(std::move(id), timestamp_us), | 87 : RTCStats(std::move(id), timestamp_us), |
| 41 data_channels_opened("dataChannelsOpened"), | 88 data_channels_opened("dataChannelsOpened"), |
| 42 data_channels_closed("dataChannelsClosed") { | 89 data_channels_closed("dataChannelsClosed") { |
| 43 } | 90 } |
| 44 | 91 |
| 45 } // namespace webrtc | 92 } // namespace webrtc |
| OLD | NEW |