| 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 // A base class for the toy client, which connects to a specified port and sends | 5 // A base class for the toy client, which connects to a specified port and sends |
| 6 // QUIC request to that endpoint. | 6 // QUIC request to that endpoint. |
| 7 | 7 |
| 8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_BASE_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_BASE_H_ |
| 9 #define NET_TOOLS_QUIC_QUIC_CLIENT_BASE_H_ | 9 #define NET_TOOLS_QUIC_QUIC_CLIENT_BASE_H_ |
| 10 | 10 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 160 } |
| 161 | 161 |
| 162 // UseTokenBinding enables token binding negotiation in the client. This | 162 // UseTokenBinding enables token binding negotiation in the client. This |
| 163 // should only be called before the initial Connect(). The client will still | 163 // should only be called before the initial Connect(). The client will still |
| 164 // need to check that token binding is negotiated with the server, and add | 164 // need to check that token binding is negotiated with the server, and add |
| 165 // token binding headers to requests if so. server, and add token binding | 165 // token binding headers to requests if so. server, and add token binding |
| 166 // headers to requests if so. The negotiated token binding parameters can be | 166 // headers to requests if so. The negotiated token binding parameters can be |
| 167 // found on the QuicCryptoNegotiatedParameters object in | 167 // found on the QuicCryptoNegotiatedParameters object in |
| 168 // token_binding_key_param. | 168 // token_binding_key_param. |
| 169 void UseTokenBinding() { | 169 void UseTokenBinding() { |
| 170 crypto_config_.tb_key_params = QuicTagVector{kP256}; | 170 crypto_config_.tb_key_params = QuicTagVector{kTB10}; |
| 171 } | 171 } |
| 172 | 172 |
| 173 const QuicVersionVector& supported_versions() const { | 173 const QuicVersionVector& supported_versions() const { |
| 174 return supported_versions_; | 174 return supported_versions_; |
| 175 } | 175 } |
| 176 | 176 |
| 177 void SetSupportedVersions(const QuicVersionVector& versions) { | 177 void SetSupportedVersions(const QuicVersionVector& versions) { |
| 178 supported_versions_ = versions; | 178 supported_versions_ = versions; |
| 179 } | 179 } |
| 180 | 180 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 std::vector<std::unique_ptr<QuicDataToResend>> data_to_resend_on_connect_; | 458 std::vector<std::unique_ptr<QuicDataToResend>> data_to_resend_on_connect_; |
| 459 | 459 |
| 460 std::unique_ptr<ClientQuicDataToResend> push_promise_data_to_resend_; | 460 std::unique_ptr<ClientQuicDataToResend> push_promise_data_to_resend_; |
| 461 | 461 |
| 462 DISALLOW_COPY_AND_ASSIGN(QuicClientBase); | 462 DISALLOW_COPY_AND_ASSIGN(QuicClientBase); |
| 463 }; | 463 }; |
| 464 | 464 |
| 465 } // namespace net | 465 } // namespace net |
| 466 | 466 |
| 467 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_BASE_H_ | 467 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_BASE_H_ |
| OLD | NEW |