OLD | NEW |
| (Empty) |
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* | |
13 SignedCertificateTimestampStore::GetInstance() { | |
14 return SignedCertificateTimestampStoreImpl::GetInstance(); | |
15 } | |
16 | |
17 // static | |
18 SignedCertificateTimestampStoreImpl* | |
19 SignedCertificateTimestampStoreImpl::GetInstance() { | |
20 return base::Singleton<SignedCertificateTimestampStoreImpl>::get(); | |
21 } | |
22 | |
23 SignedCertificateTimestampStoreImpl::SignedCertificateTimestampStoreImpl() {} | |
24 | |
25 SignedCertificateTimestampStoreImpl::~SignedCertificateTimestampStoreImpl() {} | |
26 | |
27 int SignedCertificateTimestampStoreImpl::Store( | |
28 net::ct::SignedCertificateTimestamp* sct, | |
29 int process_id) { | |
30 return store_.Store(sct, process_id); | |
31 } | |
32 | |
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 | |
OLD | NEW |