OLD | NEW |
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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // and the client config settings also allow sending a ChannelID. | 202 // and the client config settings also allow sending a ChannelID. |
203 bool RequiresChannelID(QuicCryptoClientConfig::CachedState* cached); | 203 bool RequiresChannelID(QuicCryptoClientConfig::CachedState* cached); |
204 | 204 |
205 State next_state_; | 205 State next_state_; |
206 // num_client_hellos_ contains the number of client hello messages that this | 206 // num_client_hellos_ contains the number of client hello messages that this |
207 // connection has sent. | 207 // connection has sent. |
208 int num_client_hellos_; | 208 int num_client_hellos_; |
209 | 209 |
210 QuicCryptoClientConfig* const crypto_config_; | 210 QuicCryptoClientConfig* const crypto_config_; |
211 | 211 |
212 // Client's connection nonce (4-byte timestamp + 28 random bytes) | 212 // SHA-256 hash of the most recently sent CHLO. |
213 std::string nonce_; | 213 std::string chlo_hash_; |
| 214 |
214 // Server's (hostname, port, is_https, privacy_mode) tuple. | 215 // Server's (hostname, port, is_https, privacy_mode) tuple. |
215 const QuicServerId server_id_; | 216 const QuicServerId server_id_; |
216 | 217 |
217 // Generation counter from QuicCryptoClientConfig's CachedState. | 218 // Generation counter from QuicCryptoClientConfig's CachedState. |
218 uint64_t generation_counter_; | 219 uint64_t generation_counter_; |
219 | 220 |
220 // True if a channel ID was sent. | 221 // True if a channel ID was sent. |
221 bool channel_id_sent_; | 222 bool channel_id_sent_; |
222 | 223 |
223 // True if channel_id_source_callback_ was run. | 224 // True if channel_id_source_callback_ was run. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 bool stateless_reject_received_; | 258 bool stateless_reject_received_; |
258 | 259 |
259 base::TimeTicks proof_verify_start_time_; | 260 base::TimeTicks proof_verify_start_time_; |
260 | 261 |
261 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 262 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
262 }; | 263 }; |
263 | 264 |
264 } // namespace net | 265 } // namespace net |
265 | 266 |
266 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 267 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
OLD | NEW |