diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-15 16:12:41 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-15 16:12:41 +0000 |
commit | 2bbe2d55ce7ac22070c86346a0948435e03707c9 (patch) | |
tree | c635d31bb8d3ec0fded123223ed98a778780a236 /net/socket/ssl_host_info.h | |
parent | 2d71bd10643da807fe2407a48b02629207d7b70d (diff) | |
download | chromium_src-2bbe2d55ce7ac22070c86346a0948435e03707c9.zip chromium_src-2bbe2d55ce7ac22070c86346a0948435e03707c9.tar.gz chromium_src-2bbe2d55ce7ac22070c86346a0948435e03707c9.tar.bz2 |
net: fix verification merge savings calculations.
Previously we miscalculated the amount of time saved by merging
certificate verification. We should have been counting the time from the
start of the verification till the time when we needed it because the
verification may have completed.
In the case that the verification has already completed, only count the
amount of time that it took.
BUG=none
TEST=none
http://codereview.chromium.org/5777005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_host_info.h')
-rw-r--r-- | net/socket/ssl_host_info.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/socket/ssl_host_info.h b/net/socket/ssl_host_info.h index 9f579a8..782293e 100644 --- a/net/socket/ssl_host_info.h +++ b/net/socket/ssl_host_info.h @@ -96,6 +96,10 @@ class SSLHostInfo { return verification_start_time_; } + base::TimeTicks verification_end_time() const { + return verification_end_time_; + } + protected: // Parse parses an opaque blob of data and fills out the public member fields // of this object. It returns true iff the parse was successful. The public @@ -121,6 +125,7 @@ class SSLHostInfo { bool rev_checking_enabled_; bool verify_ev_cert_; base::TimeTicks verification_start_time_; + base::TimeTicks verification_end_time_; CertVerifyResult cert_verify_result_; scoped_ptr<CertVerifier> verifier_; scoped_refptr<X509Certificate> cert_; |