Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: net/cert/ct_signed_certificate_timestamp_log_param.h

Issue 2604513002: Optimize CT & OCSP handling code (Closed)
Patch Set: Actually optimize for OCSP Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
10 9
10 #include "base/strings/string_piece.h"
11 #include "net/cert/signed_certificate_timestamp_and_status.h" 11 #include "net/cert/signed_certificate_timestamp_and_status.h"
12 12
13 namespace base { 13 namespace base {
14 class Value; 14 class Value;
15 } 15 }
16 16
17 namespace net { 17 namespace net {
18 18
19 class NetLogCaptureMode; 19 class NetLogCaptureMode;
20 20
21 // Creates a dictionary of processed Signed Certificate Timestamps to be 21 // Creates a dictionary of processed Signed Certificate Timestamps to be
22 // logged in the NetLog. 22 // logged in the NetLog.
23 // See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_CHECKED 23 // See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_CHECKED
24 // in net/log/net_log_event_type_list.h 24 // in net/log/net_log_event_type_list.h
25 std::unique_ptr<base::Value> NetLogSignedCertificateTimestampCallback( 25 std::unique_ptr<base::Value> NetLogSignedCertificateTimestampCallback(
26 const SignedCertificateTimestampAndStatusList* scts, 26 const SignedCertificateTimestampAndStatusList* scts,
27 NetLogCaptureMode capture_mode); 27 NetLogCaptureMode capture_mode);
28 28
29 // Creates a dictionary of raw Signed Certificate Timestamps to be logged 29 // Creates a dictionary of raw Signed Certificate Timestamps to be logged
30 // in the NetLog. 30 // in the NetLog.
31 // See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_RECEIVED 31 // See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_RECEIVED
32 // in net/log/net_log_event_type_list.h 32 // in net/log/net_log_event_type_list.h
33 std::unique_ptr<base::Value> NetLogRawSignedCertificateTimestampCallback( 33 std::unique_ptr<base::Value> NetLogRawSignedCertificateTimestampCallback(
34 const std::string* embedded_scts, 34 base::StringPiece embedded_scts,
35 const std::string* sct_list_from_ocsp, 35 base::StringPiece sct_list_from_ocsp,
36 const std::string* sct_list_from_tls_extension, 36 base::StringPiece sct_list_from_tls_extension,
37 NetLogCaptureMode capture_mode); 37 NetLogCaptureMode capture_mode);
38 38
39 } // namespace net 39 } // namespace net
40 40
41 #endif // NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_ 41 #endif // NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698