| 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 case kStatsValueNameTransportId: | 399 case kStatsValueNameTransportId: |
| 400 return "transportId"; | 400 return "transportId"; |
| 401 case kStatsValueNameSelectedCandidatePairId: | 401 case kStatsValueNameSelectedCandidatePairId: |
| 402 return "selectedCandidatePairId"; | 402 return "selectedCandidatePairId"; |
| 403 case kStatsValueNameSsrc: | 403 case kStatsValueNameSsrc: |
| 404 return "ssrc"; | 404 return "ssrc"; |
| 405 case kStatsValueNameState: | 405 case kStatsValueNameState: |
| 406 return "state"; | 406 return "state"; |
| 407 case kStatsValueNameDataChannelId: | 407 case kStatsValueNameDataChannelId: |
| 408 return "datachannelid"; | 408 return "datachannelid"; |
| 409 case kStatsValueNameMediaType: |
| 410 return "mediaType"; |
| 409 | 411 |
| 410 // 'goog' prefixed constants. | 412 // 'goog' prefixed constants. |
| 411 case kStatsValueNameAccelerateRate: | 413 case kStatsValueNameAccelerateRate: |
| 412 return "googAccelerateRate"; | 414 return "googAccelerateRate"; |
| 413 case kStatsValueNameActiveConnection: | 415 case kStatsValueNameActiveConnection: |
| 414 return "googActiveConnection"; | 416 return "googActiveConnection"; |
| 415 case kStatsValueNameActualEncBitrate: | 417 case kStatsValueNameActualEncBitrate: |
| 416 return "googActualEncBitrate"; | 418 return "googActualEncBitrate"; |
| 417 case kStatsValueNameAvailableReceiveBandwidth: | 419 case kStatsValueNameAvailableReceiveBandwidth: |
| 418 return "googAvailableReceiveBandwidth"; | 420 return "googAvailableReceiveBandwidth"; |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 // 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 |
| 772 // will be returned. | 774 // will be returned. |
| 773 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 775 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
| 774 DCHECK(thread_checker_.CalledOnValidThread()); | 776 DCHECK(thread_checker_.CalledOnValidThread()); |
| 775 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 777 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
| 776 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 778 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
| 777 return it == list_.end() ? nullptr : *it; | 779 return it == list_.end() ? nullptr : *it; |
| 778 } | 780 } |
| 779 | 781 |
| 780 } // namespace webrtc | 782 } // namespace webrtc |
| OLD | NEW |