Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Unified Diff: net/socket/ssl_host_info.h

Issue 4408001: net: Make Snap Start check cert verification and add metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/socket/ssl_host_info.h
diff --git a/net/socket/ssl_host_info.h b/net/socket/ssl_host_info.h
index f919281f4b0150a9fff4fab7f494353fd1fea1b1..5f515fbeba74ece3b3ad33917fb1f486b691720c 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_;

Powered by Google App Engine
This is Rietveld 408576698