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