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 14 matching lines...) Expand all Loading... | |
25 static const char* kClosed; | 25 static const char* kClosed; |
26 }; | 26 }; |
27 | 27 |
28 // https://w3c.github.io/webrtc-stats/#dom-rtcstatsicecandidatepairstate | 28 // https://w3c.github.io/webrtc-stats/#dom-rtcstatsicecandidatepairstate |
29 struct RTCStatsIceCandidatePairState { | 29 struct RTCStatsIceCandidatePairState { |
30 static const char* kFrozen; | 30 static const char* kFrozen; |
31 static const char* kWaiting; | 31 static const char* kWaiting; |
32 static const char* kInProgress; | 32 static const char* kInProgress; |
33 static const char* kFailed; | 33 static const char* kFailed; |
34 static const char* kSucceeded; | 34 static const char* kSucceeded; |
35 static const char* kCancelled; | |
hbos
2016/12/23 13:45:34
Our implementation does not support this value and
| |
36 }; | 35 }; |
37 | 36 |
38 // https://w3c.github.io/webrtc-pc/#rtcicecandidatetype-enum | 37 // https://w3c.github.io/webrtc-pc/#rtcicecandidatetype-enum |
39 struct RTCIceCandidateType { | 38 struct RTCIceCandidateType { |
40 static const char* kHost; | 39 static const char* kHost; |
41 static const char* kSrflx; | 40 static const char* kSrflx; |
42 static const char* kPrflx; | 41 static const char* kPrflx; |
43 static const char* kRelay; | 42 static const char* kRelay; |
44 }; | 43 }; |
45 | 44 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 RTCIceCandidatePairStats(const std::string& id, int64_t timestamp_us); | 112 RTCIceCandidatePairStats(const std::string& id, int64_t timestamp_us); |
114 RTCIceCandidatePairStats(std::string&& id, int64_t timestamp_us); | 113 RTCIceCandidatePairStats(std::string&& id, int64_t timestamp_us); |
115 RTCIceCandidatePairStats(const RTCIceCandidatePairStats& other); | 114 RTCIceCandidatePairStats(const RTCIceCandidatePairStats& other); |
116 ~RTCIceCandidatePairStats() override; | 115 ~RTCIceCandidatePairStats() override; |
117 | 116 |
118 RTCStatsMember<std::string> transport_id; | 117 RTCStatsMember<std::string> transport_id; |
119 RTCStatsMember<std::string> local_candidate_id; | 118 RTCStatsMember<std::string> local_candidate_id; |
120 RTCStatsMember<std::string> remote_candidate_id; | 119 RTCStatsMember<std::string> remote_candidate_id; |
121 // TODO(hbos): Support enum types? | 120 // TODO(hbos): Support enum types? |
122 // "RTCStatsMember<RTCStatsIceCandidatePairState>"? | 121 // "RTCStatsMember<RTCStatsIceCandidatePairState>"? |
123 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 | |
124 RTCStatsMember<std::string> state; | 122 RTCStatsMember<std::string> state; |
125 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 | |
126 RTCStatsMember<uint64_t> priority; | 123 RTCStatsMember<uint64_t> priority; |
127 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 | 124 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 |
128 RTCStatsMember<bool> nominated; | 125 RTCStatsMember<bool> nominated; |
129 // TODO(hbos): Collected by |RTCStatsCollector| but different than the spec. | 126 // TODO(hbos): Collected by |RTCStatsCollector| but different than the spec. |
130 // crbug.com/633550 | 127 // crbug.com/633550 |
131 RTCStatsMember<bool> writable; | 128 RTCStatsMember<bool> writable; |
132 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 | 129 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 |
133 RTCStatsMember<bool> readable; | 130 RTCStatsMember<bool> readable; |
134 RTCStatsMember<uint64_t> bytes_sent; | 131 RTCStatsMember<uint64_t> bytes_sent; |
135 RTCStatsMember<uint64_t> bytes_received; | 132 RTCStatsMember<uint64_t> bytes_received; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
388 RTCStatsMember<std::string> rtcp_transport_stats_id; | 385 RTCStatsMember<std::string> rtcp_transport_stats_id; |
389 RTCStatsMember<bool> active_connection; | 386 RTCStatsMember<bool> active_connection; |
390 RTCStatsMember<std::string> selected_candidate_pair_id; | 387 RTCStatsMember<std::string> selected_candidate_pair_id; |
391 RTCStatsMember<std::string> local_certificate_id; | 388 RTCStatsMember<std::string> local_certificate_id; |
392 RTCStatsMember<std::string> remote_certificate_id; | 389 RTCStatsMember<std::string> remote_certificate_id; |
393 }; | 390 }; |
394 | 391 |
395 } // namespace webrtc | 392 } // namespace webrtc |
396 | 393 |
397 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ | 394 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ |
OLD | NEW |