| Index: net/quic/quic_crypto_client_stream.h
|
| ===================================================================
|
| --- net/quic/quic_crypto_client_stream.h (revision 173961)
|
| +++ net/quic/quic_crypto_client_stream.h (working copy)
|
| @@ -21,7 +21,33 @@
|
| 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:
|
| + void GenerateNonce();
|
| +
|
| + bool FillClientHelloMessage(CryptoHandshakeMessage* message);
|
| +
|
| + // Data members for encoding the ClientHello message.
|
| + // Protocol version
|
| + uint16 version_;
|
| + // Key exchange methods
|
| + CryptoTagVector key_exchange_;
|
| + // Authenticated encryption with associated data (AEAD) algorithms
|
| + CryptoTagVector aead_;
|
| + // Congestion control feedback types
|
| + CryptoTagVector congestion_control_;
|
| + // Idle connection state lifetime, in seconds
|
| + uint32 idle_connection_state_lifetime_;
|
| + // Keepalive timeout, in seconds, or 0 to turn off keepalive probes
|
| + uint32 keepalive_timeout_;
|
| + // Client's connection nonce (4-byte timestamp + 28 random bytes)
|
| + std::string nonce_;
|
| + // Server's hostname
|
| + std::string server_hostname_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream);
|
| };
|
|
|
|
|