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

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

Issue 2452043002: RTCInboundRTPStreamStats added. (Closed)
Patch Set: Rebase with master after CL this depends on landed Created 4 years, 1 month 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 | « webrtc/api/rtcstatscollector_unittest.cc ('k') | webrtc/stats/rtcstats_objects.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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 RTCStatsMember<uint32_t> nack_count; 232 RTCStatsMember<uint32_t> nack_count;
233 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657854 233 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657854
234 // SLI count is only defined for |media_type == "video"|. 234 // SLI count is only defined for |media_type == "video"|.
235 RTCStatsMember<uint32_t> sli_count; 235 RTCStatsMember<uint32_t> sli_count;
236 236
237 protected: 237 protected:
238 RTCRTPStreamStats(const std::string& id, int64_t timestamp_us); 238 RTCRTPStreamStats(const std::string& id, int64_t timestamp_us);
239 RTCRTPStreamStats(std::string&& id, int64_t timestamp_us); 239 RTCRTPStreamStats(std::string&& id, int64_t timestamp_us);
240 }; 240 };
241 241
242 // https://w3c.github.io/webrtc-stats/#inboundrtpstats-dict*
243 // TODO(hbos): Finish implementation and support the remote case
244 // |is_remote = true|. Tracking bug crbug.com/657855
245 class RTCInboundRTPStreamStats final : public RTCRTPStreamStats {
246 public:
247 WEBRTC_RTCSTATS_DECL();
248
249 RTCInboundRTPStreamStats(const std::string& id, int64_t timestamp_us);
250 RTCInboundRTPStreamStats(std::string&& id, int64_t timestamp_us);
251 RTCInboundRTPStreamStats(const RTCInboundRTPStreamStats& other);
252 ~RTCInboundRTPStreamStats() override;
253
254 RTCStatsMember<uint32_t> packets_received;
255 RTCStatsMember<uint64_t> bytes_received;
256 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
257 RTCStatsMember<uint32_t> packets_lost;
258 // TODO(hbos): Not collected in the "video" case by |RTCStatsCollector|.
259 // crbug.com/657855
260 RTCStatsMember<double> jitter;
261 RTCStatsMember<double> fraction_lost;
262 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
263 RTCStatsMember<uint32_t> packets_discarded;
264 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
265 RTCStatsMember<uint32_t> packets_repaired;
266 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
267 RTCStatsMember<uint32_t> burst_packets_lost;
268 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
269 RTCStatsMember<uint32_t> burst_packets_discarded;
270 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
271 RTCStatsMember<uint32_t> burst_loss_count;
272 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
273 RTCStatsMember<uint32_t> burst_discard_count;
274 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
275 RTCStatsMember<double> burst_loss_rate;
276 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
277 RTCStatsMember<double> burst_discard_rate;
278 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
279 RTCStatsMember<double> gap_loss_rate;
280 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/657855
281 RTCStatsMember<double> gap_discard_rate;
282 };
283
242 // https://w3c.github.io/webrtc-stats/#outboundrtpstats-dict* 284 // https://w3c.github.io/webrtc-stats/#outboundrtpstats-dict*
243 // TODO(hbos): Finish implementation and support the remote case 285 // TODO(hbos): Finish implementation and support the remote case
244 // |is_remote = true|. Tracking bug crbug.com/657856 286 // |is_remote = true|. Tracking bug crbug.com/657856
245 class RTCOutboundRTPStreamStats final : public RTCRTPStreamStats { 287 class RTCOutboundRTPStreamStats final : public RTCRTPStreamStats {
246 public: 288 public:
247 WEBRTC_RTCSTATS_DECL(); 289 WEBRTC_RTCSTATS_DECL();
248 290
249 RTCOutboundRTPStreamStats(const std::string& id, int64_t timestamp_us); 291 RTCOutboundRTPStreamStats(const std::string& id, int64_t timestamp_us);
250 RTCOutboundRTPStreamStats(std::string&& id, int64_t timestamp_us); 292 RTCOutboundRTPStreamStats(std::string&& id, int64_t timestamp_us);
251 RTCOutboundRTPStreamStats(const RTCOutboundRTPStreamStats& other); 293 RTCOutboundRTPStreamStats(const RTCOutboundRTPStreamStats& other);
(...skipping 21 matching lines...) Expand all
273 RTCStatsMember<std::string> rtcp_transport_stats_id; 315 RTCStatsMember<std::string> rtcp_transport_stats_id;
274 RTCStatsMember<bool> active_connection; 316 RTCStatsMember<bool> active_connection;
275 RTCStatsMember<std::string> selected_candidate_pair_id; 317 RTCStatsMember<std::string> selected_candidate_pair_id;
276 RTCStatsMember<std::string> local_certificate_id; 318 RTCStatsMember<std::string> local_certificate_id;
277 RTCStatsMember<std::string> remote_certificate_id; 319 RTCStatsMember<std::string> remote_certificate_id;
278 }; 320 };
279 321
280 } // namespace webrtc 322 } // namespace webrtc
281 323
282 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ 324 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_
OLDNEW
« no previous file with comments | « webrtc/api/rtcstatscollector_unittest.cc ('k') | webrtc/stats/rtcstats_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698