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