| 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 24 matching lines...) Expand all Loading... |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 // https://w3c.github.io/webrtc-pc/#rtcicecandidatetype-enum | 37 // https://w3c.github.io/webrtc-pc/#rtcicecandidatetype-enum |
| 38 struct RTCIceCandidateType { | 38 struct RTCIceCandidateType { |
| 39 static const char* kHost; | 39 static const char* kHost; |
| 40 static const char* kSrflx; | 40 static const char* kSrflx; |
| 41 static const char* kPrflx; | 41 static const char* kPrflx; |
| 42 static const char* kRelay; | 42 static const char* kRelay; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 // https://w3c.github.io/webrtc-pc/#idl-def-rtcdtlstransportstate |
| 46 struct RTCDtlsTransportState { |
| 47 static const char* kNew; |
| 48 static const char* kConnecting; |
| 49 static const char* kConnected; |
| 50 static const char* kClosed; |
| 51 static const char* kFailed; |
| 52 }; |
| 53 |
| 45 // https://w3c.github.io/webrtc-stats/#certificatestats-dict* | 54 // https://w3c.github.io/webrtc-stats/#certificatestats-dict* |
| 46 class RTCCertificateStats final : public RTCStats { | 55 class RTCCertificateStats final : public RTCStats { |
| 47 public: | 56 public: |
| 48 WEBRTC_RTCSTATS_DECL(); | 57 WEBRTC_RTCSTATS_DECL(); |
| 49 | 58 |
| 50 RTCCertificateStats(const std::string& id, int64_t timestamp_us); | 59 RTCCertificateStats(const std::string& id, int64_t timestamp_us); |
| 51 RTCCertificateStats(std::string&& id, int64_t timestamp_us); | 60 RTCCertificateStats(std::string&& id, int64_t timestamp_us); |
| 52 RTCCertificateStats(const RTCCertificateStats& other); | 61 RTCCertificateStats(const RTCCertificateStats& other); |
| 53 ~RTCCertificateStats() override; | 62 ~RTCCertificateStats() override; |
| 54 | 63 |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 WEBRTC_RTCSTATS_DECL(); | 394 WEBRTC_RTCSTATS_DECL(); |
| 386 | 395 |
| 387 RTCTransportStats(const std::string& id, int64_t timestamp_us); | 396 RTCTransportStats(const std::string& id, int64_t timestamp_us); |
| 388 RTCTransportStats(std::string&& id, int64_t timestamp_us); | 397 RTCTransportStats(std::string&& id, int64_t timestamp_us); |
| 389 RTCTransportStats(const RTCTransportStats& other); | 398 RTCTransportStats(const RTCTransportStats& other); |
| 390 ~RTCTransportStats() override; | 399 ~RTCTransportStats() override; |
| 391 | 400 |
| 392 RTCStatsMember<uint64_t> bytes_sent; | 401 RTCStatsMember<uint64_t> bytes_sent; |
| 393 RTCStatsMember<uint64_t> bytes_received; | 402 RTCStatsMember<uint64_t> bytes_received; |
| 394 RTCStatsMember<std::string> rtcp_transport_stats_id; | 403 RTCStatsMember<std::string> rtcp_transport_stats_id; |
| 395 RTCStatsMember<bool> active_connection; | 404 // TODO(hbos): Support enum types? "RTCStatsMember<RTCDtlsTransportState>"? |
| 405 RTCStatsMember<std::string> dtls_state; |
| 396 RTCStatsMember<std::string> selected_candidate_pair_id; | 406 RTCStatsMember<std::string> selected_candidate_pair_id; |
| 397 RTCStatsMember<std::string> local_certificate_id; | 407 RTCStatsMember<std::string> local_certificate_id; |
| 398 RTCStatsMember<std::string> remote_certificate_id; | 408 RTCStatsMember<std::string> remote_certificate_id; |
| 399 }; | 409 }; |
| 400 | 410 |
| 401 } // namespace webrtc | 411 } // namespace webrtc |
| 402 | 412 |
| 403 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ | 413 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ |
| OLD | NEW |