| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SSL_ERRORS_SSL_ERROR_INFO_H_ | 5 #ifndef COMPONENTS_SSL_ERRORS_SSL_ERROR_INFO_H_ |
| 6 #define COMPONENTS_SSL_ERRORS_SSL_ERROR_INFO_H_ | 6 #define COMPONENTS_SSL_ERRORS_SSL_ERROR_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 CERT_UNABLE_TO_CHECK_REVOCATION = 5, | 33 CERT_UNABLE_TO_CHECK_REVOCATION = 5, |
| 34 CERT_REVOKED = 6, | 34 CERT_REVOKED = 6, |
| 35 CERT_INVALID = 7, | 35 CERT_INVALID = 7, |
| 36 CERT_WEAK_SIGNATURE_ALGORITHM = 8, | 36 CERT_WEAK_SIGNATURE_ALGORITHM = 8, |
| 37 CERT_WEAK_KEY = 9, | 37 CERT_WEAK_KEY = 9, |
| 38 CERT_NAME_CONSTRAINT_VIOLATION = 10, | 38 CERT_NAME_CONSTRAINT_VIOLATION = 10, |
| 39 UNKNOWN = 11, | 39 UNKNOWN = 11, |
| 40 // CERT_WEAK_KEY_DH = 12, | 40 // CERT_WEAK_KEY_DH = 12, |
| 41 CERT_PINNED_KEY_MISSING = 13, | 41 CERT_PINNED_KEY_MISSING = 13, |
| 42 CERT_VALIDITY_TOO_LONG = 14, | 42 CERT_VALIDITY_TOO_LONG = 14, |
| 43 CERTIFICATE_TRANSPARENCY_REQUIRED = 15, |
| 43 END_OF_ENUM | 44 END_OF_ENUM |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 virtual ~ErrorInfo(); | 47 virtual ~ErrorInfo(); |
| 47 | 48 |
| 48 // Converts a network error code to an ErrorType. | 49 // Converts a network error code to an ErrorType. |
| 49 static ErrorType NetErrorToErrorType(int net_error); | 50 static ErrorType NetErrorToErrorType(int net_error); |
| 50 | 51 |
| 51 static ErrorInfo CreateError(ErrorType error_type, | 52 static ErrorInfo CreateError(ErrorType error_type, |
| 52 net::X509Certificate* cert, | 53 net::X509Certificate* cert, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 71 ErrorInfo(const base::string16& details, | 72 ErrorInfo(const base::string16& details, |
| 72 const base::string16& short_description); | 73 const base::string16& short_description); |
| 73 | 74 |
| 74 base::string16 details_; | 75 base::string16 details_; |
| 75 base::string16 short_description_; | 76 base::string16 short_description_; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace ssl_errors | 79 } // namespace ssl_errors |
| 79 | 80 |
| 80 #endif // COMPONENTS_SSL_ERRORS_SSL_ERROR_INFO_H_ | 81 #endif // COMPONENTS_SSL_ERRORS_SSL_ERROR_INFO_H_ |
| OLD | NEW |