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

Side by Side Diff: net/quic/crypto/proof_verifier_chromium.cc

Issue 2095823002: Make DCHECKs into CHECKs for CT policy code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/socket/ssl_client_socket_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "net/quic/crypto/proof_verifier_chromium.h" 5 #include "net/quic/crypto/proof_verifier_chromium.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const BoundNetLog& net_log) 144 const BoundNetLog& net_log)
145 : proof_verifier_(proof_verifier), 145 : proof_verifier_(proof_verifier),
146 verifier_(cert_verifier), 146 verifier_(cert_verifier),
147 policy_enforcer_(ct_policy_enforcer), 147 policy_enforcer_(ct_policy_enforcer),
148 transport_security_state_(transport_security_state), 148 transport_security_state_(transport_security_state),
149 cert_transparency_verifier_(cert_transparency_verifier), 149 cert_transparency_verifier_(cert_transparency_verifier),
150 cert_verify_flags_(cert_verify_flags), 150 cert_verify_flags_(cert_verify_flags),
151 next_state_(STATE_NONE), 151 next_state_(STATE_NONE),
152 start_time_(base::TimeTicks::Now()), 152 start_time_(base::TimeTicks::Now()),
153 net_log_(net_log) { 153 net_log_(net_log) {
154 DCHECK(proof_verifier_); 154 CHECK(proof_verifier_);
155 DCHECK(verifier_); 155 CHECK(verifier_);
156 DCHECK(policy_enforcer_); 156 CHECK(policy_enforcer_);
157 DCHECK(transport_security_state_); 157 CHECK(transport_security_state_);
158 DCHECK(cert_transparency_verifier_); 158 CHECK(cert_transparency_verifier_);
159 } 159 }
160 160
161 ProofVerifierChromium::Job::~Job() { 161 ProofVerifierChromium::Job::~Job() {
162 base::TimeTicks end_time = base::TimeTicks::Now(); 162 base::TimeTicks end_time = base::TimeTicks::Now();
163 UMA_HISTOGRAM_TIMES("Net.QuicSession.VerifyProofTime", 163 UMA_HISTOGRAM_TIMES("Net.QuicSession.VerifyProofTime",
164 end_time - start_time_); 164 end_time - start_time_);
165 // |hostname_| will always be canonicalized to lowercase. 165 // |hostname_| will always be canonicalized to lowercase.
166 if (hostname_.compare("www.google.com") == 0) { 166 if (hostname_.compare("www.google.com") == 0) {
167 UMA_HISTOGRAM_TIMES("Net.QuicSession.VerifyProofTime.google", 167 UMA_HISTOGRAM_TIMES("Net.QuicSession.VerifyProofTime.google",
168 end_time - start_time_); 168 end_time - start_time_);
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 } 497 }
498 return status; 498 return status;
499 } 499 }
500 500
501 void ProofVerifierChromium::OnJobComplete(Job* job) { 501 void ProofVerifierChromium::OnJobComplete(Job* job) {
502 active_jobs_.erase(job); 502 active_jobs_.erase(job);
503 delete job; 503 delete job;
504 } 504 }
505 505
506 } // namespace net 506 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/socket/ssl_client_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698