Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / content / browser / signed_certificate_timestamp_store_impl.h
blob3b669707a2cccbd230bd197cbc83ca23382fb7a0
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.
5 #ifndef CONTENT_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_IMPL_H_
6 #define CONTENT_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_IMPL_H_
8 #include "content/browser/renderer_data_memoizing_store.h"
9 #include "content/public/browser/signed_certificate_timestamp_store.h"
10 #include "net/cert/signed_certificate_timestamp.h"
12 namespace base {
13 template <typename T> struct DefaultSingletonTraits;
16 namespace content {
18 class SignedCertificateTimestampStoreImpl
19 : public SignedCertificateTimestampStore {
20 public:
21 // Returns the singleton instance of the SignedCertificateTimestampStore.
22 static SignedCertificateTimestampStoreImpl* GetInstance();
24 // SignedCertificateTimestampStore implementation:
25 int Store(net::ct::SignedCertificateTimestamp* sct,
26 int render_process_host_id) override;
27 bool Retrieve(
28 int sct_id,
29 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) override;
31 private:
32 friend struct base::DefaultSingletonTraits<
33 SignedCertificateTimestampStoreImpl>;
35 SignedCertificateTimestampStoreImpl();
36 ~SignedCertificateTimestampStoreImpl() override;
38 RendererDataMemoizingStore<net::ct::SignedCertificateTimestamp> store_;
40 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestampStoreImpl);
43 } // namespace content
45 #endif // CONTENT_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_IMPL_H_