OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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 NET_CERT_CT_EV_WHITELIST_H_ | |
6 #define NET_CERT_CT_EV_WHITELIST_H_ | |
7 | |
8 #include <stdint.h> | |
Ryan Sleevi
2014/10/20 19:18:25
Unused?
Eran Messeri
2014/10/21 14:59:59
Done.
| |
9 | |
10 #include <string> | |
11 | |
12 #include "base/memory/ref_counted.h" | |
13 #include "net/base/net_export.h" | |
14 | |
15 namespace net { | |
16 | |
17 namespace ct { | |
18 | |
19 class NET_EXPORT EVCertsWhitelist | |
20 : public base::RefCountedThreadSafe<EVCertsWhitelist> { | |
21 public: | |
22 // Returns true if the |certificate_hash| appears in the EV certificate hashes | |
23 // whitelist. | |
24 virtual bool ContainsCertificateHash( | |
25 const std::string& certificate_hash) const = 0; | |
26 | |
27 // Returns true if the global EV certificate hashes whitelist is non-empty, | |
28 // false otherwise. | |
29 virtual bool IsValid() const = 0; | |
30 | |
31 protected: | |
32 virtual ~EVCertsWhitelist() {} | |
33 | |
34 private: | |
35 friend class base::RefCountedThreadSafe<EVCertsWhitelist>; | |
36 }; | |
37 | |
38 // Default implementation for Chromium embedders. | |
39 NET_EXPORT EVCertsWhitelist* GetDefaultEVCertsWhitelist(); | |
Ryan Sleevi
2014/10/20 19:18:25
I'd rather nuke this and let NULL be valid, if at
Eran Messeri
2014/10/21 14:59:59
Done.
| |
40 | |
41 } // namespace ct | |
42 | |
43 } // namespace net | |
44 | |
45 #endif // NET_CERT_CT_EV_WHITELIST_H_ | |
OLD | NEW |