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

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 (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/signed_certificate_timestamp_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
23 SignedCertificateTimestampStoreImpl::~SignedCertificateTimestampStoreImpl() {}
24
25 int SignedCertificateTimestampStoreImpl::Store(
26 net::ct::SignedCertificateTimestamp* sct,
27 int process_id) {
28 return store_.Store(sct, process_id);
29 }
30
31 bool SignedCertificateTimestampStoreImpl::Retrieve(
32 int sct_id,
33 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) {
34 return store_.Retrieve(sct_id, sct);
35 }
36
37 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698