| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/signed_certificate_timestamp_store_impl.h" | 5 #include "content/browser/signed_certificate_timestamp_store_impl.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 // static | 11 // static |
| 12 SignedCertificateTimestampStore* | 12 SignedCertificateTimestampStore* |
| 13 SignedCertificateTimestampStore::GetInstance() { | 13 SignedCertificateTimestampStore::GetInstance() { |
| 14 return SignedCertificateTimestampStoreImpl::GetInstance(); | 14 return SignedCertificateTimestampStoreImpl::GetInstance(); |
| 15 } | 15 } |
| 16 | 16 |
| 17 // static | 17 // static |
| 18 SignedCertificateTimestampStoreImpl* | 18 SignedCertificateTimestampStoreImpl* |
| 19 SignedCertificateTimestampStoreImpl::GetInstance() { | 19 SignedCertificateTimestampStoreImpl::GetInstance() { |
| 20 return Singleton<SignedCertificateTimestampStoreImpl>::get(); | 20 return base::Singleton<SignedCertificateTimestampStoreImpl>::get(); |
| 21 } | 21 } |
| 22 | 22 |
| 23 SignedCertificateTimestampStoreImpl::SignedCertificateTimestampStoreImpl() {} | 23 SignedCertificateTimestampStoreImpl::SignedCertificateTimestampStoreImpl() {} |
| 24 | 24 |
| 25 SignedCertificateTimestampStoreImpl::~SignedCertificateTimestampStoreImpl() {} | 25 SignedCertificateTimestampStoreImpl::~SignedCertificateTimestampStoreImpl() {} |
| 26 | 26 |
| 27 int SignedCertificateTimestampStoreImpl::Store( | 27 int SignedCertificateTimestampStoreImpl::Store( |
| 28 net::ct::SignedCertificateTimestamp* sct, | 28 net::ct::SignedCertificateTimestamp* sct, |
| 29 int process_id) { | 29 int process_id) { |
| 30 return store_.Store(sct, process_id); | 30 return store_.Store(sct, process_id); |
| 31 } | 31 } |
| 32 | 32 |
| 33 bool SignedCertificateTimestampStoreImpl::Retrieve( | 33 bool SignedCertificateTimestampStoreImpl::Retrieve( |
| 34 int sct_id, | 34 int sct_id, |
| 35 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) { | 35 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) { |
| 36 return store_.Retrieve(sct_id, sct); | 36 return store_.Retrieve(sct_id, sct); |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace content | 39 } // namespace content |
| OLD | NEW |