| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_ | 5 #ifndef NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_ |
| 6 #define NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_ | 6 #define NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> |
| 9 | 10 |
| 10 #include "net/log/net_log.h" | 11 namespace base { |
| 12 class Value; |
| 13 } |
| 11 | 14 |
| 12 namespace net { | 15 namespace net { |
| 13 | 16 |
| 17 class NetLogCaptureMode; |
| 18 |
| 14 namespace ct { | 19 namespace ct { |
| 15 struct CTVerifyResult; | 20 struct CTVerifyResult; |
| 16 } | 21 } |
| 17 | 22 |
| 18 // Creates a dictionary of processed Signed Certificate Timestamps to be | 23 // Creates a dictionary of processed Signed Certificate Timestamps to be |
| 19 // logged in the NetLog. | 24 // logged in the NetLog. |
| 20 // See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_CHECKED | 25 // See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_CHECKED |
| 21 // in net/log/net_log_event_type_list.h | 26 // in net/log/net_log_event_type_list.h |
| 22 std::unique_ptr<base::Value> NetLogSignedCertificateTimestampCallback( | 27 std::unique_ptr<base::Value> NetLogSignedCertificateTimestampCallback( |
| 23 const ct::CTVerifyResult* ct_result, | 28 const ct::CTVerifyResult* ct_result, |
| 24 NetLogCaptureMode capture_mode); | 29 NetLogCaptureMode capture_mode); |
| 25 | 30 |
| 26 // Creates a dictionary of raw Signed Certificate Timestamps to be logged | 31 // Creates a dictionary of raw Signed Certificate Timestamps to be logged |
| 27 // in the NetLog. | 32 // in the NetLog. |
| 28 // See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_RECEIVED | 33 // See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_RECEIVED |
| 29 // in net/log/net_log_event_type_list.h | 34 // in net/log/net_log_event_type_list.h |
| 30 std::unique_ptr<base::Value> NetLogRawSignedCertificateTimestampCallback( | 35 std::unique_ptr<base::Value> NetLogRawSignedCertificateTimestampCallback( |
| 31 const std::string* embedded_scts, | 36 const std::string* embedded_scts, |
| 32 const std::string* sct_list_from_ocsp, | 37 const std::string* sct_list_from_ocsp, |
| 33 const std::string* sct_list_from_tls_extension, | 38 const std::string* sct_list_from_tls_extension, |
| 34 NetLogCaptureMode capture_mode); | 39 NetLogCaptureMode capture_mode); |
| 35 | 40 |
| 36 } // namespace net | 41 } // namespace net |
| 37 | 42 |
| 38 #endif // NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_ | 43 #endif // NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_ |
| OLD | NEW |