| 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/core/quic_sent_packet_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 11 #include "net/quic/chromium/quic_utils_chromium.h" | 11 #include "net/quic/chromium/quic_utils_chromium.h" |
| 12 #include "net/quic/congestion_control/general_loss_algorithm.h" | 12 #include "net/quic/core/congestion_control/general_loss_algorithm.h" |
| 13 #include "net/quic/congestion_control/pacing_sender.h" | 13 #include "net/quic/core/congestion_control/pacing_sender.h" |
| 14 #include "net/quic/crypto/crypto_protocol.h" | 14 #include "net/quic/core/crypto/crypto_protocol.h" |
| 15 #include "net/quic/proto/cached_network_parameters.pb.h" | 15 #include "net/quic/core/proto/cached_network_parameters.pb.h" |
| 16 #include "net/quic/quic_bug_tracker.h" | 16 #include "net/quic/core/quic_bug_tracker.h" |
| 17 #include "net/quic/quic_connection_stats.h" | 17 #include "net/quic/core/quic_connection_stats.h" |
| 18 #include "net/quic/quic_flags.h" | 18 #include "net/quic/core/quic_flags.h" |
| 19 | 19 |
| 20 using std::max; | 20 using std::max; |
| 21 using std::min; | 21 using std::min; |
| 22 using std::pair; | 22 using std::pair; |
| 23 | 23 |
| 24 namespace net { | 24 namespace net { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 static const int64_t kDefaultRetransmissionTimeMs = 500; | 27 static const int64_t kDefaultRetransmissionTimeMs = 500; |
| 28 static const int64_t kMaxRetransmissionTimeMs = 60000; | 28 static const int64_t kMaxRetransmissionTimeMs = 60000; |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 TransmissionInfo* QuicSentPacketManager::GetMutableTransmissionInfo( | 994 TransmissionInfo* QuicSentPacketManager::GetMutableTransmissionInfo( |
| 995 QuicPacketNumber packet_number) { | 995 QuicPacketNumber packet_number) { |
| 996 return unacked_packets_.GetMutableTransmissionInfo(packet_number); | 996 return unacked_packets_.GetMutableTransmissionInfo(packet_number); |
| 997 } | 997 } |
| 998 | 998 |
| 999 void QuicSentPacketManager::RemoveObsoletePackets() { | 999 void QuicSentPacketManager::RemoveObsoletePackets() { |
| 1000 unacked_packets_.RemoveObsoletePackets(); | 1000 unacked_packets_.RemoveObsoletePackets(); |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 } // namespace net | 1003 } // namespace net |
| OLD | NEW |