Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: net/quic/quic_sent_packet_manager.cc

Issue 177843017: QUIC-local change to extend per-connection stats. Extending (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_connection_stats.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_(is_server),
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)), 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),
81 consecutive_crypto_retransmission_count_(0), 81 consecutive_crypto_retransmission_count_(0),
82 max_tail_loss_probes_(kDefaultMaxTailLossProbes), 82 max_tail_loss_probes_(kDefaultMaxTailLossProbes),
83 using_pacing_(false) { 83 using_pacing_(false) {
84 } 84 }
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « net/quic/quic_connection_stats.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698