| 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/core/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" |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "net/base/linked_hash_map.h" | 13 #include "net/base/linked_hash_map.h" |
| 14 #include "net/quic/crypto/crypto_protocol.h" | 14 #include "net/quic/core/crypto/crypto_protocol.h" |
| 15 #include "net/quic/quic_bug_tracker.h" | 15 #include "net/quic/core/quic_bug_tracker.h" |
| 16 #include "net/quic/quic_connection_stats.h" | 16 #include "net/quic/core/quic_connection_stats.h" |
| 17 #include "net/quic/quic_flags.h" | 17 #include "net/quic/core/quic_flags.h" |
| 18 | 18 |
| 19 using std::max; | 19 using std::max; |
| 20 using std::min; | 20 using std::min; |
| 21 using std::numeric_limits; | 21 using std::numeric_limits; |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // The maximum number of packets to ack immediately after a missing packet for | 27 // The maximum number of packets to ack immediately after a missing packet for |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 317 |
| 318 bool QuicReceivedPacketManager::ack_frame_updated() const { | 318 bool QuicReceivedPacketManager::ack_frame_updated() const { |
| 319 return ack_frame_updated_; | 319 return ack_frame_updated_; |
| 320 } | 320 } |
| 321 | 321 |
| 322 QuicPacketNumber QuicReceivedPacketManager::GetLargestObserved() const { | 322 QuicPacketNumber QuicReceivedPacketManager::GetLargestObserved() const { |
| 323 return ack_frame_.largest_observed; | 323 return ack_frame_.largest_observed; |
| 324 } | 324 } |
| 325 | 325 |
| 326 } // namespace net | 326 } // namespace net |
| OLD | NEW |