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_SSL_SIGNED_CERTIFICATE_TIMESTAMP_AND_STATUS_H_ | 5 #ifndef NET_SSL_SIGNED_CERTIFICATE_TIMESTAMP_AND_STATUS_H_ |
6 #define NET_SSL_SIGNED_CERTIFICATE_TIMESTAMP_AND_STATUS_H_ | 6 #define NET_SSL_SIGNED_CERTIFICATE_TIMESTAMP_AND_STATUS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "net/cert/sct_status_flags.h" | 11 #include "net/cert/sct_status_flags.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 namespace ct { | 15 namespace ct { |
16 struct SignedCertificateTimestamp; | 16 struct SignedCertificateTimestamp; |
17 } | 17 } |
18 | 18 |
19 struct SignedCertificateTimestampAndStatus { | 19 struct SignedCertificateTimestampAndStatus { |
20 SignedCertificateTimestampAndStatus( | 20 SignedCertificateTimestampAndStatus( |
21 const scoped_refptr<ct::SignedCertificateTimestamp>& sct, | 21 const scoped_refptr<ct::SignedCertificateTimestamp>& sct, |
22 ct::SCTVerifyStatus status); | 22 ct::SCTVerifyStatus status); |
23 | 23 |
24 ~SignedCertificateTimestampAndStatus(); | 24 ~SignedCertificateTimestampAndStatus(); |
25 | 25 |
26 scoped_refptr<ct::SignedCertificateTimestamp> sct_; | 26 scoped_refptr<ct::SignedCertificateTimestamp> sct; |
27 ct::SCTVerifyStatus status_; | 27 ct::SCTVerifyStatus status; |
28 }; | 28 }; |
29 | 29 |
30 typedef std::vector<SignedCertificateTimestampAndStatus> | 30 typedef std::vector<SignedCertificateTimestampAndStatus> |
31 SignedCertificateTimestampAndStatusList; | 31 SignedCertificateTimestampAndStatusList; |
32 | 32 |
33 } // namespace net | 33 } // namespace net |
34 | 34 |
35 #endif // NET_SSL_SIGNED_CERTIFICATE_TIMESTAMP_AND_STATUS_H_ | 35 #endif // NET_SSL_SIGNED_CERTIFICATE_TIMESTAMP_AND_STATUS_H_ |
OLD | NEW |