1 // Copyright 2013 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_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_ 6 #define NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_ 7 8 #include <string_view> 9 10 #include "base/values.h" 11 #include "net/cert/signed_certificate_timestamp_and_status.h" 12 13 namespace net { 14 15 // Creates a dictionary of processed Signed Certificate Timestamps to be 16 // logged in the NetLog. 17 // See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_CHECKED 18 // in net/log/net_log_event_type_list.h 19 base::Value::Dict NetLogSignedCertificateTimestampParams( 20 const SignedCertificateTimestampAndStatusList* scts); 21 22 // Creates a dictionary of raw Signed Certificate Timestamps to be logged 23 // in the NetLog. 24 // See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_RECEIVED 25 // in net/log/net_log_event_type_list.h 26 base::Value::Dict NetLogRawSignedCertificateTimestampParams( 27 std::string_view embedded_scts, 28 std::string_view sct_list_from_ocsp, 29 std::string_view sct_list_from_tls_extension); 30 31 } // namespace net 32 33 #endif // NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_ 34