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_crypto_server_stream.h" | 5 #include "net/quic/core/quic_crypto_server_stream.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "crypto/secure_hash.h" | 10 #include "crypto/secure_hash.h" |
11 #include "net/quic/crypto/crypto_protocol.h" | 11 #include "net/quic/core/crypto/crypto_protocol.h" |
12 #include "net/quic/crypto/crypto_utils.h" | 12 #include "net/quic/core/crypto/crypto_utils.h" |
13 #include "net/quic/crypto/quic_crypto_server_config.h" | 13 #include "net/quic/core/crypto/quic_crypto_server_config.h" |
14 #include "net/quic/crypto/quic_random.h" | 14 #include "net/quic/core/crypto/quic_random.h" |
15 #include "net/quic/proto/cached_network_parameters.pb.h" | 15 #include "net/quic/core/proto/cached_network_parameters.pb.h" |
16 #include "net/quic/quic_config.h" | 16 #include "net/quic/core/quic_config.h" |
17 #include "net/quic/quic_flags.h" | 17 #include "net/quic/core/quic_flags.h" |
18 #include "net/quic/quic_protocol.h" | 18 #include "net/quic/core/quic_protocol.h" |
19 #include "net/quic/quic_server_session_base.h" | 19 #include "net/quic/core/quic_server_session_base.h" |
20 | 20 |
21 using base::StringPiece; | 21 using base::StringPiece; |
22 using std::string; | 22 using std::string; |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 | 25 |
26 namespace { | 26 namespace { |
27 bool HasFixedTag(const CryptoHandshakeMessage& message) { | 27 bool HasFixedTag(const CryptoHandshakeMessage& message) { |
28 const QuicTag* received_tags; | 28 const QuicTag* received_tags; |
29 size_t received_tags_length; | 29 size_t received_tags_length; |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 QuicConnectionId QuicCryptoServerStream::GenerateConnectionIdForReject( | 480 QuicConnectionId QuicCryptoServerStream::GenerateConnectionIdForReject( |
481 QuicConnectionId connection_id) { | 481 QuicConnectionId connection_id) { |
482 // TODO(rch): Remove this method when | 482 // TODO(rch): Remove this method when |
483 // reloadable_flag_quic_dispatcher_creates_id2 is removed. | 483 // reloadable_flag_quic_dispatcher_creates_id2 is removed. |
484 QuicServerSessionBase* session_base = | 484 QuicServerSessionBase* session_base = |
485 static_cast<QuicServerSessionBase*>(session()); | 485 static_cast<QuicServerSessionBase*>(session()); |
486 return session_base->GenerateConnectionIdForReject(connection_id); | 486 return session_base->GenerateConnectionIdForReject(connection_id); |
487 } | 487 } |
488 | 488 |
489 } // namespace net | 489 } // namespace net |
OLD | NEW |