Home | History | Annotate | Download | only in browser
      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
      3 // found in the LICENSE file.
      4 
      5 #include "content/browser/cert_store_impl.h"
      6 
      7 namespace content {
      8 
      9 // static
     10 CertStore* CertStore::GetInstance() {
     11   return CertStoreImpl::GetInstance();
     12 }
     13 
     14 //  static
     15 CertStoreImpl* CertStoreImpl::GetInstance() {
     16   return Singleton<CertStoreImpl>::get();
     17 }
     18 
     19 CertStoreImpl::CertStoreImpl() {}
     20 
     21 CertStoreImpl::~CertStoreImpl() {}
     22 
     23 int CertStoreImpl::StoreCert(net::X509Certificate* cert, int process_id) {
     24   return store_.Store(cert, process_id);
     25 }
     26 
     27 bool CertStoreImpl::RetrieveCert(int cert_id,
     28                                  scoped_refptr<net::X509Certificate>* cert) {
     29   return store_.Retrieve(cert_id, cert);
     30 }
     31 
     32 }  // namespace content
     33