| 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> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 12 #include "base/macros.h" |
| 10 #include "net/quic/crypto/channel_id.h" | 13 #include "net/quic/crypto/channel_id.h" |
| 11 #include "net/quic/crypto/proof_verifier.h" | 14 #include "net/quic/crypto/proof_verifier.h" |
| 12 #include "net/quic/crypto/quic_crypto_client_config.h" | 15 #include "net/quic/crypto/quic_crypto_client_config.h" |
| 13 #include "net/quic/quic_config.h" | 16 #include "net/quic/quic_config.h" |
| 14 #include "net/quic/quic_crypto_stream.h" | 17 #include "net/quic/quic_crypto_stream.h" |
| 15 #include "net/quic/quic_server_id.h" | 18 #include "net/quic/quic_server_id.h" |
| 16 | 19 |
| 17 namespace net { | 20 namespace net { |
| 18 | 21 |
| 19 class QuicClientSessionBase; | 22 class QuicClientSessionBase; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 int num_client_hellos_; | 191 int num_client_hellos_; |
| 189 | 192 |
| 190 QuicCryptoClientConfig* const crypto_config_; | 193 QuicCryptoClientConfig* const crypto_config_; |
| 191 | 194 |
| 192 // Client's connection nonce (4-byte timestamp + 28 random bytes) | 195 // Client's connection nonce (4-byte timestamp + 28 random bytes) |
| 193 std::string nonce_; | 196 std::string nonce_; |
| 194 // Server's (hostname, port, is_https, privacy_mode) tuple. | 197 // Server's (hostname, port, is_https, privacy_mode) tuple. |
| 195 const QuicServerId server_id_; | 198 const QuicServerId server_id_; |
| 196 | 199 |
| 197 // Generation counter from QuicCryptoClientConfig's CachedState. | 200 // Generation counter from QuicCryptoClientConfig's CachedState. |
| 198 uint64 generation_counter_; | 201 uint64_t generation_counter_; |
| 199 | 202 |
| 200 // True if a channel ID was sent. | 203 // True if a channel ID was sent. |
| 201 bool channel_id_sent_; | 204 bool channel_id_sent_; |
| 202 | 205 |
| 203 // True if channel_id_source_callback_ was run. | 206 // True if channel_id_source_callback_ was run. |
| 204 bool channel_id_source_callback_run_; | 207 bool channel_id_source_callback_run_; |
| 205 | 208 |
| 206 // channel_id_source_callback_ contains the callback object that we passed | 209 // channel_id_source_callback_ contains the callback object that we passed |
| 207 // to an asynchronous channel ID lookup. The ChannelIDSource owns this | 210 // to an asynchronous channel ID lookup. The ChannelIDSource owns this |
| 208 // object. | 211 // object. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 232 // reject. Used for book-keeping between the STATE_RECV_REJ, | 235 // reject. Used for book-keeping between the STATE_RECV_REJ, |
| 233 // STATE_VERIFY_PROOF*, and subsequent STATE_SEND_CHLO state. | 236 // STATE_VERIFY_PROOF*, and subsequent STATE_SEND_CHLO state. |
| 234 bool stateless_reject_received_; | 237 bool stateless_reject_received_; |
| 235 | 238 |
| 236 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 239 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
| 237 }; | 240 }; |
| 238 | 241 |
| 239 } // namespace net | 242 } // namespace net |
| 240 | 243 |
| 241 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 244 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
| OLD | NEW |