Index: net/quic/quic_crypto_client_stream.h |
=================================================================== |
--- net/quic/quic_crypto_client_stream.h (revision 177030) |
+++ net/quic/quic_crypto_client_stream.h (working copy) |
@@ -5,6 +5,8 @@ |
#ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
#define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
+#include <string> |
+ |
#include "net/quic/quic_crypto_stream.h" |
namespace net { |
@@ -21,7 +23,15 @@ |
virtual void OnHandshakeMessage( |
const CryptoHandshakeMessage& message) OVERRIDE; |
+ // Performs a crypto handshake with the server. Returns true if the crypto |
+ // handshake is started successfully. |
+ bool CryptoConnect(); |
+ |
private: |
+ QuicClientCryptoConfig client_crypto_config_; |
+ // Client's connection nonce (4-byte timestamp + 28 random bytes) |
+ std::string nonce_; |
+ |
DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
}; |