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"
17 class NET_EXPORT EVCertsWhitelist
18 : public base::RefCountedThreadSafe
<EVCertsWhitelist
> {
20 // Returns true if the |certificate_hash| appears in the EV certificate hashes
22 virtual bool ContainsCertificateHash(
23 const std::string
& certificate_hash
) const = 0;
25 // Returns true if the global EV certificate hashes whitelist is non-empty,
27 virtual bool IsValid() const = 0;
30 virtual ~EVCertsWhitelist() {}
33 friend class base::RefCountedThreadSafe
<EVCertsWhitelist
>;
40 #endif // NET_CERT_CT_EV_WHITELIST_H_