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

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

Issue 1657123002: Deprecate FLAGS_quic_ack_decimation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | net/quic/quic_flags.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 395
396 if (config.HasClientSentConnectionOption(kMTUH, perspective_)) { 396 if (config.HasClientSentConnectionOption(kMTUH, perspective_)) {
397 SetMtuDiscoveryTarget(kMtuDiscoveryTargetPacketSizeHigh); 397 SetMtuDiscoveryTarget(kMtuDiscoveryTargetPacketSizeHigh);
398 } 398 }
399 if (config.HasClientSentConnectionOption(kMTUL, perspective_)) { 399 if (config.HasClientSentConnectionOption(kMTUL, perspective_)) {
400 SetMtuDiscoveryTarget(kMtuDiscoveryTargetPacketSizeLow); 400 SetMtuDiscoveryTarget(kMtuDiscoveryTargetPacketSizeLow);
401 } 401 }
402 if (debug_visitor_ != nullptr) { 402 if (debug_visitor_ != nullptr) {
403 debug_visitor_->OnSetFromConfig(config); 403 debug_visitor_->OnSetFromConfig(config);
404 } 404 }
405 if (FLAGS_quic_ack_decimation && 405 if (config.HasClientSentConnectionOption(kACKD, perspective_)) {
406 config.HasClientSentConnectionOption(kACKD, perspective_)) {
407 ack_decimation_enabled_ = true; 406 ack_decimation_enabled_ = true;
408 } 407 }
409 } 408 }
410 409
411 void QuicConnection::OnSendConnectionState( 410 void QuicConnection::OnSendConnectionState(
412 const CachedNetworkParameters& cached_network_params) { 411 const CachedNetworkParameters& cached_network_params) {
413 if (debug_visitor_ != nullptr) { 412 if (debug_visitor_ != nullptr) {
414 debug_visitor_->OnSendConnectionState(cached_network_params); 413 debug_visitor_->OnSendConnectionState(cached_network_params);
415 } 414 }
416 } 415 }
(...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after
2449 void QuicConnection::OnPathClosed(QuicPathId path_id) { 2448 void QuicConnection::OnPathClosed(QuicPathId path_id) {
2450 // Stop receiving packets on this path. 2449 // Stop receiving packets on this path.
2451 framer_.OnPathClosed(path_id); 2450 framer_.OnPathClosed(path_id);
2452 } 2451 }
2453 2452
2454 bool QuicConnection::ack_frame_updated() const { 2453 bool QuicConnection::ack_frame_updated() const {
2455 return received_packet_manager_.ack_frame_updated(); 2454 return received_packet_manager_.ack_frame_updated();
2456 } 2455 }
2457 2456
2458 } // namespace net 2457 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698