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

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

Issue 1290243007: Shift URLRequestContextStorage over to taking scoped_ptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Paul_BuilderGrab
Patch Set: Sync'd to revision p349162. Created 5 years, 3 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/cert_verifier.h ('k') | net/cert_net/cert_net_fetcher_impl_unittest.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 #include "net/cert/cert_verifier.h" 5 #include "net/cert/cert_verifier.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "net/cert/cert_verify_proc.h" 8 #include "net/cert/cert_verify_proc.h"
9 9
10 #if defined(OS_NACL) 10 #if defined(OS_NACL)
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #else 12 #else
13 #include "net/cert/multi_threaded_cert_verifier.h" 13 #include "net/cert/multi_threaded_cert_verifier.h"
14 #endif 14 #endif
15 15
16 namespace net { 16 namespace net {
17 17
18 bool CertVerifier::SupportsOCSPStapling() { 18 bool CertVerifier::SupportsOCSPStapling() {
19 return false; 19 return false;
20 } 20 }
21 21
22 CertVerifier* CertVerifier::CreateDefault() { 22 scoped_ptr<CertVerifier> CertVerifier::CreateDefault() {
23 #if defined(OS_NACL) 23 #if defined(OS_NACL)
24 NOTIMPLEMENTED(); 24 NOTIMPLEMENTED();
25 return nullptr; 25 return scoped_ptr<CertVerifier>();
26 #else 26 #else
27 return new MultiThreadedCertVerifier(CertVerifyProc::CreateDefault()); 27 return make_scoped_ptr(
28 new MultiThreadedCertVerifier(CertVerifyProc::CreateDefault()))
29 .Pass();
28 #endif 30 #endif
29 } 31 }
30 32
31 } // namespace net 33 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/cert_verifier.h ('k') | net/cert_net/cert_net_fetcher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698