| 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 case kStatsValueNameDataChannelId: | 394 case kStatsValueNameDataChannelId: |
| 395 return "datachannelid"; | 395 return "datachannelid"; |
| 396 case kStatsValueNameFramesDecoded: | 396 case kStatsValueNameFramesDecoded: |
| 397 return "framesDecoded"; | 397 return "framesDecoded"; |
| 398 case kStatsValueNameFramesEncoded: | 398 case kStatsValueNameFramesEncoded: |
| 399 return "framesEncoded"; | 399 return "framesEncoded"; |
| 400 case kStatsValueNameCodecImplementationName: | 400 case kStatsValueNameCodecImplementationName: |
| 401 return "codecImplementationName"; | 401 return "codecImplementationName"; |
| 402 case kStatsValueNameMediaType: | 402 case kStatsValueNameMediaType: |
| 403 return "mediaType"; | 403 return "mediaType"; |
| 404 case kStatsValueNameQpSum: |
| 405 return "qpSum"; |
| 404 // 'goog' prefixed constants. | 406 // 'goog' prefixed constants. |
| 405 case kStatsValueNameAccelerateRate: | 407 case kStatsValueNameAccelerateRate: |
| 406 return "googAccelerateRate"; | 408 return "googAccelerateRate"; |
| 407 case kStatsValueNameActiveConnection: | 409 case kStatsValueNameActiveConnection: |
| 408 return "googActiveConnection"; | 410 return "googActiveConnection"; |
| 409 case kStatsValueNameActualEncBitrate: | 411 case kStatsValueNameActualEncBitrate: |
| 410 return "googActualEncBitrate"; | 412 return "googActualEncBitrate"; |
| 411 case kStatsValueNameAvailableReceiveBandwidth: | 413 case kStatsValueNameAvailableReceiveBandwidth: |
| 412 return "googAvailableReceiveBandwidth"; | 414 return "googAvailableReceiveBandwidth"; |
| 413 case kStatsValueNameAvailableSendBandwidth: | 415 case kStatsValueNameAvailableSendBandwidth: |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 // 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 |
| 777 // will be returned. | 779 // will be returned. |
| 778 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 780 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
| 779 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 781 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 780 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 782 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
| 781 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 783 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
| 782 return it == list_.end() ? nullptr : *it; | 784 return it == list_.end() ? nullptr : *it; |
| 783 } | 785 } |
| 784 | 786 |
| 785 } // namespace webrtc | 787 } // namespace webrtc |
| OLD | NEW |