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/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/crypto/crypto_handshake_message.h" | 10 #include "net/quic/core/crypto/crypto_handshake_message.h" |
11 #include "net/quic/crypto/crypto_protocol.h" | 11 #include "net/quic/core/crypto/crypto_protocol.h" |
12 #include "net/quic/quic_bug_tracker.h" | 12 #include "net/quic/core/quic_bug_tracker.h" |
13 #include "net/quic/quic_socket_address_coder.h" | 13 #include "net/quic/core/quic_socket_address_coder.h" |
14 #include "net/quic/quic_utils.h" | 14 #include "net/quic/core/quic_utils.h" |
15 | 15 |
16 using std::min; | 16 using std::min; |
17 using std::string; | 17 using std::string; |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 | 20 |
21 // Reads the value corresponding to |name_| from |msg| into |out|. If the | 21 // Reads the value corresponding to |name_| from |msg| into |out|. If the |
22 // |name_| is absent in |msg| and |presence| is set to OPTIONAL |out| is set | 22 // |name_| is absent in |msg| and |presence| is set to OPTIONAL |out| is set |
23 // to |default_value|. | 23 // to |default_value|. |
24 QuicErrorCode ReadUint32(const CryptoHandshakeMessage& msg, | 24 QuicErrorCode ReadUint32(const CryptoHandshakeMessage& msg, |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 error_details); | 748 error_details); |
749 } | 749 } |
750 if (error == QUIC_NO_ERROR) { | 750 if (error == QUIC_NO_ERROR) { |
751 error = alternate_server_address_.ProcessPeerHello(peer_hello, hello_type, | 751 error = alternate_server_address_.ProcessPeerHello(peer_hello, hello_type, |
752 error_details); | 752 error_details); |
753 } | 753 } |
754 return error; | 754 return error; |
755 } | 755 } |
756 | 756 |
757 } // namespace net | 757 } // namespace net |
OLD | NEW |