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