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/core/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 "net/quic/core/crypto/crypto_protocol.h" | 9 #include "net/quic/core/crypto/crypto_protocol.h" |
10 #include "net/quic/core/crypto/crypto_utils.h" | 10 #include "net/quic/core/crypto/crypto_utils.h" |
11 #include "net/quic/core/crypto/quic_crypto_server_config.h" | 11 #include "net/quic/core/crypto/quic_crypto_server_config.h" |
12 #include "net/quic/core/crypto/quic_random.h" | 12 #include "net/quic/core/crypto/quic_random.h" |
13 #include "net/quic/core/proto/cached_network_parameters.pb.h" | 13 #include "net/quic/core/proto/cached_network_parameters.pb.h" |
14 #include "net/quic/core/quic_config.h" | 14 #include "net/quic/core/quic_config.h" |
15 #include "net/quic/core/quic_flags.h" | |
16 #include "net/quic/core/quic_packets.h" | 15 #include "net/quic/core/quic_packets.h" |
17 #include "net/quic/core/quic_session.h" | 16 #include "net/quic/core/quic_session.h" |
| 17 #include "net/quic/platform/api/quic_flags.h" |
18 #include "net/quic/platform/api/quic_logging.h" | 18 #include "net/quic/platform/api/quic_logging.h" |
19 #include "net/quic/platform/api/quic_string_piece.h" | 19 #include "net/quic/platform/api/quic_string_piece.h" |
20 #include "net/quic/platform/api/quic_text_utils.h" | 20 #include "net/quic/platform/api/quic_text_utils.h" |
21 #include "third_party/boringssl/src/include/openssl/sha.h" | 21 #include "third_party/boringssl/src/include/openssl/sha.h" |
22 | 22 |
23 using std::string; | 23 using std::string; |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 | 26 |
27 class QuicCryptoServerStream::ProcessClientHelloCallback | 27 class QuicCryptoServerStream::ProcessClientHelloCallback |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 QuicConnectionId QuicCryptoServerStream::GenerateConnectionIdForReject( | 464 QuicConnectionId QuicCryptoServerStream::GenerateConnectionIdForReject( |
465 bool use_stateless_rejects) { | 465 bool use_stateless_rejects) { |
466 if (!use_stateless_rejects) { | 466 if (!use_stateless_rejects) { |
467 return 0; | 467 return 0; |
468 } | 468 } |
469 return helper_->GenerateConnectionIdForReject( | 469 return helper_->GenerateConnectionIdForReject( |
470 session()->connection()->connection_id()); | 470 session()->connection()->connection_id()); |
471 } | 471 } |
472 | 472 |
473 } // namespace net | 473 } // namespace net |
OLD | NEW |