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 // TODO(honghaiz): renaming to googReceiving? |
pthatcher1
2015/09/17 05:58:41
No, let's just leave it googReadable. We can chan
honghaiz3
2015/09/17 19:47:55
Done.
| |
558 case kStatsValueNameReceiving: | |
558 return "googReadable"; | 559 return "googReadable"; |
559 case kStatsValueNameRemoteAddress: | 560 case kStatsValueNameRemoteAddress: |
560 return "googRemoteAddress"; | 561 return "googRemoteAddress"; |
561 case kStatsValueNameRemoteCandidateId: | 562 case kStatsValueNameRemoteCandidateId: |
562 return "remoteCandidateId"; | 563 return "remoteCandidateId"; |
563 case kStatsValueNameRemoteCandidateType: | 564 case kStatsValueNameRemoteCandidateType: |
564 return "googRemoteCandidateType"; | 565 return "googRemoteCandidateType"; |
565 case kStatsValueNameRemoteCertificateId: | 566 case kStatsValueNameRemoteCertificateId: |
566 return "remoteCertificateId"; | 567 return "remoteCertificateId"; |
567 case kStatsValueNameRetransmitBitrate: | 568 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 | 772 // Looks for a report with the given |id|. If one is not found, NULL |
772 // will be returned. | 773 // will be returned. |
773 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 774 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
774 DCHECK(thread_checker_.CalledOnValidThread()); | 775 DCHECK(thread_checker_.CalledOnValidThread()); |
775 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 776 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
776 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 777 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
777 return it == list_.end() ? nullptr : *it; | 778 return it == list_.end() ? nullptr : *it; |
778 } | 779 } |
779 | 780 |
780 } // namespace webrtc | 781 } // namespace webrtc |
OLD | NEW |