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

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

Issue 3009793002: Implement googContentType GetStats metric reported on receive side. (Closed)
Patch Set: Fix broken tests on ASAN Created 3 years, 3 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_content_type.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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 return "candidateType"; 453 return "candidateType";
454 454
455 case kStatsValueNameChannelId: 455 case kStatsValueNameChannelId:
456 return "googChannelId"; 456 return "googChannelId";
457 case kStatsValueNameCodecName: 457 case kStatsValueNameCodecName:
458 return "googCodecName"; 458 return "googCodecName";
459 case kStatsValueNameComponent: 459 case kStatsValueNameComponent:
460 return "googComponent"; 460 return "googComponent";
461 case kStatsValueNameContentName: 461 case kStatsValueNameContentName:
462 return "googContentName"; 462 return "googContentName";
463 case kStatsValueNameContentType:
464 return "googContentType";
463 case kStatsValueNameCpuLimitedResolution: 465 case kStatsValueNameCpuLimitedResolution:
464 return "googCpuLimitedResolution"; 466 return "googCpuLimitedResolution";
465 case kStatsValueNameDecodingCTSG: 467 case kStatsValueNameDecodingCTSG:
466 return "googDecodingCTSG"; 468 return "googDecodingCTSG";
467 case kStatsValueNameDecodingCTN: 469 case kStatsValueNameDecodingCTN:
468 return "googDecodingCTN"; 470 return "googDecodingCTN";
469 case kStatsValueNameDecodingMutedOutput: 471 case kStatsValueNameDecodingMutedOutput:
470 return "googDecodingMuted"; 472 return "googDecodingMuted";
471 case kStatsValueNameDecodingNormal: 473 case kStatsValueNameDecodingNormal:
472 return "googDecodingNormal"; 474 return "googDecodingNormal";
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 // Looks for a report with the given |id|. If one is not found, null 798 // Looks for a report with the given |id|. If one is not found, null
797 // will be returned. 799 // will be returned.
798 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { 800 StatsReport* StatsCollection::Find(const StatsReport::Id& id) {
799 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 801 RTC_DCHECK(thread_checker_.CalledOnValidThread());
800 Container::iterator it = std::find_if(list_.begin(), list_.end(), 802 Container::iterator it = std::find_if(list_.begin(), list_.end(),
801 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); 803 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); });
802 return it == list_.end() ? nullptr : *it; 804 return it == list_.end() ? nullptr : *it;
803 } 805 }
804 806
805 } // namespace webrtc 807 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/statstypes.h ('k') | webrtc/api/video/video_content_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698