• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #include "content/browser/signed_certificate_timestamp_store_impl.h"
6 
7 #include "base/memory/singleton.h"
8 
9 namespace content {
10 
11 // static
12 SignedCertificateTimestampStore*
GetInstance()13 SignedCertificateTimestampStore::GetInstance() {
14   return SignedCertificateTimestampStoreImpl::GetInstance();
15 }
16 
17 // static
18 SignedCertificateTimestampStoreImpl*
GetInstance()19 SignedCertificateTimestampStoreImpl::GetInstance() {
20   return Singleton<SignedCertificateTimestampStoreImpl>::get();
21 }
22 
SignedCertificateTimestampStoreImpl()23 SignedCertificateTimestampStoreImpl::SignedCertificateTimestampStoreImpl() {}
24 
~SignedCertificateTimestampStoreImpl()25 SignedCertificateTimestampStoreImpl::~SignedCertificateTimestampStoreImpl() {}
26 
Store(net::ct::SignedCertificateTimestamp * sct,int process_id)27 int SignedCertificateTimestampStoreImpl::Store(
28     net::ct::SignedCertificateTimestamp* sct,
29     int process_id) {
30   return store_.Store(sct, process_id);
31 }
32 
Retrieve(int sct_id,scoped_refptr<net::ct::SignedCertificateTimestamp> * sct)33 bool SignedCertificateTimestampStoreImpl::Retrieve(
34     int sct_id,
35     scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) {
36   return store_.Retrieve(sct_id, sct);
37 }
38 
39 }  // namespace content
40