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

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: Fix crash 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
« 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
diff --git a/net/quic/quic_crypto_client_stream.h b/net/quic/quic_crypto_client_stream.h
index 12198d94c32ff65506a4159e9b172f49d4145676..1f4c98be91c01a6812bbb85a7e70185ed6a5c267 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,10 @@ class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
// LoadQuicServerInfo is a helper function for DoLoadQuicServerInfoComplete.
void LoadQuicServerInfo(QuicCryptoClientConfig::CachedState* cached);
+ // Should be aclled whenever cached->SetProofValid() is called.
+ // TODO(rch): move this to some chrome-specific class.
+ void SaveQuicServerInfo(const QuicCryptoClientConfig::CachedState& cached);
+
State next_state_;
// num_client_hellos_ contains the number of client hello messages that this
// connection has sent.
@@ -132,6 +138,8 @@ 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.
int disk_cache_load_result_;
« 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