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

Side by Side Diff: content/browser/renderer_host/pepper/ssl_context_helper.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
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 "content/browser/renderer_host/pepper/ssl_context_helper.h" 5 #include "content/browser/renderer_host/pepper/ssl_context_helper.h"
6 6
7 #include "net/cert/cert_verifier.h" 7 #include "net/cert/cert_verifier.h"
8 #include "net/http/transport_security_state.h" 8 #include "net/http/transport_security_state.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 SSLContextHelper::SSLContextHelper() {} 12 SSLContextHelper::SSLContextHelper() {}
13 13
14 SSLContextHelper::~SSLContextHelper() {} 14 SSLContextHelper::~SSLContextHelper() {}
15 15
16 net::CertVerifier* SSLContextHelper::GetCertVerifier() { 16 net::CertVerifier* SSLContextHelper::GetCertVerifier() {
17 if (!cert_verifier_) 17 if (!cert_verifier_)
18 cert_verifier_.reset(net::CertVerifier::CreateDefault()); 18 cert_verifier_ = net::CertVerifier::CreateDefault();
19 return cert_verifier_.get(); 19 return cert_verifier_.get();
20 } 20 }
21 21
22 net::TransportSecurityState* SSLContextHelper::GetTransportSecurityState() { 22 net::TransportSecurityState* SSLContextHelper::GetTransportSecurityState() {
23 if (!transport_security_state_) 23 if (!transport_security_state_)
24 transport_security_state_.reset(new net::TransportSecurityState()); 24 transport_security_state_.reset(new net::TransportSecurityState());
25 return transport_security_state_.get(); 25 return transport_security_state_.get();
26 } 26 }
27 27
28 } // namespace content 28 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698