OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_config.h" | 5 #include "net/quic/quic_config.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "net/quic/crypto/crypto_handshake_message.h" | 10 #include "net/quic/crypto/crypto_handshake_message.h" |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 | 426 |
427 QuicConfig::QuicConfig() | 427 QuicConfig::QuicConfig() |
428 : congestion_feedback_(kCGST, PRESENCE_REQUIRED), | 428 : congestion_feedback_(kCGST, PRESENCE_REQUIRED), |
429 connection_options_(kCOPT, PRESENCE_OPTIONAL), | 429 connection_options_(kCOPT, PRESENCE_OPTIONAL), |
430 idle_connection_state_lifetime_seconds_(kICSL, PRESENCE_REQUIRED), | 430 idle_connection_state_lifetime_seconds_(kICSL, PRESENCE_REQUIRED), |
431 keepalive_timeout_seconds_(kKATO, PRESENCE_OPTIONAL), | 431 keepalive_timeout_seconds_(kKATO, PRESENCE_OPTIONAL), |
432 max_streams_per_connection_(kMSPC, PRESENCE_REQUIRED), | 432 max_streams_per_connection_(kMSPC, PRESENCE_REQUIRED), |
433 max_time_before_crypto_handshake_(QuicTime::Delta::Zero()), | 433 max_time_before_crypto_handshake_(QuicTime::Delta::Zero()), |
434 initial_congestion_window_(kSWND, PRESENCE_OPTIONAL), | 434 initial_congestion_window_(kSWND, PRESENCE_OPTIONAL), |
435 initial_round_trip_time_us_(kIRTT, PRESENCE_OPTIONAL), | 435 initial_round_trip_time_us_(kIRTT, PRESENCE_OPTIONAL), |
436 // TODO(rjshade): Make this PRESENCE_REQUIRED when QUIC_VERSION_16 is | 436 // TODO(rjshade): Remove this when retiring QUIC_VERSION_19. |
437 // retired. | |
438 initial_flow_control_window_bytes_(kIFCW, PRESENCE_OPTIONAL), | 437 initial_flow_control_window_bytes_(kIFCW, PRESENCE_OPTIONAL), |
439 // TODO(rjshade): Make this PRESENCE_REQUIRED when retiring | 438 // TODO(rjshade): Make this PRESENCE_REQUIRED when retiring |
440 // QUIC_VERSION_19. | 439 // QUIC_VERSION_19. |
441 initial_stream_flow_control_window_bytes_(kSFCW, PRESENCE_OPTIONAL), | 440 initial_stream_flow_control_window_bytes_(kSFCW, PRESENCE_OPTIONAL), |
442 // TODO(rjshade): Make this PRESENCE_REQUIRED when retiring | 441 // TODO(rjshade): Make this PRESENCE_REQUIRED when retiring |
443 // QUIC_VERSION_19. | 442 // QUIC_VERSION_19. |
444 initial_session_flow_control_window_bytes_(kCFCW, PRESENCE_OPTIONAL), | 443 initial_session_flow_control_window_bytes_(kCFCW, PRESENCE_OPTIONAL), |
445 socket_receive_buffer_(kSRBF, PRESENCE_OPTIONAL) { | 444 socket_receive_buffer_(kSRBF, PRESENCE_OPTIONAL) { |
446 } | 445 } |
447 | 446 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 peer_hello, hello_type, error_details); | 717 peer_hello, hello_type, error_details); |
719 } | 718 } |
720 if (error == QUIC_NO_ERROR) { | 719 if (error == QUIC_NO_ERROR) { |
721 error = connection_options_.ProcessPeerHello( | 720 error = connection_options_.ProcessPeerHello( |
722 peer_hello, hello_type, error_details); | 721 peer_hello, hello_type, error_details); |
723 } | 722 } |
724 return error; | 723 return error; |
725 } | 724 } |
726 | 725 |
727 } // namespace net | 726 } // namespace net |
OLD | NEW |