| 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/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" |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 void QuicCryptoServerStream::ValidateCallback::RunImpl( | 474 void QuicCryptoServerStream::ValidateCallback::RunImpl( |
| 475 const CryptoHandshakeMessage& client_hello, | 475 const CryptoHandshakeMessage& client_hello, |
| 476 const Result& result) { | 476 const Result& result) { |
| 477 if (parent_ != nullptr) { | 477 if (parent_ != nullptr) { |
| 478 parent_->FinishProcessingHandshakeMessage(client_hello, result); | 478 parent_->FinishProcessingHandshakeMessage(client_hello, result); |
| 479 } | 479 } |
| 480 } | 480 } |
| 481 | 481 |
| 482 QuicConnectionId QuicCryptoServerStream::GenerateConnectionIdForReject( | 482 QuicConnectionId QuicCryptoServerStream::GenerateConnectionIdForReject( |
| 483 QuicConnectionId connection_id) { | 483 QuicConnectionId connection_id) { |
| 484 // TODO(rch): Remove this method when this flag is removed. | 484 // TODO(rch): Remove this method when |
| 485 if (FLAGS_quic_dispatcher_creates_id) { | 485 // reloadable_flag_quic_dispatcher_creates_id2 is removed. |
| 486 QuicServerSessionBase* session_base = | 486 QuicServerSessionBase* session_base = |
| 487 static_cast<QuicServerSessionBase*>(session()); | 487 static_cast<QuicServerSessionBase*>(session()); |
| 488 return session_base->GenerateConnectionIdForReject(connection_id); | 488 return session_base->GenerateConnectionIdForReject(connection_id); |
| 489 } | |
| 490 return session()->connection()->random_generator()->RandUint64(); | |
| 491 } | 489 } |
| 492 | 490 |
| 493 } // namespace net | 491 } // namespace net |
| OLD | NEW |