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

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

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 #ifndef CONTENT_BROWSER_SIGNED_CERTIFICATE_STORE_IMPL_H_
6 #define CONTENT_BROWSER_SIGNED_CERTIFICATE_STORE_IMPL_H_
7
8 #include "base/memory/singleton.h"
9 #include "content/browser/renderer_data_memoizing_store.h"
10 #include "content/public/browser/signed_certificate_timestamp_store.h"
11 #include "net/cert/signed_certificate_timestamp.h"
12
13 namespace content {
14
15 class SignedCertificateTimestampStoreImpl
16 : public SignedCertificateTimestampStore {
17 public:
18 // Returns the singleton instance of the SignedCertificateTimestampStore.
19 static SignedCertificateTimestampStoreImpl* GetInstance();
20
21 // SignedCertificateTimestampStore implementation:
22 virtual int Store(
23 net::ct::SignedCertificateTimestamp* sct,
24 int render_process_host_id) OVERRIDE;
25 virtual bool Retrieve(
26 int sct_id,
27 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) OVERRIDE;
28
29 private:
30 friend struct DefaultSingletonTraits<SignedCertificateTimestampStoreImpl>;
31
32 SignedCertificateTimestampStoreImpl();
33 virtual ~SignedCertificateTimestampStoreImpl();
34
35 RendererDataMemoizingStore<net::ct::SignedCertificateTimestamp> store_;
36
37 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestampStoreImpl);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_BROWSER_SIGNED_CERTIFICATE_STORE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/signed_certificate_timestamp_store_impl.cc » ('j') | net/test/ct_test_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698