| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 case kStatsValueNameSelectedCandidatePairId: | 403 case kStatsValueNameSelectedCandidatePairId: |
| 404 return "selectedCandidatePairId"; | 404 return "selectedCandidatePairId"; |
| 405 case kStatsValueNameSsrc: | 405 case kStatsValueNameSsrc: |
| 406 return "ssrc"; | 406 return "ssrc"; |
| 407 case kStatsValueNameState: | 407 case kStatsValueNameState: |
| 408 return "state"; | 408 return "state"; |
| 409 case kStatsValueNameDataChannelId: | 409 case kStatsValueNameDataChannelId: |
| 410 return "datachannelid"; | 410 return "datachannelid"; |
| 411 case kStatsValueNameCodecImplementationName: | 411 case kStatsValueNameCodecImplementationName: |
| 412 return "codecImplementationName"; | 412 return "codecImplementationName"; |
| 413 | 413 case kStatsValueNameMediaType: |
| 414 return "mediaType"; |
| 414 // 'goog' prefixed constants. | 415 // 'goog' prefixed constants. |
| 415 case kStatsValueNameAccelerateRate: | 416 case kStatsValueNameAccelerateRate: |
| 416 return "googAccelerateRate"; | 417 return "googAccelerateRate"; |
| 417 case kStatsValueNameActiveConnection: | 418 case kStatsValueNameActiveConnection: |
| 418 return "googActiveConnection"; | 419 return "googActiveConnection"; |
| 419 case kStatsValueNameActualEncBitrate: | 420 case kStatsValueNameActualEncBitrate: |
| 420 return "googActualEncBitrate"; | 421 return "googActualEncBitrate"; |
| 421 case kStatsValueNameAvailableReceiveBandwidth: | 422 case kStatsValueNameAvailableReceiveBandwidth: |
| 422 return "googAvailableReceiveBandwidth"; | 423 return "googAvailableReceiveBandwidth"; |
| 423 case kStatsValueNameAvailableSendBandwidth: | 424 case kStatsValueNameAvailableSendBandwidth: |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 // Looks for a report with the given |id|. If one is not found, NULL | 773 // Looks for a report with the given |id|. If one is not found, NULL |
| 773 // will be returned. | 774 // will be returned. |
| 774 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 775 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
| 775 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 776 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 776 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 777 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
| 777 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 778 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
| 778 return it == list_.end() ? nullptr : *it; | 779 return it == list_.end() ? nullptr : *it; |
| 779 } | 780 } |
| 780 | 781 |
| 781 } // namespace webrtc | 782 } // namespace webrtc |
| OLD | NEW |