Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: content/browser/signed_certificate_timestamp_store_impl.cc

Issue 72333007: Add an SignedCertificateTimetampStore, making SignedCertificateTimestamp be refcounted to aid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@piecewise
Patch Set: Fixes for wtc. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698