Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: webrtc/api/statstypes.cc

Issue 2965033002: Report interframe delay sum in old GetStats (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 case kStatsValueNameFrameRateSent: 531 case kStatsValueNameFrameRateSent:
532 return "googFrameRateSent"; 532 return "googFrameRateSent";
533 case kStatsValueNameFrameWidthInput: 533 case kStatsValueNameFrameWidthInput:
534 return "googFrameWidthInput"; 534 return "googFrameWidthInput";
535 case kStatsValueNameFrameWidthReceived: 535 case kStatsValueNameFrameWidthReceived:
536 return "googFrameWidthReceived"; 536 return "googFrameWidthReceived";
537 case kStatsValueNameFrameWidthSent: 537 case kStatsValueNameFrameWidthSent:
538 return "googFrameWidthSent"; 538 return "googFrameWidthSent";
539 case kStatsValueNameInitiator: 539 case kStatsValueNameInitiator:
540 return "googInitiator"; 540 return "googInitiator";
541 case kStatsValueNameInterframeDelaySumMs:
542 return "googInterframeDelaySum";
541 case kStatsValueNameIssuerId: 543 case kStatsValueNameIssuerId:
542 return "googIssuerId"; 544 return "googIssuerId";
543 case kStatsValueNameJitterReceived: 545 case kStatsValueNameJitterReceived:
544 return "googJitterReceived"; 546 return "googJitterReceived";
545 case kStatsValueNameLocalAddress: 547 case kStatsValueNameLocalAddress:
546 return "googLocalAddress"; 548 return "googLocalAddress";
547 case kStatsValueNameLocalCandidateId: 549 case kStatsValueNameLocalCandidateId:
548 return "localCandidateId"; 550 return "localCandidateId";
549 case kStatsValueNameLocalCandidateType: 551 case kStatsValueNameLocalCandidateType:
550 return "googLocalCandidateType"; 552 return "googLocalCandidateType";
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 // Looks for a report with the given |id|. If one is not found, null 784 // Looks for a report with the given |id|. If one is not found, null
783 // will be returned. 785 // will be returned.
784 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { 786 StatsReport* StatsCollection::Find(const StatsReport::Id& id) {
785 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 787 RTC_DCHECK(thread_checker_.CalledOnValidThread());
786 Container::iterator it = std::find_if(list_.begin(), list_.end(), 788 Container::iterator it = std::find_if(list_.begin(), list_.end(),
787 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); 789 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); });
788 return it == list_.end() ? nullptr : *it; 790 return it == list_.end() ? nullptr : *it;
789 } 791 }
790 792
791 } // namespace webrtc 793 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698