| 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_SIGNED_CERTIFICATE_TIMESTAMP_H_ | 5 #ifndef NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ |
| 6 #define NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ | 6 #define NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 : public base::RefCountedThreadSafe<SignedCertificateTimestamp> { | 86 : public base::RefCountedThreadSafe<SignedCertificateTimestamp> { |
| 87 // Predicate functor used in maps when SignedCertificateTimestamp is used as | 87 // Predicate functor used in maps when SignedCertificateTimestamp is used as |
| 88 // the key. | 88 // the key. |
| 89 struct NET_EXPORT LessThan { | 89 struct NET_EXPORT LessThan { |
| 90 bool operator()(const scoped_refptr<SignedCertificateTimestamp>& lhs, | 90 bool operator()(const scoped_refptr<SignedCertificateTimestamp>& lhs, |
| 91 const scoped_refptr<SignedCertificateTimestamp>& rhs) const; | 91 const scoped_refptr<SignedCertificateTimestamp>& rhs) const; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 // Version enum in RFC 6962, Section 3.2. | 94 // Version enum in RFC 6962, Section 3.2. |
| 95 enum Version { | 95 enum Version { |
| 96 SCT_VERSION_1 = 0, | 96 V1 = 0, |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 // Source of the SCT - supplementary, not defined in CT RFC. | 99 // Source of the SCT - supplementary, not defined in CT RFC. |
| 100 // Note: The numeric values are used within histograms and should not change | 100 // Note: The numeric values are used within histograms and should not change |
| 101 // or be re-assigned. | 101 // or be re-assigned. |
| 102 enum Origin { | 102 enum Origin { |
| 103 SCT_EMBEDDED = 0, | 103 SCT_EMBEDDED = 0, |
| 104 SCT_FROM_TLS_EXTENSION = 1, | 104 SCT_FROM_TLS_EXTENSION = 1, |
| 105 SCT_FROM_OCSP_RESPONSE = 2, | 105 SCT_FROM_OCSP_RESPONSE = 2, |
| 106 SCT_ORIGIN_MAX, | 106 SCT_ORIGIN_MAX, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 130 ~SignedCertificateTimestamp(); | 130 ~SignedCertificateTimestamp(); |
| 131 | 131 |
| 132 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp); | 132 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace ct | 135 } // namespace ct |
| 136 | 136 |
| 137 } // namespace net | 137 } // namespace net |
| 138 | 138 |
| 139 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ | 139 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ |
| OLD | NEW |