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

Side by Side Diff: content/browser/sct_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: 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/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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698