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

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

Issue 2965033002: Report interframe delay sum in old GetStats (Closed)
Patch Set: Rebase 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
« no previous file with comments | « webrtc/api/statstypes.h ('k') | webrtc/media/base/mediachannel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 // Looks for a report with the given |id|. If one is not found, null 786 // Looks for a report with the given |id|. If one is not found, null
785 // will be returned. 787 // will be returned.
786 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { 788 StatsReport* StatsCollection::Find(const StatsReport::Id& id) {
787 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 789 RTC_DCHECK(thread_checker_.CalledOnValidThread());
788 Container::iterator it = std::find_if(list_.begin(), list_.end(), 790 Container::iterator it = std::find_if(list_.begin(), list_.end(),
789 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); 791 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); });
790 return it == list_.end() ? nullptr : *it; 792 return it == list_.end() ? nullptr : *it;
791 } 793 }
792 794
793 } // namespace webrtc 795 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/statstypes.h ('k') | webrtc/media/base/mediachannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698