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/core/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 "net/base/linked_hash_map.h" | 12 #include "net/base/linked_hash_map.h" |
13 #include "net/quic/core/crypto/crypto_protocol.h" | 13 #include "net/quic/core/crypto/crypto_protocol.h" |
14 #include "net/quic/core/quic_bug_tracker.h" | |
15 #include "net/quic/core/quic_connection_stats.h" | 14 #include "net/quic/core/quic_connection_stats.h" |
| 15 #include "net/quic/platform/api/quic_bug_tracker.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // The maximum number of packets to ack immediately after a missing packet for | 21 // The maximum number of packets to ack immediately after a missing packet for |
22 // fast retransmission to kick in at the sender. This limit is created to | 22 // fast retransmission to kick in at the sender. This limit is created to |
23 // reduce the number of acks sent that have no benefit for fast retransmission. | 23 // reduce the number of acks sent that have no benefit for fast retransmission. |
24 // Set to the number of nacks needed for fast retransmit plus one for protection | 24 // Set to the number of nacks needed for fast retransmit plus one for protection |
25 // against an ack loss | 25 // against an ack loss |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 bool QuicReceivedPacketManager::ack_frame_updated() const { | 143 bool QuicReceivedPacketManager::ack_frame_updated() const { |
144 return ack_frame_updated_; | 144 return ack_frame_updated_; |
145 } | 145 } |
146 | 146 |
147 QuicPacketNumber QuicReceivedPacketManager::GetLargestObserved() const { | 147 QuicPacketNumber QuicReceivedPacketManager::GetLargestObserved() const { |
148 return ack_frame_.largest_observed; | 148 return ack_frame_.largest_observed; |
149 } | 149 } |
150 | 150 |
151 } // namespace net | 151 } // namespace net |
OLD | NEW |