OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |