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_; |