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.
5 #ifndef NET_CERT_CT_EV_WHITELIST_H_
6 #define NET_CERT_CT_EV_WHITELIST_H_
10 #include "base/memory/ref_counted.h"
11 #include "net/base/net_export.h"
23 class NET_EXPORT EVCertsWhitelist
24 : public base::RefCountedThreadSafe
<EVCertsWhitelist
> {
26 // Returns true if the |certificate_hash| appears in the EV certificate hashes
28 virtual bool ContainsCertificateHash(
29 const std::string
& certificate_hash
) const = 0;
31 // Returns true if the global EV certificate hashes whitelist is non-empty,
33 virtual bool IsValid() const = 0;
35 // Returns the version of the whitelist in use
36 virtual base::Version
Version() const = 0;
39 virtual ~EVCertsWhitelist() {}
42 friend class base::RefCountedThreadSafe
<EVCertsWhitelist
>;
49 #endif // NET_CERT_CT_EV_WHITELIST_H_