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

Side by Side Diff: net/cert/multi_threaded_cert_verifier.h

Issue 225583009: Add Net.CertVerifier_First_Job_Latency metric. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sleevi comments. Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/cert/multi_threaded_cert_verifier.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ 5 #ifndef NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_
6 #define NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ 6 #define NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 uint64 requests() const { return requests_; } 146 uint64 requests() const { return requests_; }
147 uint64 inflight_joins() const { return inflight_joins_; } 147 uint64 inflight_joins() const { return inflight_joins_; }
148 148
149 // cache_ maps from a request to a cached result. 149 // cache_ maps from a request to a cached result.
150 CertVerifierCache cache_; 150 CertVerifierCache cache_;
151 151
152 // inflight_ maps from a request to an active verification which is taking 152 // inflight_ maps from a request to an active verification which is taking
153 // place. 153 // place.
154 std::map<RequestParams, CertVerifierJob*> inflight_; 154 std::map<RequestParams, CertVerifierJob*> inflight_;
155 155
156 // A non-owning pointer to the first job for histogramming.
157 CertVerifierJob* first_job_;
158
156 uint64 requests_; 159 uint64 requests_;
157 uint64 cache_hits_; 160 uint64 cache_hits_;
158 uint64 inflight_joins_; 161 uint64 inflight_joins_;
159 162
160 scoped_refptr<CertVerifyProc> verify_proc_; 163 scoped_refptr<CertVerifyProc> verify_proc_;
161 164
162 CertTrustAnchorProvider* trust_anchor_provider_; 165 CertTrustAnchorProvider* trust_anchor_provider_;
163 166
164 DISALLOW_COPY_AND_ASSIGN(MultiThreadedCertVerifier); 167 DISALLOW_COPY_AND_ASSIGN(MultiThreadedCertVerifier);
165 }; 168 };
166 169
167 } // namespace net 170 } // namespace net
168 171
169 #endif // NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ 172 #endif // NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_
OLDNEW
« no previous file with comments | « no previous file | net/cert/multi_threaded_cert_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698