[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / content / browser / signed_certificate_timestamp_store_impl.cc
blob14a8cd54dc2dd1b13914bdb4882dd83ff30dcc11
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"
9 namespace content {
11 // static
12 SignedCertificateTimestampStore*
13 SignedCertificateTimestampStore::GetInstance() {
14 return SignedCertificateTimestampStoreImpl::GetInstance();
17 // static
18 SignedCertificateTimestampStoreImpl*
19 SignedCertificateTimestampStoreImpl::GetInstance() {
20 return base::Singleton<SignedCertificateTimestampStoreImpl>::get();
23 SignedCertificateTimestampStoreImpl::SignedCertificateTimestampStoreImpl() {}
25 SignedCertificateTimestampStoreImpl::~SignedCertificateTimestampStoreImpl() {}
27 int SignedCertificateTimestampStoreImpl::Store(
28 net::ct::SignedCertificateTimestamp* sct,
29 int process_id) {
30 return store_.Store(sct, process_id);
33 bool SignedCertificateTimestampStoreImpl::Retrieve(
34 int sct_id,
35 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) {
36 return store_.Retrieve(sct_id, sct);
39 } // namespace content