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

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

Issue 2403193003: Landing Recent QUIC changes until 9:41 AM, Oct 10, 2016 UTC-7 (Closed)
Patch Set: git cl format Created 4 years, 2 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
« no previous file with comments | « net/quic/core/quic_protocol_test.cc ('k') | net/quic/core/quic_spdy_stream.h » ('j') | 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/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 "base/logging.h" 10 #include "base/logging.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 use_new_rto_ = true; 145 use_new_rto_ = true;
146 } 146 }
147 if (config.HasReceivedConnectionOptions() && 147 if (config.HasReceivedConnectionOptions() &&
148 ContainsQuicTag(config.ReceivedConnectionOptions(), kTIME)) { 148 ContainsQuicTag(config.ReceivedConnectionOptions(), kTIME)) {
149 general_loss_algorithm_.SetLossDetectionType(kTime); 149 general_loss_algorithm_.SetLossDetectionType(kTime);
150 } 150 }
151 if (config.HasReceivedConnectionOptions() && 151 if (config.HasReceivedConnectionOptions() &&
152 ContainsQuicTag(config.ReceivedConnectionOptions(), kATIM)) { 152 ContainsQuicTag(config.ReceivedConnectionOptions(), kATIM)) {
153 general_loss_algorithm_.SetLossDetectionType(kAdaptiveTime); 153 general_loss_algorithm_.SetLossDetectionType(kAdaptiveTime);
154 } 154 }
155 if (FLAGS_quic_enable_lazy_fack && config.HasReceivedConnectionOptions() &&
156 ContainsQuicTag(config.ReceivedConnectionOptions(), kLFAK)) {
157 general_loss_algorithm_.SetLossDetectionType(kLazyFack);
158 }
155 if (config.HasClientSentConnectionOption(kUNDO, perspective_)) { 159 if (config.HasClientSentConnectionOption(kUNDO, perspective_)) {
156 undo_pending_retransmits_ = true; 160 undo_pending_retransmits_ = true;
157 } 161 }
158 if (FLAGS_quic_conservative_handshake_retransmits && 162 if (FLAGS_quic_conservative_handshake_retransmits &&
159 config.HasClientSentConnectionOption(kCONH, perspective_)) { 163 config.HasClientSentConnectionOption(kCONH, perspective_)) {
160 conservative_handshake_retransmits_ = true; 164 conservative_handshake_retransmits_ = true;
161 } 165 }
162 send_algorithm_->SetFromConfig(config, perspective_); 166 send_algorithm_->SetFromConfig(config, perspective_);
163 167
164 if (network_change_visitor_ != nullptr) { 168 if (network_change_visitor_ != nullptr) {
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 1010
1007 void QuicSentPacketManager::RemoveObsoletePackets() { 1011 void QuicSentPacketManager::RemoveObsoletePackets() {
1008 unacked_packets_.RemoveObsoletePackets(); 1012 unacked_packets_.RemoveObsoletePackets();
1009 } 1013 }
1010 1014
1011 void QuicSentPacketManager::OnApplicationLimited() { 1015 void QuicSentPacketManager::OnApplicationLimited() {
1012 send_algorithm_->OnApplicationLimited(unacked_packets_.bytes_in_flight()); 1016 send_algorithm_->OnApplicationLimited(unacked_packets_.bytes_in_flight());
1013 } 1017 }
1014 1018
1015 } // namespace net 1019 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_protocol_test.cc ('k') | net/quic/core/quic_spdy_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698