summaryrefslogtreecommitdiffstats
path: root/net/socket/ssl_host_info.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-03 23:23:22 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-03 23:23:22 +0000
commit0912579b25f74d5b66c8adc0d3d8a7f805141e89 (patch)
tree132990c5d931488bb8e9d295376b65aea8b74013 /net/socket/ssl_host_info.h
parentaef0f68aeacca2b3771b06032b665b05c6979be7 (diff)
downloadchromium_src-0912579b25f74d5b66c8adc0d3d8a7f805141e89.zip
chromium_src-0912579b25f74d5b66c8adc0d3d8a7f805141e89.tar.gz
chromium_src-0912579b25f74d5b66c8adc0d3d8a7f805141e89.tar.bz2
net: Make Snap Start check cert verification and add metrics
This CL causes Snap Start to only trigger if the certificate verification has completed by the time we are ready to send out the handshake message. It also adds a couple of NetLog entries and histograms around the Snap Start code. BUG=none TEST=none http://codereview.chromium.org/4408001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_host_info.h')
-rw-r--r--net/socket/ssl_host_info.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/socket/ssl_host_info.h b/net/socket/ssl_host_info.h
index f919281..5f515fb 100644
--- a/net/socket/ssl_host_info.h
+++ b/net/socket/ssl_host_info.h
@@ -10,6 +10,7 @@
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
+#include "base/time.h"
#include "net/base/cert_verify_result.h"
#include "net/base/completion_callback.h"
#include "net/socket/ssl_client_socket.h"
@@ -89,6 +90,10 @@ class SSLHostInfo {
// verification.
int WaitForCertVerification(CompletionCallback* callback);
+ base::TimeTicks verification_start_time() const {
+ return verification_start_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
@@ -110,6 +115,7 @@ class SSLHostInfo {
// These two members are taken from the SSLConfig.
bool rev_checking_enabled_;
bool verify_ev_cert_;
+ base::TimeTicks verification_start_time_;
CertVerifyResult cert_verify_result_;
scoped_ptr<CertVerifier> verifier_;
scoped_refptr<X509Certificate> cert_;