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

Side by Side Diff: net/cert/cert_verifier.cc

Issue 1991653002: Move caching out of MultiThreadedCertVerifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request_params
Patch Set: CrOS fixes 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 | « net/cert/caching_cert_verifier_unittest.cc ('k') | net/cert/multi_threaded_cert_verifier.h » ('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 #include "net/cert/cert_verifier.h" 5 #include "net/cert/cert_verifier.h"
6 6
7 #include <openssl/sha.h> 7 #include <openssl/sha.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "net/cert/cert_verify_proc.h" 15 #include "net/cert/cert_verify_proc.h"
16 16
17 #if defined(OS_NACL) 17 #if defined(OS_NACL)
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #else 19 #else
20 #include "net/cert/caching_cert_verifier.h"
20 #include "net/cert/multi_threaded_cert_verifier.h" 21 #include "net/cert/multi_threaded_cert_verifier.h"
21 #endif 22 #endif
22 23
23 namespace net { 24 namespace net {
24 25
25 CertVerifier::RequestParams::RequestParams( 26 CertVerifier::RequestParams::RequestParams(
26 scoped_refptr<X509Certificate> certificate, 27 scoped_refptr<X509Certificate> certificate,
27 const std::string& hostname, 28 const std::string& hostname,
28 int flags, 29 int flags,
29 const std::string& ocsp_response, 30 const std::string& ocsp_response,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 70
70 bool CertVerifier::SupportsOCSPStapling() { 71 bool CertVerifier::SupportsOCSPStapling() {
71 return false; 72 return false;
72 } 73 }
73 74
74 std::unique_ptr<CertVerifier> CertVerifier::CreateDefault() { 75 std::unique_ptr<CertVerifier> CertVerifier::CreateDefault() {
75 #if defined(OS_NACL) 76 #if defined(OS_NACL)
76 NOTIMPLEMENTED(); 77 NOTIMPLEMENTED();
77 return std::unique_ptr<CertVerifier>(); 78 return std::unique_ptr<CertVerifier>();
78 #else 79 #else
79 return base::WrapUnique( 80 return base::MakeUnique<CachingCertVerifier>(
80 new MultiThreadedCertVerifier(CertVerifyProc::CreateDefault())); 81 base::MakeUnique<MultiThreadedCertVerifier>(
82 CertVerifyProc::CreateDefault()));
81 #endif 83 #endif
82 } 84 }
83 85
84 } // namespace net 86 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/caching_cert_verifier_unittest.cc ('k') | net/cert/multi_threaded_cert_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698