Compute if a layer is clipped outside CalcDrawProps
[chromium-blink-merge.git] / net / cert / cert_policy_enforcer.h
blob8889b11fc17b8bb06fcf19c7408379efa53a1ad0
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 #ifndef NET_CERT_CERT_POLICY_ENFORCER_H
5 #define NET_CERT_CERT_POLICY_ENFORCER_H
7 #include <stddef.h>
9 #include "net/base/net_export.h"
10 #include "net/log/net_log.h"
12 namespace net {
14 namespace ct {
16 struct CTVerifyResult;
17 class EVCertsWhitelist;
19 } // namespace ct
21 class X509Certificate;
23 // Class for checking that a given certificate conforms to security-related
24 // policies.
25 class NET_EXPORT CertPolicyEnforcer {
26 public:
27 // Returns true if the collection of SCTs for the given certificate
28 // conforms with the CT/EV policy. Conformance details are logged to
29 // |net_log|.
30 // |cert| is the certificate for which the SCTs apply.
31 // |ct_result| must contain the result of verifying any SCTs associated with
32 // |cert| prior to invoking this method.
33 bool DoesConformToCTEVPolicy(X509Certificate* cert,
34 const ct::EVCertsWhitelist* ev_whitelist,
35 const ct::CTVerifyResult& ct_result,
36 const BoundNetLog& net_log);
39 } // namespace net
41 #endif // NET_CERT_CERT_POLICY_ENFORCER_H