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"
13 template <typename T
> struct DefaultSingletonTraits
;
18 class SignedCertificateTimestampStoreImpl
19 : public SignedCertificateTimestampStore
{
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
;
29 scoped_refptr
<net::ct::SignedCertificateTimestamp
>* sct
) override
;
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_