| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/cast/net/rtp/receiver_stats.h" | 5 #include "media/cast/net/rtp/receiver_stats.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/cast/net/rtp/rtp_receiver_defines.h" | 8 #include "media/cast/net/rtp/rtp_defines.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 namespace cast { | 11 namespace cast { |
| 12 | 12 |
| 13 static const uint32 kMaxSequenceNumber = 65536; | 13 static const uint32 kMaxSequenceNumber = 65536; |
| 14 | 14 |
| 15 ReceiverStats::ReceiverStats(base::TickClock* clock) | 15 ReceiverStats::ReceiverStats(base::TickClock* clock) |
| 16 : clock_(clock), | 16 : clock_(clock), |
| 17 min_sequence_number_(0), | 17 min_sequence_number_(0), |
| 18 max_sequence_number_(0), | 18 max_sequence_number_(0), |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 last_received_timestamp_ = delta_new_timestamp; | 108 last_received_timestamp_ = delta_new_timestamp; |
| 109 last_received_packet_time_ = now; | 109 last_received_packet_time_ = now; |
| 110 | 110 |
| 111 // Increment counters. | 111 // Increment counters. |
| 112 ++total_number_packets_; | 112 ++total_number_packets_; |
| 113 ++interval_number_packets_; | 113 ++interval_number_packets_; |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace cast | 116 } // namespace cast |
| 117 } // namespace media | 117 } // namespace media |
| OLD | NEW |