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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc

Issue 2988143002: Remove NullReceiveStatistics (Closed)
Patch Set: Created 3 years, 4 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 (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 LOG(LS_WARNING) << "Cumulative lost is oversized."; 518 LOG(LS_WARNING) << "Cumulative lost is oversized.";
519 result.pop_back(); 519 result.pop_back();
520 continue; 520 continue;
521 } 521 }
522 block.SetExtHighestSeqNum(stats.extended_max_sequence_number); 522 block.SetExtHighestSeqNum(stats.extended_max_sequence_number);
523 block.SetJitter(stats.jitter); 523 block.SetJitter(stats.jitter);
524 } 524 }
525 return result; 525 return result;
526 } 526 }
527 527
528 void NullReceiveStatistics::IncomingPacket(const RTPHeader& rtp_header,
529 size_t packet_length,
530 bool retransmitted) {}
531
532 void NullReceiveStatistics::FecPacketReceived(const RTPHeader& header,
533 size_t packet_length) {}
534
535 StatisticianMap NullReceiveStatistics::GetActiveStatisticians() const {
536 return StatisticianMap();
537 }
538
539 StreamStatistician* NullReceiveStatistics::GetStatistician(
540 uint32_t ssrc) const {
541 return NULL;
542 }
543
544 void NullReceiveStatistics::SetMaxReorderingThreshold(
545 int max_reordering_threshold) {}
546
547 void NullReceiveStatistics::RegisterRtcpStatisticsCallback(
548 RtcpStatisticsCallback* callback) {}
549
550 void NullReceiveStatistics::RegisterRtpStatisticsCallback(
551 StreamDataCountersCallback* callback) {}
552
553 } // namespace webrtc 528 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/include/receive_statistics.h ('k') | webrtc/video/video_send_stream_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698