Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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/sct_store_impl.h" | |
| 6 | |
| 7 namespace content { | |
| 8 | |
| 9 // static | |
| 10 SignedCertificateTimestampStore* | |
| 11 SignedCertificateTimestampStore::GetInstance() { | |
| 12 return SignedCertificateTimestampStoreImpl::GetInstance(); | |
| 13 } | |
| 14 | |
| 15 // static | |
| 16 SignedCertificateTimestampStoreImpl* | |
| 17 SignedCertificateTimestampStoreImpl::GetInstance() { | |
| 18 return Singleton<SignedCertificateTimestampStoreImpl>::get(); | |
| 19 } | |
| 20 | |
| 21 SignedCertificateTimestampStoreImpl::SignedCertificateTimestampStoreImpl() | |
| 22 : store_() {} | |
|
wtc
2013/11/19 01:57:40
It is not necessary to initialize the store_ membe
alcutter
2013/11/19 15:51:34
Good call, done.
| |
| 23 | |
| 24 SignedCertificateTimestampStoreImpl::~SignedCertificateTimestampStoreImpl() {} | |
| 25 | |
| 26 int SignedCertificateTimestampStoreImpl::StoreSignedCertificateTimestamp( | |
| 27 net::ct::SignedCertificateTimestamp* sct, | |
| 28 int process_id) { | |
| 29 return store_.Store(sct, process_id); | |
| 30 } | |
| 31 | |
| 32 bool SignedCertificateTimestampStoreImpl::RetrieveSignedCertificateTimestamp( | |
| 33 int sct_id, | |
| 34 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) { | |
| 35 return store_.Retrieve(sct_id, sct); | |
| 36 } | |
| 37 | |
| 38 } // namespace content | |
| OLD | NEW |