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_sent_packet_manager.h" | 5 #include "net/quic/quic_sent_packet_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "net/quic/congestion_control/pacing_sender.h" | 9 #include "net/quic/congestion_control/pacing_sender.h" |
10 #include "net/quic/quic_ack_notifier_manager.h" | 10 #include "net/quic/quic_ack_notifier_manager.h" |
| 11 #include "net/quic/quic_utils_chromium.h" |
11 | 12 |
12 using std::make_pair; | 13 using std::make_pair; |
13 using std::max; | 14 using std::max; |
14 using std::min; | 15 using std::min; |
15 | 16 |
16 // TODO(rtenneti): Remove this. | 17 // TODO(rtenneti): Remove this. |
17 // Do not flip this flag until the flakiness of the | 18 // Do not flip this flag until the flakiness of the |
18 // net/tools/quic/end_to_end_test is fixed. | 19 // net/tools/quic/end_to_end_test is fixed. |
19 // If true, then QUIC connections will track the retransmission history of a | 20 // If true, then QUIC connections will track the retransmission history of a |
20 // packet so that an ack of a previous transmission will ack the data of all | 21 // packet so that an ack of a previous transmission will ack the data of all |
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 } | 979 } |
979 previous_transmissions->erase(sequence_number); | 980 previous_transmissions->erase(sequence_number); |
980 if (previous_transmissions->size() == 1) { | 981 if (previous_transmissions->size() == 1) { |
981 QuicPacketSequenceNumber current = *previous_transmissions->begin(); | 982 QuicPacketSequenceNumber current = *previous_transmissions->begin(); |
982 unacked_packets_[current].previous_transmissions = NULL; | 983 unacked_packets_[current].previous_transmissions = NULL; |
983 delete previous_transmissions; | 984 delete previous_transmissions; |
984 } | 985 } |
985 } | 986 } |
986 | 987 |
987 } // namespace net | 988 } // namespace net |
OLD | NEW |