| 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_sent_packet_manager.h" | 5 #include "net/quic/core/quic_sent_packet_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/quic/chromium/quic_utils_chromium.h" | 10 #include "net/quic/chromium/quic_utils_chromium.h" |
| 11 #include "net/quic/core/congestion_control/general_loss_algorithm.h" | 11 #include "net/quic/core/congestion_control/general_loss_algorithm.h" |
| 12 #include "net/quic/core/congestion_control/pacing_sender.h" | 12 #include "net/quic/core/congestion_control/pacing_sender.h" |
| 13 #include "net/quic/core/crypto/crypto_protocol.h" | 13 #include "net/quic/core/crypto/crypto_protocol.h" |
| 14 #include "net/quic/core/proto/cached_network_parameters.pb.h" | 14 #include "net/quic/core/proto/cached_network_parameters.pb.h" |
| 15 #include "net/quic/core/quic_connection_stats.h" | 15 #include "net/quic/core/quic_connection_stats.h" |
| 16 #include "net/quic/core/quic_flags.h" | |
| 17 #include "net/quic/core/quic_pending_retransmission.h" | 16 #include "net/quic/core/quic_pending_retransmission.h" |
| 18 #include "net/quic/platform/api/quic_bug_tracker.h" | 17 #include "net/quic/platform/api/quic_bug_tracker.h" |
| 18 #include "net/quic/platform/api/quic_flags.h" |
| 19 #include "net/quic/platform/api/quic_logging.h" | 19 #include "net/quic/platform/api/quic_logging.h" |
| 20 #include "net/quic/platform/api/quic_map_util.h" | 20 #include "net/quic/platform/api/quic_map_util.h" |
| 21 | 21 |
| 22 namespace net { | 22 namespace net { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 static const int64_t kDefaultRetransmissionTimeMs = 500; | 25 static const int64_t kDefaultRetransmissionTimeMs = 500; |
| 26 static const int64_t kMaxRetransmissionTimeMs = 60000; | 26 static const int64_t kMaxRetransmissionTimeMs = 60000; |
| 27 // Maximum number of exponential backoffs used for RTO timeouts. | 27 // Maximum number of exponential backoffs used for RTO timeouts. |
| 28 static const size_t kMaxRetransmissions = 10; | 28 static const size_t kMaxRetransmissions = 10; |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 | 947 |
| 948 void QuicSentPacketManager::OnApplicationLimited() { | 948 void QuicSentPacketManager::OnApplicationLimited() { |
| 949 send_algorithm_->OnApplicationLimited(unacked_packets_.bytes_in_flight()); | 949 send_algorithm_->OnApplicationLimited(unacked_packets_.bytes_in_flight()); |
| 950 } | 950 } |
| 951 | 951 |
| 952 const SendAlgorithmInterface* QuicSentPacketManager::GetSendAlgorithm() const { | 952 const SendAlgorithmInterface* QuicSentPacketManager::GetSendAlgorithm() const { |
| 953 return send_algorithm_.get(); | 953 return send_algorithm_.get(); |
| 954 } | 954 } |
| 955 | 955 |
| 956 } // namespace net | 956 } // namespace net |
| OLD | NEW |