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

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

Issue 342863005: QUIC - Record reject reasons for CHLO message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: separated histograms.xml changes into a separate CL Created 6 years, 5 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
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>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "net/base/net_export.h" 14 #include "net/base/net_export.h"
15 #include "net/quic/crypto/crypto_handshake.h" 15 #include "net/quic/crypto/crypto_handshake.h"
16 #include "net/quic/crypto/quic_crypto_server_config.h"
16 #include "net/quic/quic_protocol.h" 17 #include "net/quic/quic_protocol.h"
17 #include "net/quic/quic_server_id.h" 18 #include "net/quic/quic_server_id.h"
18 19
19 namespace net { 20 namespace net {
20 21
21 class ChannelIDKey; 22 class ChannelIDKey;
22 class ChannelIDSource; 23 class ChannelIDSource;
23 class CryptoHandshakeMessage; 24 class CryptoHandshakeMessage;
24 class ProofVerifier; 25 class ProofVerifier;
25 class ProofVerifyDetails; 26 class ProofVerifyDetails;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // present in a version negotiation packet previously recevied from the 202 // present in a version negotiation packet previously recevied from the
202 // server. The contents of this list will be compared against the list of 203 // server. The contents of this list will be compared against the list of
203 // versions provided in the VER tag of the server hello. 204 // versions provided in the VER tag of the server hello.
204 QuicErrorCode ProcessServerHello(const CryptoHandshakeMessage& server_hello, 205 QuicErrorCode ProcessServerHello(const CryptoHandshakeMessage& server_hello,
205 QuicConnectionId connection_id, 206 QuicConnectionId connection_id,
206 const QuicVersionVector& negotiated_versions, 207 const QuicVersionVector& negotiated_versions,
207 CachedState* cached, 208 CachedState* cached,
208 QuicCryptoNegotiatedParameters* out_params, 209 QuicCryptoNegotiatedParameters* out_params,
209 std::string* error_details); 210 std::string* error_details);
210 211
212 // Packs the |reason| into an uint32 value.
213 uint32 RejectReasonToPackedError(HandshakeFailureReason reason);
214
211 ProofVerifier* proof_verifier() const; 215 ProofVerifier* proof_verifier() const;
212 216
213 // SetProofVerifier takes ownership of a |ProofVerifier| that clients are 217 // SetProofVerifier takes ownership of a |ProofVerifier| that clients are
214 // free to use in order to verify certificate chains from servers. If a 218 // free to use in order to verify certificate chains from servers. If a
215 // ProofVerifier is set then the client will request a certificate chain from 219 // ProofVerifier is set then the client will request a certificate chain from
216 // the server. 220 // the server.
217 void SetProofVerifier(ProofVerifier* verifier); 221 void SetProofVerifier(ProofVerifier* verifier);
218 222
219 ChannelIDSource* channel_id_source() const; 223 ChannelIDSource* channel_id_source() const;
220 224
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 287
284 // The |user_agent_id_| passed in QUIC's CHLO message. 288 // The |user_agent_id_| passed in QUIC's CHLO message.
285 std::string user_agent_id_; 289 std::string user_agent_id_;
286 290
287 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); 291 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig);
288 }; 292 };
289 293
290 } // namespace net 294 } // namespace net
291 295
292 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ 296 #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') | net/quic/crypto/quic_crypto_client_config.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698