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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 return "candidateType"; | 453 return "candidateType"; |
454 | 454 |
455 case kStatsValueNameChannelId: | 455 case kStatsValueNameChannelId: |
456 return "googChannelId"; | 456 return "googChannelId"; |
457 case kStatsValueNameCodecName: | 457 case kStatsValueNameCodecName: |
458 return "googCodecName"; | 458 return "googCodecName"; |
459 case kStatsValueNameComponent: | 459 case kStatsValueNameComponent: |
460 return "googComponent"; | 460 return "googComponent"; |
461 case kStatsValueNameContentName: | 461 case kStatsValueNameContentName: |
462 return "googContentName"; | 462 return "googContentName"; |
| 463 case kStatsValueNameContentType: |
| 464 return "googContentType"; |
463 case kStatsValueNameCpuLimitedResolution: | 465 case kStatsValueNameCpuLimitedResolution: |
464 return "googCpuLimitedResolution"; | 466 return "googCpuLimitedResolution"; |
465 case kStatsValueNameDecodingCTSG: | 467 case kStatsValueNameDecodingCTSG: |
466 return "googDecodingCTSG"; | 468 return "googDecodingCTSG"; |
467 case kStatsValueNameDecodingCTN: | 469 case kStatsValueNameDecodingCTN: |
468 return "googDecodingCTN"; | 470 return "googDecodingCTN"; |
469 case kStatsValueNameDecodingMutedOutput: | 471 case kStatsValueNameDecodingMutedOutput: |
470 return "googDecodingMuted"; | 472 return "googDecodingMuted"; |
471 case kStatsValueNameDecodingNormal: | 473 case kStatsValueNameDecodingNormal: |
472 return "googDecodingNormal"; | 474 return "googDecodingNormal"; |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 // Looks for a report with the given |id|. If one is not found, null | 798 // Looks for a report with the given |id|. If one is not found, null |
797 // will be returned. | 799 // will be returned. |
798 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 800 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
799 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 801 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
800 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 802 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
801 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 803 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
802 return it == list_.end() ? nullptr : *it; | 804 return it == list_.end() ? nullptr : *it; |
803 } | 805 } |
804 | 806 |
805 } // namespace webrtc | 807 } // namespace webrtc |
OLD | NEW |