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/signed_certificate_timestamp_store_impl.h"
7 #include "base/memory/singleton.h"
12 SignedCertificateTimestampStore
*
13 SignedCertificateTimestampStore::GetInstance() {
14 return SignedCertificateTimestampStoreImpl::GetInstance();
18 SignedCertificateTimestampStoreImpl
*
19 SignedCertificateTimestampStoreImpl::GetInstance() {
20 return Singleton
<SignedCertificateTimestampStoreImpl
>::get();
23 SignedCertificateTimestampStoreImpl::SignedCertificateTimestampStoreImpl() {}
25 SignedCertificateTimestampStoreImpl::~SignedCertificateTimestampStoreImpl() {}
27 int SignedCertificateTimestampStoreImpl::Store(
28 net::ct::SignedCertificateTimestamp
* sct
,
30 return store_
.Store(sct
, process_id
);
33 bool SignedCertificateTimestampStoreImpl::Retrieve(
35 scoped_refptr
<net::ct::SignedCertificateTimestamp
>* sct
) {
36 return store_
.Retrieve(sct_id
, sct
);
39 } // namespace content