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
3 // found in the LICENSE file.
5 #include "content/browser/renderer_host/pepper/ssl_context_helper.h"
7 #include "net/cert/cert_verifier.h"
8 #include "net/http/transport_security_state.h"
12 SSLContextHelper::SSLContextHelper() {}
14 SSLContextHelper::~SSLContextHelper() {}
16 net::CertVerifier
* SSLContextHelper::GetCertVerifier() {
18 cert_verifier_
.reset(net::CertVerifier::CreateDefault());
19 return cert_verifier_
.get();
22 net::TransportSecurityState
* SSLContextHelper::GetTransportSecurityState() {
23 if (!transport_security_state_
)
24 transport_security_state_
.reset(new net::TransportSecurityState());
25 return transport_security_state_
.get();
28 } // namespace content