QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / ios / web / net / cert_store_impl.cc
blob9cccbab7c9db101188a7c8b02e862563e1239a32
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"
7 namespace web {
9 // static
10 CertStore* CertStore::GetInstance() {
11 return CertStoreImpl::GetInstance();
14 // static
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);
38 } // namespace web