| 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/core/quic_config.h" | 5 #include "net/quic/core/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/core/crypto/crypto_handshake_message.h" | 10 #include "net/quic/core/crypto/crypto_handshake_message.h" |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 max_streams_per_connection_.ToHandshakeMessage(out); | 687 max_streams_per_connection_.ToHandshakeMessage(out); |
| 688 max_incoming_dynamic_streams_.ToHandshakeMessage(out); | 688 max_incoming_dynamic_streams_.ToHandshakeMessage(out); |
| 689 bytes_for_connection_id_.ToHandshakeMessage(out); | 689 bytes_for_connection_id_.ToHandshakeMessage(out); |
| 690 initial_round_trip_time_us_.ToHandshakeMessage(out); | 690 initial_round_trip_time_us_.ToHandshakeMessage(out); |
| 691 initial_stream_flow_control_window_bytes_.ToHandshakeMessage(out); | 691 initial_stream_flow_control_window_bytes_.ToHandshakeMessage(out); |
| 692 initial_session_flow_control_window_bytes_.ToHandshakeMessage(out); | 692 initial_session_flow_control_window_bytes_.ToHandshakeMessage(out); |
| 693 socket_receive_buffer_.ToHandshakeMessage(out); | 693 socket_receive_buffer_.ToHandshakeMessage(out); |
| 694 connection_migration_disabled_.ToHandshakeMessage(out); | 694 connection_migration_disabled_.ToHandshakeMessage(out); |
| 695 connection_options_.ToHandshakeMessage(out); | 695 connection_options_.ToHandshakeMessage(out); |
| 696 alternate_server_address_.ToHandshakeMessage(out); | 696 alternate_server_address_.ToHandshakeMessage(out); |
| 697 force_hol_blocking_.ToHandshakeMessage(out); |
| 697 } | 698 } |
| 698 | 699 |
| 699 QuicErrorCode QuicConfig::ProcessPeerHello( | 700 QuicErrorCode QuicConfig::ProcessPeerHello( |
| 700 const CryptoHandshakeMessage& peer_hello, | 701 const CryptoHandshakeMessage& peer_hello, |
| 701 HelloType hello_type, | 702 HelloType hello_type, |
| 702 string* error_details) { | 703 string* error_details) { |
| 703 DCHECK(error_details != nullptr); | 704 DCHECK(error_details != nullptr); |
| 704 | 705 |
| 705 QuicErrorCode error = QUIC_NO_ERROR; | 706 QuicErrorCode error = QUIC_NO_ERROR; |
| 706 if (error == QUIC_NO_ERROR) { | 707 if (error == QUIC_NO_ERROR) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 peer_hello, hello_type, error_details); | 745 peer_hello, hello_type, error_details); |
| 745 } | 746 } |
| 746 if (error == QUIC_NO_ERROR) { | 747 if (error == QUIC_NO_ERROR) { |
| 747 error = connection_options_.ProcessPeerHello(peer_hello, hello_type, | 748 error = connection_options_.ProcessPeerHello(peer_hello, hello_type, |
| 748 error_details); | 749 error_details); |
| 749 } | 750 } |
| 750 if (error == QUIC_NO_ERROR) { | 751 if (error == QUIC_NO_ERROR) { |
| 751 error = alternate_server_address_.ProcessPeerHello(peer_hello, hello_type, | 752 error = alternate_server_address_.ProcessPeerHello(peer_hello, hello_type, |
| 752 error_details); | 753 error_details); |
| 753 } | 754 } |
| 755 if (error == QUIC_NO_ERROR) { |
| 756 error = force_hol_blocking_.ProcessPeerHello(peer_hello, hello_type, |
| 757 error_details); |
| 758 } |
| 754 return error; | 759 return error; |
| 755 } | 760 } |
| 756 | 761 |
| 757 } // namespace net | 762 } // namespace net |
| OLD | NEW |