| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "net/quic/quic_received_packet_manager.h" | 5 #include "net/quic/quic_received_packet_manager.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 bool QuicReceivedPacketManager::HasNewMissingPackets() const { | 290 bool QuicReceivedPacketManager::HasNewMissingPackets() const { |
| 291 return !ack_frame_.missing_packets.Empty() && | 291 return !ack_frame_.missing_packets.Empty() && |
| 292 (ack_frame_.largest_observed - ack_frame_.missing_packets.Max()) <= | 292 (ack_frame_.largest_observed - ack_frame_.missing_packets.Max()) <= |
| 293 kMaxPacketsAfterNewMissing; | 293 kMaxPacketsAfterNewMissing; |
| 294 } | 294 } |
| 295 | 295 |
| 296 size_t QuicReceivedPacketManager::NumTrackedPackets() const { | 296 size_t QuicReceivedPacketManager::NumTrackedPackets() const { |
| 297 return entropy_tracker_.size(); | 297 return entropy_tracker_.size(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 bool QuicReceivedPacketManager::ack_frame_updated() const { |
| 301 return ack_frame_updated_; |
| 302 } |
| 303 |
| 300 } // namespace net | 304 } // namespace net |
| OLD | NEW |