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 375 matching lines...) Loading... |
386 case kStatsValueNameTransportId: | 386 case kStatsValueNameTransportId: |
387 return "transportId"; | 387 return "transportId"; |
388 case kStatsValueNameSelectedCandidatePairId: | 388 case kStatsValueNameSelectedCandidatePairId: |
389 return "selectedCandidatePairId"; | 389 return "selectedCandidatePairId"; |
390 case kStatsValueNameSsrc: | 390 case kStatsValueNameSsrc: |
391 return "ssrc"; | 391 return "ssrc"; |
392 case kStatsValueNameState: | 392 case kStatsValueNameState: |
393 return "state"; | 393 return "state"; |
394 case kStatsValueNameDataChannelId: | 394 case kStatsValueNameDataChannelId: |
395 return "datachannelid"; | 395 return "datachannelid"; |
| 396 case kStatsValueNameFramesEncoded: |
| 397 return "framesEncoded"; |
396 case kStatsValueNameCodecImplementationName: | 398 case kStatsValueNameCodecImplementationName: |
397 return "codecImplementationName"; | 399 return "codecImplementationName"; |
398 case kStatsValueNameMediaType: | 400 case kStatsValueNameMediaType: |
399 return "mediaType"; | 401 return "mediaType"; |
400 // 'goog' prefixed constants. | 402 // 'goog' prefixed constants. |
401 case kStatsValueNameAccelerateRate: | 403 case kStatsValueNameAccelerateRate: |
402 return "googAccelerateRate"; | 404 return "googAccelerateRate"; |
403 case kStatsValueNameActiveConnection: | 405 case kStatsValueNameActiveConnection: |
404 return "googActiveConnection"; | 406 return "googActiveConnection"; |
405 case kStatsValueNameActualEncBitrate: | 407 case kStatsValueNameActualEncBitrate: |
(...skipping 366 matching lines...) Loading... |
772 // Looks for a report with the given |id|. If one is not found, NULL | 774 // Looks for a report with the given |id|. If one is not found, NULL |
773 // will be returned. | 775 // will be returned. |
774 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 776 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
775 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 777 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
776 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 778 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
777 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 779 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
778 return it == list_.end() ? nullptr : *it; | 780 return it == list_.end() ? nullptr : *it; |
779 } | 781 } |
780 | 782 |
781 } // namespace webrtc | 783 } // namespace webrtc |
OLD | NEW |