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/crypto/crypto_protocol.h" |
10 #include "net/quic/quic_ack_notifier_manager.h" | 11 #include "net/quic/quic_ack_notifier_manager.h" |
11 #include "net/quic/quic_utils_chromium.h" | 12 #include "net/quic/quic_utils_chromium.h" |
12 | 13 |
13 using std::make_pair; | 14 using std::make_pair; |
14 using std::max; | 15 using std::max; |
15 using std::min; | 16 using std::min; |
16 | 17 |
17 // TODO(rtenneti): Remove this. | 18 // TODO(rtenneti): Remove this. |
18 // Do not flip this flag until the flakiness of the | 19 // Do not flip this flag until the flakiness of the |
19 // net/tools/quic/end_to_end_test is fixed. | 20 // net/tools/quic/end_to_end_test is fixed. |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 } | 965 } |
965 previous_transmissions->erase(sequence_number); | 966 previous_transmissions->erase(sequence_number); |
966 if (previous_transmissions->size() == 1) { | 967 if (previous_transmissions->size() == 1) { |
967 QuicPacketSequenceNumber current = *previous_transmissions->begin(); | 968 QuicPacketSequenceNumber current = *previous_transmissions->begin(); |
968 unacked_packets_[current].previous_transmissions = NULL; | 969 unacked_packets_[current].previous_transmissions = NULL; |
969 delete previous_transmissions; | 970 delete previous_transmissions; |
970 } | 971 } |
971 } | 972 } |
972 | 973 |
973 } // namespace net | 974 } // namespace net |
OLD | NEW |