| 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 case kStatsValueNameNacksSent: | 549 case kStatsValueNameNacksSent: |
| 550 return "googNacksSent"; | 550 return "googNacksSent"; |
| 551 case kStatsValueNamePreemptiveExpandRate: | 551 case kStatsValueNamePreemptiveExpandRate: |
| 552 return "googPreemptiveExpandRate"; | 552 return "googPreemptiveExpandRate"; |
| 553 case kStatsValueNamePlisReceived: | 553 case kStatsValueNamePlisReceived: |
| 554 return "googPlisReceived"; | 554 return "googPlisReceived"; |
| 555 case kStatsValueNamePlisSent: | 555 case kStatsValueNamePlisSent: |
| 556 return "googPlisSent"; | 556 return "googPlisSent"; |
| 557 case kStatsValueNamePreferredJitterBufferMs: | 557 case kStatsValueNamePreferredJitterBufferMs: |
| 558 return "googPreferredJitterBufferMs"; | 558 return "googPreferredJitterBufferMs"; |
| 559 case kStatsValueNameReadable: | 559 case kStatsValueNameReceiving: |
| 560 return "googReadable"; | 560 return "googReadable"; |
| 561 case kStatsValueNameRemoteAddress: | 561 case kStatsValueNameRemoteAddress: |
| 562 return "googRemoteAddress"; | 562 return "googRemoteAddress"; |
| 563 case kStatsValueNameRemoteCandidateId: | 563 case kStatsValueNameRemoteCandidateId: |
| 564 return "remoteCandidateId"; | 564 return "remoteCandidateId"; |
| 565 case kStatsValueNameRemoteCandidateType: | 565 case kStatsValueNameRemoteCandidateType: |
| 566 return "googRemoteCandidateType"; | 566 return "googRemoteCandidateType"; |
| 567 case kStatsValueNameRemoteCertificateId: | 567 case kStatsValueNameRemoteCertificateId: |
| 568 return "remoteCertificateId"; | 568 return "remoteCertificateId"; |
| 569 case kStatsValueNameRetransmitBitrate: | 569 case kStatsValueNameRetransmitBitrate: |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 // 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 |
| 774 // will be returned. | 774 // will be returned. |
| 775 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 775 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
| 776 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 776 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 777 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 777 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
| 778 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 778 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
| 779 return it == list_.end() ? nullptr : *it; | 779 return it == list_.end() ? nullptr : *it; |
| 780 } | 780 } |
| 781 | 781 |
| 782 } // namespace webrtc | 782 } // namespace webrtc |
| OLD | NEW |