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

Side by Side Diff: net/quic/quic_crypto_client_stream.h

Issue 218923002: Merge internal change: 63891842 - QuicServerId changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_QUIC_CRYPTO_CLIENT_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_
6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ 6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/quic/crypto/proof_verifier.h" 10 #include "net/quic/crypto/proof_verifier.h"
11 #include "net/quic/crypto/quic_crypto_client_config.h" 11 #include "net/quic/crypto/quic_crypto_client_config.h"
12 #include "net/quic/quic_config.h" 12 #include "net/quic/quic_config.h"
13 #include "net/quic/quic_crypto_stream.h" 13 #include "net/quic/quic_crypto_stream.h"
14 #include "net/quic/quic_session_key.h" 14 #include "net/quic/quic_server_id.h"
15 15
16 namespace net { 16 namespace net {
17 17
18 class QuicClientSessionBase; 18 class QuicClientSessionBase;
19 19
20 namespace test { 20 namespace test {
21 class CryptoTestUtils; 21 class CryptoTestUtils;
22 } // namespace test 22 } // namespace test
23 23
24 class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream { 24 class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
25 public: 25 public:
26 QuicCryptoClientStream(const QuicSessionKey& server_key, 26 QuicCryptoClientStream(const QuicServerId& server_id,
27 QuicClientSessionBase* session, 27 QuicClientSessionBase* session,
28 ProofVerifyContext* verify_context, 28 ProofVerifyContext* verify_context,
29 QuicCryptoClientConfig* crypto_config); 29 QuicCryptoClientConfig* crypto_config);
30 virtual ~QuicCryptoClientStream(); 30 virtual ~QuicCryptoClientStream();
31 31
32 // CryptoFramerVisitorInterface implementation 32 // CryptoFramerVisitorInterface implementation
33 virtual void OnHandshakeMessage( 33 virtual void OnHandshakeMessage(
34 const CryptoHandshakeMessage& message) OVERRIDE; 34 const CryptoHandshakeMessage& message) OVERRIDE;
35 35
36 // Performs a crypto handshake with the server. Returns true if the crypto 36 // Performs a crypto handshake with the server. Returns true if the crypto
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 State next_state_; 91 State next_state_;
92 // num_client_hellos_ contains the number of client hello messages that this 92 // num_client_hellos_ contains the number of client hello messages that this
93 // connection has sent. 93 // connection has sent.
94 int num_client_hellos_; 94 int num_client_hellos_;
95 95
96 QuicCryptoClientConfig* const crypto_config_; 96 QuicCryptoClientConfig* const crypto_config_;
97 97
98 // Client's connection nonce (4-byte timestamp + 28 random bytes) 98 // Client's connection nonce (4-byte timestamp + 28 random bytes)
99 std::string nonce_; 99 std::string nonce_;
100 // Server's (hostname, port, is_https) tuple. 100 // Server's (hostname, port, is_https, privacy_mode) tuple.
101 const QuicSessionKey server_key_; 101 const QuicServerId server_id_;
102 102
103 // Generation counter from QuicCryptoClientConfig's CachedState. 103 // Generation counter from QuicCryptoClientConfig's CachedState.
104 uint64 generation_counter_; 104 uint64 generation_counter_;
105 105
106 // proof_verify_callback_ contains the callback object that we passed to an 106 // proof_verify_callback_ contains the callback object that we passed to an
107 // asynchronous proof verification. The ProofVerifier owns this object. 107 // asynchronous proof verification. The ProofVerifier owns this object.
108 ProofVerifierCallbackImpl* proof_verify_callback_; 108 ProofVerifierCallbackImpl* proof_verify_callback_;
109 109
110 // These members are used to store the result of an asynchronous proof 110 // These members are used to store the result of an asynchronous proof
111 // verification. These members must not be used after 111 // verification. These members must not be used after
112 // STATE_VERIFY_PROOF_COMPLETE. 112 // STATE_VERIFY_PROOF_COMPLETE.
113 bool verify_ok_; 113 bool verify_ok_;
114 string verify_error_details_; 114 string verify_error_details_;
115 scoped_ptr<ProofVerifyDetails> verify_details_; 115 scoped_ptr<ProofVerifyDetails> verify_details_;
116 scoped_ptr<ProofVerifyContext> verify_context_; 116 scoped_ptr<ProofVerifyContext> verify_context_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); 118 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream);
119 }; 119 };
120 120
121 } // namespace net 121 } // namespace net
122 122
123 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ 123 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698