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

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

Issue 2946413002: Report timing frames info in 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/api/video/video_timing.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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 case kStatsValueNameSrtpCipher: 591 case kStatsValueNameSrtpCipher:
592 return "srtpCipher"; 592 return "srtpCipher";
593 case kStatsValueNameTargetEncBitrate: 593 case kStatsValueNameTargetEncBitrate:
594 return "googTargetEncBitrate"; 594 return "googTargetEncBitrate";
595 case kStatsValueNameTransmitBitrate: 595 case kStatsValueNameTransmitBitrate:
596 return "googTransmitBitrate"; 596 return "googTransmitBitrate";
597 case kStatsValueNameTransportType: 597 case kStatsValueNameTransportType:
598 return "googTransportType"; 598 return "googTransportType";
599 case kStatsValueNameTrackId: 599 case kStatsValueNameTrackId:
600 return "googTrackId"; 600 return "googTrackId";
601 case kStatsValueNameTimingFrameInfo:
602 return "googTimingFrameInfo";
601 case kStatsValueNameTypingNoiseState: 603 case kStatsValueNameTypingNoiseState:
602 return "googTypingNoiseState"; 604 return "googTypingNoiseState";
603 case kStatsValueNameWritable: 605 case kStatsValueNameWritable:
604 return "googWritable"; 606 return "googWritable";
605 } 607 }
606 608
607 return nullptr; 609 return nullptr;
608 } 610 }
609 611
610 std::string StatsReport::Value::ToString() const { 612 std::string StatsReport::Value::ToString() const {
(...skipping 171 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
« no previous file with comments | « webrtc/api/statstypes.h ('k') | webrtc/api/video/video_timing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698