| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_INTERNAL_PARSED_CERTIFICATE_H_ | 5 #ifndef NET_CERT_INTERNAL_PARSED_CERTIFICATE_H_ |
| 6 #define NET_CERT_INTERNAL_PARSED_CERTIFICATE_H_ | 6 #define NET_CERT_INTERNAL_PARSED_CERTIFICATE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 14 #include "net/cert/internal/parse_certificate.h" | 14 #include "net/cert/internal/parse_certificate.h" |
| 15 #include "net/der/input.h" | 15 #include "net/der/input.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 struct GeneralNames; | 19 struct GeneralNames; |
| 20 class NameConstraints; | 20 class NameConstraints; |
| 21 class ParsedCertificate; |
| 21 class SignatureAlgorithm; | 22 class SignatureAlgorithm; |
| 22 | 23 |
| 24 using ParsedCertificateList = std::vector<scoped_refptr<ParsedCertificate>>; |
| 25 |
| 23 // Represents an X.509 certificate, including Certificate, TBSCertificate, and | 26 // Represents an X.509 certificate, including Certificate, TBSCertificate, and |
| 24 // standard extensions. | 27 // standard extensions. |
| 25 // Creating a ParsedCertificate does not completely parse and validate the | 28 // Creating a ParsedCertificate does not completely parse and validate the |
| 26 // certificate data. Presence of a member in this class implies the DER was | 29 // certificate data. Presence of a member in this class implies the DER was |
| 27 // parsed successfully to that level, but does not imply the contents of that | 30 // parsed successfully to that level, but does not imply the contents of that |
| 28 // member are valid, unless otherwise specified. See the documentation for each | 31 // member are valid, unless otherwise specified. See the documentation for each |
| 29 // member or the documentation of the type it returns. | 32 // member or the documentation of the type it returns. |
| 30 class NET_EXPORT ParsedCertificate | 33 class NET_EXPORT ParsedCertificate |
| 31 : public base::RefCountedThreadSafe<ParsedCertificate> { | 34 : public base::RefCountedThreadSafe<ParsedCertificate> { |
| 32 public: | 35 public: |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 235 |
| 233 // The remaining extensions (excludes the standard ones above). | 236 // The remaining extensions (excludes the standard ones above). |
| 234 ExtensionsMap unparsed_extensions_; | 237 ExtensionsMap unparsed_extensions_; |
| 235 | 238 |
| 236 DISALLOW_COPY_AND_ASSIGN(ParsedCertificate); | 239 DISALLOW_COPY_AND_ASSIGN(ParsedCertificate); |
| 237 }; | 240 }; |
| 238 | 241 |
| 239 } // namespace net | 242 } // namespace net |
| 240 | 243 |
| 241 #endif // NET_CERT_INTERNAL_PARSED_CERTIFICATE_H_ | 244 #endif // NET_CERT_INTERNAL_PARSED_CERTIFICATE_H_ |
| OLD | NEW |