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