diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-14 15:49:00 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-14 15:49:00 +0000 |
commit | 0c1c047d641a599ffffa280ab50d564cedb3e436 (patch) | |
tree | 31dddb5d27c3062982442fe747875f6fb9298eb8 /net/socket/ssl_host_info.h | |
parent | 0bc6452c9c509486398bbdc6d39b81eaf4628604 (diff) | |
download | chromium_src-0c1c047d641a599ffffa280ab50d564cedb3e436.zip chromium_src-0c1c047d641a599ffffa280ab50d564cedb3e436.tar.gz chromium_src-0c1c047d641a599ffffa280ab50d564cedb3e436.tar.bz2 |
net: measure theoretical delay of waiting for DNS cert information.
This patch adds a histogram to measure what the delay would have been,
had we waited for information from DNS in order to make a certificate
verification decision.
BUG=none
TEST=none
http://codereview.chromium.org/6329001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_host_info.h')
-rw-r--r-- | net/socket/ssl_host_info.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/socket/ssl_host_info.h b/net/socket/ssl_host_info.h index c384e2e..276888b 100644 --- a/net/socket/ssl_host_info.h +++ b/net/socket/ssl_host_info.h @@ -106,6 +106,12 @@ class SSLHostInfo { return verification_end_time_; } + // set_cert_verification_finished_time allows the SSL socket to tell us when + // it finished verifing the certificate. If the DNS request hasn't finished + // by this time then we record how long we would have had to have waited for + // it. + void set_cert_verification_finished_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 @@ -146,6 +152,7 @@ class SSLHostInfo { DnsRRResolver::Handle dns_handle_; RRResponse dns_response_; base::TimeTicks dns_lookup_start_time_; + base::TimeTicks cert_verification_finished_time_; }; class SSLHostInfoFactory { |