Chromium Code Reviews| 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 633 // smoothed according to the spec. crbug.com/633550. See | 633 // smoothed according to the spec. crbug.com/633550. See |
| 634 // https://w3c.github.io/webrtc-stats/#dom-rtcicecandidatepairstats-curr entrtt | 634 // https://w3c.github.io/webrtc-stats/#dom-rtcicecandidatepairstats-curr entrtt |
| 635 candidate_pair_stats->current_rtt = | 635 candidate_pair_stats->current_rtt = |
| 636 static_cast<double>(info.rtt) / rtc::kNumMillisecsPerSec; | 636 static_cast<double>(info.rtt) / rtc::kNumMillisecsPerSec; |
| 637 candidate_pair_stats->requests_sent = | 637 candidate_pair_stats->requests_sent = |
| 638 static_cast<uint64_t>(info.sent_ping_requests_total); | 638 static_cast<uint64_t>(info.sent_ping_requests_total); |
| 639 candidate_pair_stats->responses_received = | 639 candidate_pair_stats->responses_received = |
| 640 static_cast<uint64_t>(info.recv_ping_responses); | 640 static_cast<uint64_t>(info.recv_ping_responses); |
| 641 candidate_pair_stats->responses_sent = | 641 candidate_pair_stats->responses_sent = |
| 642 static_cast<uint64_t>(info.sent_ping_responses); | 642 static_cast<uint64_t>(info.sent_ping_responses); |
| 643 candidate_pair_stats->consent_requests_sent = static_cast<uint64_t>( | |
| 644 info.sent_ping_requests_before_first_response); | |
|
hbos
2016/12/08 15:05:05
This is the same value that is used by the old get
Taylor Brandstetter
2016/12/08 22:01:30
I think the old implementation is incorrect. If an
hta-webrtc
2016/12/09 09:58:25
Agreed. The defs in http://rawgit.com/w3c/webrtc-s
| |
| 643 | 645 |
| 644 report->AddStats(std::move(candidate_pair_stats)); | 646 report->AddStats(std::move(candidate_pair_stats)); |
| 645 } | 647 } |
| 646 } | 648 } |
| 647 } | 649 } |
| 648 } | 650 } |
| 649 | 651 |
| 650 void RTCStatsCollector::ProduceMediaStreamAndTrackStats_s( | 652 void RTCStatsCollector::ProduceMediaStreamAndTrackStats_s( |
| 651 int64_t timestamp_us, RTCStatsReport* report) const { | 653 int64_t timestamp_us, RTCStatsReport* report) const { |
| 652 RTC_DCHECK(signaling_thread_->IsCurrent()); | 654 RTC_DCHECK(signaling_thread_->IsCurrent()); |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 913 const std::string& type) { | 915 const std::string& type) { |
| 914 return CandidateTypeToRTCIceCandidateType(type); | 916 return CandidateTypeToRTCIceCandidateType(type); |
| 915 } | 917 } |
| 916 | 918 |
| 917 const char* DataStateToRTCDataChannelStateForTesting( | 919 const char* DataStateToRTCDataChannelStateForTesting( |
| 918 DataChannelInterface::DataState state) { | 920 DataChannelInterface::DataState state) { |
| 919 return DataStateToRTCDataChannelState(state); | 921 return DataStateToRTCDataChannelState(state); |
| 920 } | 922 } |
| 921 | 923 |
| 922 } // namespace webrtc | 924 } // namespace webrtc |
| OLD | NEW |