OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/time/time.h" | |
11 #include "net/cert/cert_verify_result.h" | 12 #include "net/cert/cert_verify_result.h" |
12 #include "net/cert/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
13 #include "net/quic/crypto/proof_verifier.h" | 14 #include "net/quic/crypto/proof_verifier.h" |
14 #include "net/quic/crypto/quic_crypto_client_config.h" | 15 #include "net/quic/crypto/quic_crypto_client_config.h" |
15 #include "net/quic/quic_config.h" | 16 #include "net/quic/quic_config.h" |
16 #include "net/quic/quic_crypto_stream.h" | 17 #include "net/quic/quic_crypto_stream.h" |
17 | 18 |
18 namespace net { | 19 namespace net { |
19 | 20 |
20 class ProofVerifyDetails; | 21 class ProofVerifyDetails; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
128 string verify_error_details_; | 129 string verify_error_details_; |
129 scoped_ptr<ProofVerifyDetails> verify_details_; | 130 scoped_ptr<ProofVerifyDetails> verify_details_; |
130 | 131 |
131 // The result of certificate verification. | 132 // The result of certificate verification. |
132 scoped_ptr<CertVerifyResult> cert_verify_result_; | 133 scoped_ptr<CertVerifyResult> cert_verify_result_; |
133 | 134 |
134 // This member is used to store the result of an asynchronous disk cache read. | 135 // This member is used to store the result of an asynchronous disk cache read. |
135 // It must not be used after STATE_LOAD_QUIC_SERVER_INFO_COMPLETE. | 136 // It must not be used after STATE_LOAD_QUIC_SERVER_INFO_COMPLETE. |
136 int disk_cache_load_result_; | 137 int disk_cache_load_result_; |
137 | 138 |
139 // Time when call to WaitForDataReady was made, used for computing time spent | |
140 // to read QUIC server information from disk cache. | |
141 base::TimeTicks read_start_time_; | |
wtc
2014/03/10 17:29:28
Nit: this variable is poorly named because "read"
ramant (doing other things)
2014/03/10 20:42:20
Renamed the variable in https://codereview.chromiu
| |
142 | |
138 base::WeakPtrFactory<QuicCryptoClientStream> weak_factory_; | 143 base::WeakPtrFactory<QuicCryptoClientStream> weak_factory_; |
139 | 144 |
140 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 145 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
141 }; | 146 }; |
142 | 147 |
143 } // namespace net | 148 } // namespace net |
144 | 149 |
145 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 150 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
OLD | NEW |