1 // Copyright 2020 The Chromium Authors 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_SCT_AUDITING_DELEGATE_H_ 6 #define NET_CERT_SCT_AUDITING_DELEGATE_H_ 7 8 #include "net/base/host_port_pair.h" 9 #include "net/base/net_export.h" 10 #include "net/cert/signed_certificate_timestamp_and_status.h" 11 12 namespace net { 13 14 class X509Certificate; 15 16 // An interface for controlling SCT auditing behavior. 17 class NET_EXPORT SCTAuditingDelegate { 18 public: 19 virtual ~SCTAuditingDelegate() = default; 20 21 virtual void MaybeEnqueueReport( 22 const net::HostPortPair& host_port_pair, 23 const net::X509Certificate* validated_certificate_chain, 24 const net::SignedCertificateTimestampAndStatusList& 25 signed_certificate_timestamps) = 0; 26 }; 27 28 } // namespace net 29 30 #endif // NET_CERT_SCT_AUDITING_DELEGATE_H_ 31