| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_IMPL_H_ | |
| 6 #define CONTENT_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_IMPL_H_ | |
| 7 | |
| 8 #include "base/macros.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 base { | |
| 14 template <typename T> struct DefaultSingletonTraits; | |
| 15 } | |
| 16 | |
| 17 namespace content { | |
| 18 | |
| 19 class SignedCertificateTimestampStoreImpl | |
| 20 : public SignedCertificateTimestampStore { | |
| 21 public: | |
| 22 // Returns the singleton instance of the SignedCertificateTimestampStore. | |
| 23 static SignedCertificateTimestampStoreImpl* GetInstance(); | |
| 24 | |
| 25 // SignedCertificateTimestampStore implementation: | |
| 26 int Store(net::ct::SignedCertificateTimestamp* sct, | |
| 27 int render_process_host_id) override; | |
| 28 bool Retrieve( | |
| 29 int sct_id, | |
| 30 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) override; | |
| 31 | |
| 32 private: | |
| 33 friend struct base::DefaultSingletonTraits< | |
| 34 SignedCertificateTimestampStoreImpl>; | |
| 35 | |
| 36 SignedCertificateTimestampStoreImpl(); | |
| 37 ~SignedCertificateTimestampStoreImpl() override; | |
| 38 | |
| 39 RendererDataMemoizingStore<net::ct::SignedCertificateTimestamp> store_; | |
| 40 | |
| 41 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestampStoreImpl); | |
| 42 }; | |
| 43 | |
| 44 } // namespace content | |
| 45 | |
| 46 #endif // CONTENT_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_IMPL_H_ | |
| OLD | NEW |