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

Unified Diff: net/quic/quic_crypto_client_stream.h

Issue 154933003: Persist server's crypto config data to disk cache for 0-RTT (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update with TOT and handle multiple tabs loading same URL Created 6 years, 10 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
Index: net/quic/quic_crypto_client_stream.h
diff --git a/net/quic/quic_crypto_client_stream.h b/net/quic/quic_crypto_client_stream.h
index 1ca423f012b25c022000d69ac2cc0cdb77d20c87..8712a557934acc21f276b0a628d6fb9a6e13be7e 100644
--- a/net/quic/quic_crypto_client_stream.h
+++ b/net/quic/quic_crypto_client_stream.h
@@ -48,6 +48,8 @@ class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
// Gets the SSL connection information.
virtual bool GetSSLInfo(SSLInfo* ssl_info);
+ void OnIOComplete(int result);
+
private:
// ProofVerifierCallbackImpl is passed as the callback method to VerifyProof.
// The ProofVerifier calls this class with the result of proof verification
@@ -75,6 +77,7 @@ class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
enum State {
STATE_IDLE,
+ STATE_LOAD_QUIC_SERVER_INFO,
STATE_SEND_CHLO,
STATE_RECV_REJ,
STATE_VERIFY_PROOF,
@@ -86,6 +89,10 @@ class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
// |in| may be NULL if the call did not result from a received message
void DoHandshakeLoop(const CryptoHandshakeMessage* in);
+ // Calls QuicServerInfo's WaitForDataReady to load the server information from
+ // the disk cache.
+ int DoLoadQuicServerInfo(QuicCryptoClientConfig::CachedState* cached);
wtc 2014/02/07 00:54:11 Right now STATE_LOAD_QUIC_SERVER_INFO is the only
ramant (doing other things) 2014/02/07 20:30:51 Added a TODO. Done.
+
State next_state_;
// num_client_hellos_ contains the number of client hello messages that this
// connection has sent.

Powered by Google App Engine
This is Rietveld 408576698