| 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/tools/quic/quic_simple_server_session_helper.h" | 5 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 QuicSimpleServerSessionHelper::QuicSimpleServerSessionHelper(QuicRandom* random) | 9 QuicSimpleCryptoServerStreamHelper::QuicSimpleCryptoServerStreamHelper( |
| 10 QuicRandom* random) |
| 10 : random_(random) {} | 11 : random_(random) {} |
| 11 | 12 |
| 12 QuicSimpleServerSessionHelper::~QuicSimpleServerSessionHelper() {} | 13 QuicSimpleCryptoServerStreamHelper::~QuicSimpleCryptoServerStreamHelper() {} |
| 13 | 14 |
| 14 QuicConnectionId QuicSimpleServerSessionHelper::GenerateConnectionIdForReject( | 15 QuicConnectionId |
| 16 QuicSimpleCryptoServerStreamHelper::GenerateConnectionIdForReject( |
| 15 QuicConnectionId /*connection_id*/) const { | 17 QuicConnectionId /*connection_id*/) const { |
| 16 return random_->RandUint64(); | 18 return random_->RandUint64(); |
| 17 } | 19 } |
| 18 | 20 |
| 19 bool QuicSimpleServerSessionHelper::CanAcceptClientHello( | 21 bool QuicSimpleCryptoServerStreamHelper::CanAcceptClientHello( |
| 20 const CryptoHandshakeMessage& message, | 22 const CryptoHandshakeMessage& message, |
| 21 const IPEndPoint& self_address, | 23 const IPEndPoint& self_address, |
| 22 std::string* error_details) const { | 24 std::string* error_details) const { |
| 23 return true; | 25 return true; |
| 24 } | 26 } |
| 25 | 27 |
| 26 } // namespace net | 28 } // namespace net |
| 29 |
| 30 |
| 31 |
| OLD | NEW |