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_SIGNED_CERTIFICATE_TIMESTAMP_AND_STATUS_H_ 6 #define NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_AND_STATUS_H_ 7 8 #include <vector> 9 10 #include "base/memory/scoped_refptr.h" 11 #include "net/base/net_export.h" 12 #include "net/cert/sct_status_flags.h" 13 #include "net/cert/signed_certificate_timestamp.h" 14 15 namespace net { 16 17 struct NET_EXPORT SignedCertificateTimestampAndStatus { 18 SignedCertificateTimestampAndStatus(); 19 20 SignedCertificateTimestampAndStatus( 21 const scoped_refptr<ct::SignedCertificateTimestamp>& sct, 22 ct::SCTVerifyStatus status); 23 24 SignedCertificateTimestampAndStatus( 25 const SignedCertificateTimestampAndStatus& other); 26 27 ~SignedCertificateTimestampAndStatus(); 28 29 scoped_refptr<ct::SignedCertificateTimestamp> sct; 30 ct::SCTVerifyStatus status; 31 }; 32 33 typedef std::vector<SignedCertificateTimestampAndStatus> 34 SignedCertificateTimestampAndStatusList; 35 36 } // namespace net 37 38 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_AND_STATUS_H_ 39