| 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/crypto/quic_random.h" |
| 8 #include "net/quic/quic_server_id.h" | 8 #include "net/quic/quic_server_id.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 namespace tools { | 11 namespace tools { |
| 12 | 12 |
| 13 QuicClientBase::QuicClientBase(const QuicServerId& server_id, | 13 QuicClientBase::QuicClientBase(const QuicServerId& server_id, |
| 14 const QuicVersionVector& supported_versions, | 14 const QuicVersionVector& supported_versions, |
| 15 const QuicConfig& config) | 15 const QuicConfig& config, |
| 16 ProofVerifier* proof_verifier) |
| 16 : server_id_(server_id), | 17 : server_id_(server_id), |
| 17 config_(config), | 18 config_(config), |
| 19 crypto_config_(proof_verifier), |
| 18 supported_versions_(supported_versions), | 20 supported_versions_(supported_versions), |
| 19 initial_max_packet_length_(0), | 21 initial_max_packet_length_(0), |
| 20 num_stateless_rejects_received_(0), | 22 num_stateless_rejects_received_(0), |
| 21 num_sent_client_hellos_(0), | 23 num_sent_client_hellos_(0), |
| 22 connection_error_(QUIC_NO_ERROR), | 24 connection_error_(QUIC_NO_ERROR), |
| 23 connected_or_attempting_connect_(false) {} | 25 connected_or_attempting_connect_(false) {} |
| 24 | 26 |
| 25 QuicClientBase::~QuicClientBase() {} | 27 QuicClientBase::~QuicClientBase() {} |
| 26 | 28 |
| 27 bool QuicClientBase::Initialize() { | 29 bool QuicClientBase::Initialize() { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 ? cached->GetNextServerDesignatedConnectionId() | 138 ? cached->GetNextServerDesignatedConnectionId() |
| 137 : 0; | 139 : 0; |
| 138 } | 140 } |
| 139 | 141 |
| 140 QuicConnectionId QuicClientBase::GenerateNewConnectionId() { | 142 QuicConnectionId QuicClientBase::GenerateNewConnectionId() { |
| 141 return QuicRandom::GetInstance()->RandUint64(); | 143 return QuicRandom::GetInstance()->RandUint64(); |
| 142 } | 144 } |
| 143 | 145 |
| 144 } // namespace tools | 146 } // namespace tools |
| 145 } // namespace net | 147 } // namespace net |
| OLD | NEW |