OLD | NEW |
---|---|
(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_SCT_STORE_IMPL_H_ | |
6 #define CONTENT_BROWSER_SCT_STORE_IMPL_H_ | |
7 | |
8 #include "base/memory/singleton.h" | |
9 #include "content/browser/renderer_data_memoizing_store.h" | |
10 #include "content/public/browser/sct_store.h" | |
11 #include "net/cert/signed_certificate_timestamp.h" | |
12 | |
13 namespace content { | |
14 | |
15 class SignedCertificateTimestampStoreImpl | |
wtc
2013/11/19 01:57:40
The Style Guide recommends that these two files be
alcutter
2013/11/19 15:51:34
Done.
| |
16 : public SignedCertificateTimestampStore { | |
17 public: | |
18 // Returns the singleton instance of the SignedCertificateTimestampStore. | |
19 static SignedCertificateTimestampStoreImpl* GetInstance(); | |
wtc
2013/11/19 01:57:40
It seems that we don't need a GetInstance() method
alcutter
2013/11/19 15:51:34
Looks to be a requirement of the singleton templat
| |
20 | |
21 // SignedCertificateTimestampStore implementation: | |
22 virtual int StoreSignedCertificateTimestamp( | |
23 net::ct::SignedCertificateTimestamp* sct, | |
24 int render_process_host_id) OVERRIDE; | |
25 virtual bool RetrieveSignedCertificateTimestamp( | |
26 int sct_id, | |
27 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) OVERRIDE; | |
28 | |
29 protected: | |
30 SignedCertificateTimestampStoreImpl(); | |
31 virtual ~SignedCertificateTimestampStoreImpl(); | |
wtc
2013/11/19 01:57:40
Both of these can probably be private because I do
alcutter
2013/11/20 12:53:29
(did this in a previous patch)
| |
32 | |
33 private: | |
34 friend struct DefaultSingletonTraits<SignedCertificateTimestampStoreImpl>; | |
35 | |
36 RendererDataMemoizingStore<net::ct::SignedCertificateTimestamp> store_; | |
37 | |
38 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestampStoreImpl); | |
39 }; | |
40 | |
41 } // namespace content | |
42 | |
43 #endif // CONTENT_BROWSER_SCT_STORE_IMPL_H_ | |
OLD | NEW |