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

Unified Diff: net/quic/quic_crypto_client_stream.h

Issue 196403002: Move QuicServerInfo management from CachedState to the QuicStreamFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 b4ef3d199602c27cc44a460a6237c225624fb029..5830843eeba037a150579e7ab58cda1cd7d2ecdf 100644
--- a/net/quic/quic_crypto_client_stream.h
+++ b/net/quic/quic_crypto_client_stream.h
@@ -18,7 +18,7 @@
namespace net {
-class ProofVerifyDetails;
+class QuicServerInfo;
class QuicSession;
class SSLInfo;
@@ -52,6 +52,8 @@ class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
void OnIOComplete(int result);
+ void SetQuicServerInfo(scoped_ptr<QuicServerInfo> server_info);
+
private:
// ProofVerifierCallbackImpl is passed as the callback method to VerifyProof.
// The ProofVerifier calls this class with the result of proof verification
@@ -103,6 +105,8 @@ class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
// LoadQuicServerInfo is a helper function for DoLoadQuicServerInfoComplete.
void LoadQuicServerInfo(QuicCryptoClientConfig::CachedState* cached);
+ void SaveQuicServerInfo(QuicCryptoClientConfig::CachedState* cached);
+
State next_state_;
// num_client_hellos_ contains the number of client hello messages that this
// connection has sent.
@@ -131,6 +135,7 @@ class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
// The result of certificate verification.
scoped_ptr<CertVerifyResult> cert_verify_result_;
+ scoped_ptr<QuicServerInfo> quic_server_info_;
// This member is used to store the result of an asynchronous disk cache read.
// It must not be used after STATE_LOAD_QUIC_SERVER_INFO_COMPLETE.

Powered by Google App Engine
This is Rietveld 408576698