Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: webrtc/api/stats/rtcstats_objects.h

Issue 2675923002: RTCIceCandidatePairStats.available[Outgoing/Incoming]Bitrate collected. (Closed)
Patch Set: Rebase with master Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/pc/rtcstats_integrationtest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 RTCStatsMember<int32_t> datachannelid; 112 RTCStatsMember<int32_t> datachannelid;
113 // TODO(hbos): Support enum types? "RTCStatsMember<RTCDataChannelState>"? 113 // TODO(hbos): Support enum types? "RTCStatsMember<RTCDataChannelState>"?
114 RTCStatsMember<std::string> state; 114 RTCStatsMember<std::string> state;
115 RTCStatsMember<uint32_t> messages_sent; 115 RTCStatsMember<uint32_t> messages_sent;
116 RTCStatsMember<uint64_t> bytes_sent; 116 RTCStatsMember<uint64_t> bytes_sent;
117 RTCStatsMember<uint32_t> messages_received; 117 RTCStatsMember<uint32_t> messages_received;
118 RTCStatsMember<uint64_t> bytes_received; 118 RTCStatsMember<uint64_t> bytes_received;
119 }; 119 };
120 120
121 // https://w3c.github.io/webrtc-stats/#candidatepair-dict* 121 // https://w3c.github.io/webrtc-stats/#candidatepair-dict*
122 // TODO(hbos): Tracking bug crbug.com/633550 122 // TODO(hbos): Tracking bug https://bugs.webrtc.org/7062
123 class RTCIceCandidatePairStats final : public RTCStats { 123 class RTCIceCandidatePairStats final : public RTCStats {
124 public: 124 public:
125 WEBRTC_RTCSTATS_DECL(); 125 WEBRTC_RTCSTATS_DECL();
126 126
127 RTCIceCandidatePairStats(const std::string& id, int64_t timestamp_us); 127 RTCIceCandidatePairStats(const std::string& id, int64_t timestamp_us);
128 RTCIceCandidatePairStats(std::string&& id, int64_t timestamp_us); 128 RTCIceCandidatePairStats(std::string&& id, int64_t timestamp_us);
129 RTCIceCandidatePairStats(const RTCIceCandidatePairStats& other); 129 RTCIceCandidatePairStats(const RTCIceCandidatePairStats& other);
130 ~RTCIceCandidatePairStats() override; 130 ~RTCIceCandidatePairStats() override;
131 131
132 RTCStatsMember<std::string> transport_id; 132 RTCStatsMember<std::string> transport_id;
133 RTCStatsMember<std::string> local_candidate_id; 133 RTCStatsMember<std::string> local_candidate_id;
134 RTCStatsMember<std::string> remote_candidate_id; 134 RTCStatsMember<std::string> remote_candidate_id;
135 // TODO(hbos): Support enum types? 135 // TODO(hbos): Support enum types?
136 // "RTCStatsMember<RTCStatsIceCandidatePairState>"? 136 // "RTCStatsMember<RTCStatsIceCandidatePairState>"?
137 RTCStatsMember<std::string> state; 137 RTCStatsMember<std::string> state;
138 RTCStatsMember<uint64_t> priority; 138 RTCStatsMember<uint64_t> priority;
139 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 139 // TODO(hbos): Collect and populate this value. https://bugs.webrtc.org/7062
140 RTCStatsMember<bool> nominated; 140 RTCStatsMember<bool> nominated;
141 // TODO(hbos): Collected by |RTCStatsCollector| but different than the spec. 141 // TODO(hbos): Collect this the way the spec describes it. We have a value for
142 // crbug.com/633550 142 // it but it is not spec-compliant. https://bugs.webrtc.org/7062
143 RTCStatsMember<bool> writable; 143 RTCStatsMember<bool> writable;
144 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 144 // TODO(hbos): Collect and populate this value. https://bugs.webrtc.org/7062
145 RTCStatsMember<bool> readable; 145 RTCStatsMember<bool> readable;
146 RTCStatsMember<uint64_t> bytes_sent; 146 RTCStatsMember<uint64_t> bytes_sent;
147 RTCStatsMember<uint64_t> bytes_received; 147 RTCStatsMember<uint64_t> bytes_received;
148 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 148 // TODO(hbos): Collect and populate this value. https://bugs.webrtc.org/7062
149 RTCStatsMember<double> total_round_trip_time; 149 RTCStatsMember<double> total_round_trip_time;
150 // TODO(hbos): Collected by |RTCStatsCollector| but different than the spec. 150 // TODO(hbos): Collect this the way the spec describes it. We have a value for
151 // crbug.com/633550 151 // it but it is not spec-compliant. https://bugs.webrtc.org/7062
152 RTCStatsMember<double> current_round_trip_time; 152 RTCStatsMember<double> current_round_trip_time;
153 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550
154 RTCStatsMember<double> available_outgoing_bitrate; 153 RTCStatsMember<double> available_outgoing_bitrate;
155 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 154 // TODO(hbos): Populate this value. It is wired up and collected the same way
155 // |VideoBwe.googAvailableReceiveBandwidth| is, but that value is always
156 // undefined. https://bugs.webrtc.org/7062
156 RTCStatsMember<double> available_incoming_bitrate; 157 RTCStatsMember<double> available_incoming_bitrate;
157 RTCStatsMember<uint64_t> requests_received; 158 RTCStatsMember<uint64_t> requests_received;
158 RTCStatsMember<uint64_t> requests_sent; 159 RTCStatsMember<uint64_t> requests_sent;
159 RTCStatsMember<uint64_t> responses_received; 160 RTCStatsMember<uint64_t> responses_received;
160 RTCStatsMember<uint64_t> responses_sent; 161 RTCStatsMember<uint64_t> responses_sent;
161 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 162 // TODO(hbos): Collect and populate this value. https://bugs.webrtc.org/7062
162 RTCStatsMember<uint64_t> retransmissions_received; 163 RTCStatsMember<uint64_t> retransmissions_received;
163 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 164 // TODO(hbos): Collect and populate this value. https://bugs.webrtc.org/7062
164 RTCStatsMember<uint64_t> retransmissions_sent; 165 RTCStatsMember<uint64_t> retransmissions_sent;
165 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 166 // TODO(hbos): Collect and populate this value. https://bugs.webrtc.org/7062
166 RTCStatsMember<uint64_t> consent_requests_received; 167 RTCStatsMember<uint64_t> consent_requests_received;
167 RTCStatsMember<uint64_t> consent_requests_sent; 168 RTCStatsMember<uint64_t> consent_requests_sent;
168 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 169 // TODO(hbos): Collect and populate this value. https://bugs.webrtc.org/7062
169 RTCStatsMember<uint64_t> consent_responses_received; 170 RTCStatsMember<uint64_t> consent_responses_received;
170 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/633550 171 // TODO(hbos): Collect and populate this value. https://bugs.webrtc.org/7062
171 RTCStatsMember<uint64_t> consent_responses_sent; 172 RTCStatsMember<uint64_t> consent_responses_sent;
172 }; 173 };
173 174
174 // https://w3c.github.io/webrtc-stats/#icecandidate-dict* 175 // https://w3c.github.io/webrtc-stats/#icecandidate-dict*
175 // TODO(hbos): |RTCStatsCollector| only collects candidates that are part of 176 // TODO(hbos): |RTCStatsCollector| only collects candidates that are part of
176 // ice candidate pairs, but there could be candidates not paired with anything. 177 // ice candidate pairs, but there could be candidates not paired with anything.
177 // crbug.com/632723 178 // crbug.com/632723
178 class RTCIceCandidateStats : public RTCStats { 179 class RTCIceCandidateStats : public RTCStats {
179 public: 180 public:
180 WEBRTC_RTCSTATS_DECL(); 181 WEBRTC_RTCSTATS_DECL();
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 // TODO(hbos): Support enum types? "RTCStatsMember<RTCDtlsTransportState>"? 410 // TODO(hbos): Support enum types? "RTCStatsMember<RTCDtlsTransportState>"?
410 RTCStatsMember<std::string> dtls_state; 411 RTCStatsMember<std::string> dtls_state;
411 RTCStatsMember<std::string> selected_candidate_pair_id; 412 RTCStatsMember<std::string> selected_candidate_pair_id;
412 RTCStatsMember<std::string> local_certificate_id; 413 RTCStatsMember<std::string> local_certificate_id;
413 RTCStatsMember<std::string> remote_certificate_id; 414 RTCStatsMember<std::string> remote_certificate_id;
414 }; 415 };
415 416
416 } // namespace webrtc 417 } // namespace webrtc
417 418
418 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ 419 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/pc/rtcstats_integrationtest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698