OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2014 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
407 case kStatsValueNameAvailableReceiveBandwidth: | 407 case kStatsValueNameAvailableReceiveBandwidth: |
408 return "googAvailableReceiveBandwidth"; | 408 return "googAvailableReceiveBandwidth"; |
409 case kStatsValueNameAvailableSendBandwidth: | 409 case kStatsValueNameAvailableSendBandwidth: |
410 return "googAvailableSendBandwidth"; | 410 return "googAvailableSendBandwidth"; |
411 case kStatsValueNameAvgEncodeMs: | 411 case kStatsValueNameAvgEncodeMs: |
412 return "googAvgEncodeMs"; | 412 return "googAvgEncodeMs"; |
413 case kStatsValueNameBucketDelay: | 413 case kStatsValueNameBucketDelay: |
414 return "googBucketDelay"; | 414 return "googBucketDelay"; |
415 case kStatsValueNameBandwidthLimitedResolution: | 415 case kStatsValueNameBandwidthLimitedResolution: |
416 return "googBandwidthLimitedResolution"; | 416 return "googBandwidthLimitedResolution"; |
417 // STUN ping related attributes. | |
418 case kStatsValueNameSentPingRequests: | |
419 return "consentRequestsSent"; | |
420 case kStatsValueNameRecvPingResponses: | |
421 return "consentResponsesReceived"; | |
pthatcher1
2016/05/05 23:30:57
Can we also add consentRequestsReceived and consen
| |
417 | 422 |
418 // Candidate related attributes. Values are taken from | 423 // Candidate related attributes. Values are taken from |
419 // http://w3c.github.io/webrtc-stats/#rtcstatstype-enum*. | 424 // http://w3c.github.io/webrtc-stats/#rtcstatstype-enum*. |
420 case kStatsValueNameCandidateIPAddress: | 425 case kStatsValueNameCandidateIPAddress: |
421 return "ipAddress"; | 426 return "ipAddress"; |
422 case kStatsValueNameCandidateNetworkType: | 427 case kStatsValueNameCandidateNetworkType: |
423 return "networkType"; | 428 return "networkType"; |
424 case kStatsValueNameCandidatePortNumber: | 429 case kStatsValueNameCandidatePortNumber: |
425 return "portNumber"; | 430 return "portNumber"; |
426 case kStatsValueNameCandidatePriority: | 431 case kStatsValueNameCandidatePriority: |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
758 // Looks for a report with the given |id|. If one is not found, NULL | 763 // Looks for a report with the given |id|. If one is not found, NULL |
759 // will be returned. | 764 // will be returned. |
760 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 765 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
761 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 766 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
762 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 767 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
763 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 768 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
764 return it == list_.end() ? nullptr : *it; | 769 return it == list_.end() ? nullptr : *it; |
765 } | 770 } |
766 | 771 |
767 } // namespace webrtc | 772 } // namespace webrtc |
OLD | NEW |