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

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

Issue 345563009: Renumber HandshakeFailureReason enums so that there are no big gaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/crypto/crypto_handshake.h ('k') | 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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // present in a version negotiation packet previously recevied from the 201 // present in a version negotiation packet previously recevied from the
202 // server. The contents of this list will be compared against the list of 202 // server. The contents of this list will be compared against the list of
203 // versions provided in the VER tag of the server hello. 203 // versions provided in the VER tag of the server hello.
204 QuicErrorCode ProcessServerHello(const CryptoHandshakeMessage& server_hello, 204 QuicErrorCode ProcessServerHello(const CryptoHandshakeMessage& server_hello,
205 QuicConnectionId connection_id, 205 QuicConnectionId connection_id,
206 const QuicVersionVector& negotiated_versions, 206 const QuicVersionVector& negotiated_versions,
207 CachedState* cached, 207 CachedState* cached,
208 QuicCryptoNegotiatedParameters* out_params, 208 QuicCryptoNegotiatedParameters* out_params,
209 std::string* error_details); 209 std::string* error_details);
210 210
211 // Packs the |reason| into an uint32 value.
212 uint32 RejectReasonToPackedError(HandshakeFailureReason reason);
213
214 ProofVerifier* proof_verifier() const; 211 ProofVerifier* proof_verifier() const;
215 212
216 // SetProofVerifier takes ownership of a |ProofVerifier| that clients are 213 // SetProofVerifier takes ownership of a |ProofVerifier| that clients are
217 // free to use in order to verify certificate chains from servers. If a 214 // free to use in order to verify certificate chains from servers. If a
218 // ProofVerifier is set then the client will request a certificate chain from 215 // ProofVerifier is set then the client will request a certificate chain from
219 // the server. 216 // the server.
220 void SetProofVerifier(ProofVerifier* verifier); 217 void SetProofVerifier(ProofVerifier* verifier);
221 218
222 ChannelIDSource* channel_id_source() const; 219 ChannelIDSource* channel_id_source() const;
223 220
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 283
287 // The |user_agent_id_| passed in QUIC's CHLO message. 284 // The |user_agent_id_| passed in QUIC's CHLO message.
288 std::string user_agent_id_; 285 std::string user_agent_id_;
289 286
290 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); 287 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig);
291 }; 288 };
292 289
293 } // namespace net 290 } // namespace net
294 291
295 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ 292 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/crypto_handshake.h ('k') | net/quic/crypto/quic_crypto_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698