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

Side by Side Diff: chrome/browser/ssl/ssl_error_info.h

Issue 23908005: Handle all non-overridable SSL errors in the same place (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Verified that nothing broke despite time passing Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ssl/ssl_error_info.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 (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
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 UNKNOWN, 35 UNKNOWN,
36 CERT_WEAK_KEY_DH,
37 CERT_PINNED_KEY_MISSING,
36 END_OF_ENUM 38 END_OF_ENUM
37 }; 39 };
38 40
39 virtual ~SSLErrorInfo(); 41 virtual ~SSLErrorInfo();
40 42
41 // Converts a network error code to an ErrorType. 43 // Converts a network error code to an ErrorType.
42 static ErrorType NetErrorToErrorType(int net_error); 44 static ErrorType NetErrorToErrorType(int net_error);
43 45
44 static SSLErrorInfo CreateError(ErrorType error_type, 46 static SSLErrorInfo CreateError(ErrorType error_type,
45 net::X509Certificate* cert, 47 net::X509Certificate* cert,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 79
78 string16 title_; 80 string16 title_;
79 string16 details_; 81 string16 details_;
80 string16 short_description_; 82 string16 short_description_;
81 // Extra-informations contains paragraphs of text explaining in details what 83 // Extra-informations contains paragraphs of text explaining in details what
82 // the error is and what the risks are. 84 // the error is and what the risks are.
83 std::vector<string16> extra_information_; 85 std::vector<string16> extra_information_;
84 }; 86 };
85 87
86 #endif // CHROME_BROWSER_SSL_SSL_ERROR_INFO_H_ 88 #endif // CHROME_BROWSER_SSL_SSL_ERROR_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ssl/ssl_error_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698