sct_auditing_delegate.h 892 B

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