OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_client_base.h" | 5 #include "net/tools/quic/quic_client_base.h" |
6 | 6 |
7 #include "net/quic/crypto/quic_random.h" | 7 #include "net/quic/core/crypto/quic_random.h" |
8 #include "net/quic/quic_server_id.h" | 8 #include "net/quic/core/quic_server_id.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 QuicClientBase::QuicClientBase(const QuicServerId& server_id, | 12 QuicClientBase::QuicClientBase(const QuicServerId& server_id, |
13 const QuicVersionVector& supported_versions, | 13 const QuicVersionVector& supported_versions, |
14 const QuicConfig& config, | 14 const QuicConfig& config, |
15 QuicConnectionHelperInterface* helper, | 15 QuicConnectionHelperInterface* helper, |
16 QuicAlarmFactory* alarm_factory, | 16 QuicAlarmFactory* alarm_factory, |
17 std::unique_ptr<ProofVerifier> proof_verifier) | 17 std::unique_ptr<ProofVerifier> proof_verifier) |
18 : server_id_(server_id), | 18 : server_id_(server_id), |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 return cached->has_server_designated_connection_id() | 144 return cached->has_server_designated_connection_id() |
145 ? cached->GetNextServerDesignatedConnectionId() | 145 ? cached->GetNextServerDesignatedConnectionId() |
146 : 0; | 146 : 0; |
147 } | 147 } |
148 | 148 |
149 QuicConnectionId QuicClientBase::GenerateNewConnectionId() { | 149 QuicConnectionId QuicClientBase::GenerateNewConnectionId() { |
150 return QuicRandom::GetInstance()->RandUint64(); | 150 return QuicRandom::GetInstance()->RandUint64(); |
151 } | 151 } |
152 | 152 |
153 } // namespace net | 153 } // namespace net |
OLD | NEW |