OLD | NEW |
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 345 matching lines...) Loading... |
356 return *value_.string_; | 356 return *value_.string_; |
357 } | 357 } |
358 | 358 |
359 bool StatsReport::Value::bool_val() const { | 359 bool StatsReport::Value::bool_val() const { |
360 RTC_DCHECK(type_ == kBool); | 360 RTC_DCHECK(type_ == kBool); |
361 return value_.bool_; | 361 return value_.bool_; |
362 } | 362 } |
363 | 363 |
364 const char* StatsReport::Value::display_name() const { | 364 const char* StatsReport::Value::display_name() const { |
365 switch (name) { | 365 switch (name) { |
| 366 case kStatsValueNameAecDivergentFilterFraction: |
| 367 return "aecDivergentFilterFraction"; |
366 case kStatsValueNameAudioOutputLevel: | 368 case kStatsValueNameAudioOutputLevel: |
367 return "audioOutputLevel"; | 369 return "audioOutputLevel"; |
368 case kStatsValueNameAudioInputLevel: | 370 case kStatsValueNameAudioInputLevel: |
369 return "audioInputLevel"; | 371 return "audioInputLevel"; |
370 case kStatsValueNameBytesSent: | 372 case kStatsValueNameBytesSent: |
371 return "bytesSent"; | 373 return "bytesSent"; |
372 case kStatsValueNamePacketsSent: | 374 case kStatsValueNamePacketsSent: |
373 return "packetsSent"; | 375 return "packetsSent"; |
374 case kStatsValueNameBytesReceived: | 376 case kStatsValueNameBytesReceived: |
375 return "bytesReceived"; | 377 return "bytesReceived"; |
(...skipping 380 matching lines...) Loading... |
756 // Looks for a report with the given |id|. If one is not found, NULL | 758 // Looks for a report with the given |id|. If one is not found, NULL |
757 // will be returned. | 759 // will be returned. |
758 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 760 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
759 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 761 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
760 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 762 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
761 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 763 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
762 return it == list_.end() ? nullptr : *it; | 764 return it == list_.end() ? nullptr : *it; |
763 } | 765 } |
764 | 766 |
765 } // namespace webrtc | 767 } // namespace webrtc |
OLD | NEW |