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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 case kStatsValueNameTargetEncBitrate: | 591 case kStatsValueNameTargetEncBitrate: |
592 return "googTargetEncBitrate"; | 592 return "googTargetEncBitrate"; |
593 case kStatsValueNameTransmitBitrate: | 593 case kStatsValueNameTransmitBitrate: |
594 return "googTransmitBitrate"; | 594 return "googTransmitBitrate"; |
595 case kStatsValueNameTransportType: | 595 case kStatsValueNameTransportType: |
596 return "googTransportType"; | 596 return "googTransportType"; |
597 case kStatsValueNameTrackId: | 597 case kStatsValueNameTrackId: |
598 return "googTrackId"; | 598 return "googTrackId"; |
599 case kStatsValueNameTypingNoiseState: | 599 case kStatsValueNameTypingNoiseState: |
600 return "googTypingNoiseState"; | 600 return "googTypingNoiseState"; |
601 case kStatsValueNameViewLimitedResolution: | |
602 return "googViewLimitedResolution"; | |
603 case kStatsValueNameWritable: | 601 case kStatsValueNameWritable: |
604 return "googWritable"; | 602 return "googWritable"; |
605 } | 603 } |
606 | 604 |
607 return nullptr; | 605 return nullptr; |
608 } | 606 } |
609 | 607 |
610 std::string StatsReport::Value::ToString() const { | 608 std::string StatsReport::Value::ToString() const { |
611 switch (type_) { | 609 switch (type_) { |
612 case kInt: | 610 case kInt: |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 // Looks for a report with the given |id|. If one is not found, NULL | 778 // Looks for a report with the given |id|. If one is not found, NULL |
781 // will be returned. | 779 // will be returned. |
782 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 780 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
783 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 781 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
784 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 782 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
785 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 783 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
786 return it == list_.end() ? nullptr : *it; | 784 return it == list_.end() ? nullptr : *it; |
787 } | 785 } |
788 | 786 |
789 } // namespace webrtc | 787 } // namespace webrtc |
OLD | NEW |