| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/quic/crypto/crypto_handshake.h" | 10 #include "net/quic/crypto/crypto_handshake.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // num_client_hellos_ contains the number of client hello messages that this | 63 // num_client_hellos_ contains the number of client hello messages that this |
| 64 // connection has sent. | 64 // connection has sent. |
| 65 int num_client_hellos_; | 65 int num_client_hellos_; |
| 66 | 66 |
| 67 const QuicConfig& config_; | 67 const QuicConfig& config_; |
| 68 QuicCryptoClientConfig* const crypto_config_; | 68 QuicCryptoClientConfig* const crypto_config_; |
| 69 | 69 |
| 70 QuicNegotiatedParameters negotiated_params_; | 70 QuicNegotiatedParameters negotiated_params_; |
| 71 QuicCryptoNegotiatedParameters crypto_negotiated_params_; | 71 QuicCryptoNegotiatedParameters crypto_negotiated_params_; |
| 72 | 72 |
| 73 // decrypter_pushed_ is true if we have installed a QuicDecrypter in the | |
| 74 // connection. We need to track this because, in the event of a handshake | |
| 75 // failure, we have to remove any previous decrypters as they will have the | |
| 76 // wrong keys. | |
| 77 bool decrypter_pushed_; | |
| 78 | |
| 79 // Client's connection nonce (4-byte timestamp + 28 random bytes) | 73 // Client's connection nonce (4-byte timestamp + 28 random bytes) |
| 80 std::string nonce_; | 74 std::string nonce_; |
| 81 // Server's hostname | 75 // Server's hostname |
| 82 std::string server_hostname_; | 76 std::string server_hostname_; |
| 83 | 77 |
| 84 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 78 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
| 85 }; | 79 }; |
| 86 | 80 |
| 87 } // namespace net | 81 } // namespace net |
| 88 | 82 |
| 89 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 83 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
| OLD | NEW |