| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_SSL_SSL_ERROR_INFO_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_ERROR_INFO_H_ |
| 6 #define CHROME_BROWSER_SSL_SSL_ERROR_INFO_H_ | 6 #define CHROME_BROWSER_SSL_SSL_ERROR_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 CERT_DATE_INVALID, | 26 CERT_DATE_INVALID, |
| 27 CERT_AUTHORITY_INVALID, | 27 CERT_AUTHORITY_INVALID, |
| 28 CERT_CONTAINS_ERRORS, | 28 CERT_CONTAINS_ERRORS, |
| 29 CERT_NO_REVOCATION_MECHANISM, | 29 CERT_NO_REVOCATION_MECHANISM, |
| 30 CERT_UNABLE_TO_CHECK_REVOCATION, | 30 CERT_UNABLE_TO_CHECK_REVOCATION, |
| 31 CERT_REVOKED, | 31 CERT_REVOKED, |
| 32 CERT_INVALID, | 32 CERT_INVALID, |
| 33 CERT_WEAK_SIGNATURE_ALGORITHM, | 33 CERT_WEAK_SIGNATURE_ALGORITHM, |
| 34 CERT_WEAK_KEY, | 34 CERT_WEAK_KEY, |
| 35 CERT_NAME_CONSTRAINT_VIOLATION, | 35 CERT_NAME_CONSTRAINT_VIOLATION, |
| 36 CERT_VALIDITY_TOO_LONG, | |
| 37 UNKNOWN, | 36 UNKNOWN, |
| 38 CERT_WEAK_KEY_DH, | 37 CERT_WEAK_KEY_DH, |
| 39 CERT_PINNED_KEY_MISSING, | 38 CERT_PINNED_KEY_MISSING, |
| 40 END_OF_ENUM | 39 END_OF_ENUM |
| 41 }; | 40 }; |
| 42 | 41 |
| 43 virtual ~SSLErrorInfo(); | 42 virtual ~SSLErrorInfo(); |
| 44 | 43 |
| 45 // Converts a network error code to an ErrorType. | 44 // Converts a network error code to an ErrorType. |
| 46 static ErrorType NetErrorToErrorType(int net_error); | 45 static ErrorType NetErrorToErrorType(int net_error); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 66 | 65 |
| 67 private: | 66 private: |
| 68 SSLErrorInfo(const base::string16& details, | 67 SSLErrorInfo(const base::string16& details, |
| 69 const base::string16& short_description); | 68 const base::string16& short_description); |
| 70 | 69 |
| 71 base::string16 details_; | 70 base::string16 details_; |
| 72 base::string16 short_description_; | 71 base::string16 short_description_; |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 #endif // CHROME_BROWSER_SSL_SSL_ERROR_INFO_H_ | 74 #endif // CHROME_BROWSER_SSL_SSL_ERROR_INFO_H_ |
| OLD | NEW |