Chromium Code Reviews| 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_STORE_IMPL_H_ | |
| 6 #define CONTENT_BROWSER_SIGNED_CERTIFICATE_STORE_IMPL_H_ | |
| 7 | |
| 8 #include "base/memory/singleton.h" | |
|
wtc
2013/11/19 21:41:44
Nit: based on the comments in "base/memory/singlet
alcutter
2013/11/21 10:48:19
Done.
| |
| 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_ | |
| OLD | NEW |