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

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

Issue 1951233003: Consistent SignedCertificateTimestamp::Version and SignedTreeHead::Version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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
« no previous file with comments | « net/cert/ct_serialization.cc ('k') | net/test/ct_test_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « net/cert/ct_serialization.cc ('k') | net/test/ct_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698