Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: net/quic/quic_crypto_client_stream.h

Issue 11633030: Send the ClientHello handshake message. Fix a bug in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove an extraneous test:: before TestCryptoVisitor Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_client_session_test.cc ('k') | net/quic/quic_crypto_client_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « net/quic/quic_client_session_test.cc ('k') | net/quic/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698