1 // Copyright 2015 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 "ios/web/net/cert_store_impl.h"
10 CertStore
* CertStore::GetInstance() {
11 return CertStoreImpl::GetInstance();
15 CertStoreImpl
* CertStoreImpl::GetInstance() {
16 return Singleton
<CertStoreImpl
>::get();
19 CertStoreImpl::CertStoreImpl() {
22 CertStoreImpl::~CertStoreImpl() {
25 int CertStoreImpl::StoreCert(net::X509Certificate
* cert
, int group_id
) {
26 return store_
.Store(cert
, group_id
);
29 bool CertStoreImpl::RetrieveCert(int cert_id
,
30 scoped_refptr
<net::X509Certificate
>* cert
) {
31 return store_
.Retrieve(cert_id
, cert
);
34 void CertStoreImpl::RemoveCertsForGroup(int group_id
) {
35 store_
.RemoveForRequestTracker(group_id
);