Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: net/tools/quic/quic_client_base.h

Issue 2391103003: Landing Recent QUIC changes until 3:24 PM, Oct 01, 2016 UTC-4 (Closed)
Patch Set: Add new error code to quic_error_mapping.cc Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/tools/quic/chlo_extractor.cc ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/tools/quic/chlo_extractor.cc ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698