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

Side by Side Diff: net/quic/crypto/quic_crypto_client_config.h

Issue 1145453002: Crypto-client config no longer gives stateless reject error. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@quic_limit_max_cwnd_to_receive_buffer_92419361
Patch Set: Created 5 years, 7 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 | « no previous file | net/quic/crypto/quic_crypto_client_config.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ 5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_
6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 QuicCryptoNegotiatedParameters* out_params, 214 QuicCryptoNegotiatedParameters* out_params,
215 CryptoHandshakeMessage* out, 215 CryptoHandshakeMessage* out,
216 std::string* error_details) const; 216 std::string* error_details) const;
217 217
218 // ProcessRejection processes a REJ message from a server and updates the 218 // ProcessRejection processes a REJ message from a server and updates the
219 // cached information about that server. After this, |IsComplete| may return 219 // cached information about that server. After this, |IsComplete| may return
220 // true for that server's CachedState. If the rejection message contains state 220 // true for that server's CachedState. If the rejection message contains state
221 // about a future handshake (i.e. an nonce value from the server), then it 221 // about a future handshake (i.e. an nonce value from the server), then it
222 // will be saved in |out_params|. |now| is used to judge whether the server 222 // will be saved in |out_params|. |now| is used to judge whether the server
223 // config in the rejection message has expired. |is_https| is used to track 223 // config in the rejection message has expired. |is_https| is used to track
224 // reject reason for secure vs insecure QUIC. If the rejection message 224 // reject reason for secure vs insecure QUIC.
225 // indicates that the reject is a stateless-reject, returns error code
226 // QUIC_CRYPTO_HANDSHAKE_RECEIVED_STATELESS_REJECT.
227 QuicErrorCode ProcessRejection(const CryptoHandshakeMessage& rej, 225 QuicErrorCode ProcessRejection(const CryptoHandshakeMessage& rej,
228 QuicWallTime now, 226 QuicWallTime now,
229 CachedState* cached, 227 CachedState* cached,
230 bool is_https, 228 bool is_https,
231 QuicCryptoNegotiatedParameters* out_params, 229 QuicCryptoNegotiatedParameters* out_params,
232 std::string* error_details); 230 std::string* error_details);
233 231
234 // ProcessServerHello processes the message in |server_hello|, updates the 232 // ProcessServerHello processes the message in |server_hello|, updates the
235 // cached information about that server, writes the negotiated parameters to 233 // cached information about that server, writes the negotiated parameters to
236 // |out_params| and returns QUIC_NO_ERROR. If |server_hello| is unacceptable 234 // |out_params| and returns QUIC_NO_ERROR. If |server_hello| is unacceptable
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 346
349 // The |user_agent_id_| passed in QUIC's CHLO message. 347 // The |user_agent_id_| passed in QUIC's CHLO message.
350 std::string user_agent_id_; 348 std::string user_agent_id_;
351 349
352 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); 350 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig);
353 }; 351 };
354 352
355 } // namespace net 353 } // namespace net
356 354
357 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ 355 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/crypto/quic_crypto_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698