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/crypto/crypto_protocol.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 | 61 |
62 } // namespace | 62 } // namespace |
63 | 63 |
64 #define ENDPOINT (is_server_ ? "Server: " : " Client: ") | 64 #define ENDPOINT (is_server_ ? "Server: " : " Client: ") |
65 | 65 |
66 QuicSentPacketManager::QuicSentPacketManager(bool is_server, | 66 QuicSentPacketManager::QuicSentPacketManager(bool is_server, |
67 const QuicClock* clock, | 67 const QuicClock* clock, |
68 QuicConnectionStats* stats, | 68 QuicConnectionStats* stats, |
69 CongestionFeedbackType type) | 69 CongestionFeedbackType type) |
70 : unacked_packets_(is_server), | 70 : unacked_packets_(), |
71 is_server_(is_server), | 71 is_server_(is_server), |
72 clock_(clock), | 72 clock_(clock), |
73 stats_(stats), | 73 stats_(stats), |
74 send_algorithm_(SendAlgorithmInterface::Create(clock, type, stats)), | 74 send_algorithm_(SendAlgorithmInterface::Create(clock, type, stats)), |
75 loss_algorithm_(LossDetectionInterface::Create()), | 75 loss_algorithm_(LossDetectionInterface::Create()), |
76 rtt_sample_(QuicTime::Delta::Infinite()), | 76 rtt_sample_(QuicTime::Delta::Infinite()), |
77 largest_observed_(0), | 77 largest_observed_(0), |
78 pending_crypto_packet_count_(0), | 78 pending_crypto_packet_count_(0), |
79 consecutive_rto_count_(0), | 79 consecutive_rto_count_(0), |
80 consecutive_tlp_count_(0), | 80 consecutive_tlp_count_(0), |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 return; | 742 return; |
743 } | 743 } |
744 | 744 |
745 using_pacing_ = true; | 745 using_pacing_ = true; |
746 send_algorithm_.reset( | 746 send_algorithm_.reset( |
747 new PacingSender(send_algorithm_.release(), | 747 new PacingSender(send_algorithm_.release(), |
748 QuicTime::Delta::FromMicroseconds(1))); | 748 QuicTime::Delta::FromMicroseconds(1))); |
749 } | 749 } |
750 | 750 |
751 } // namespace net | 751 } // namespace net |
OLD | NEW |