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

Side by Side Diff: components/ssl_errors/error_info.h

Issue 2083913002: Add error strings for CERT_STATUS_CERTIFICATE_TRANSPARENCY_REQUIRED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@symantec_ct
Patch Set: protocol -> policy per file strings Created 4 years, 5 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 | « no previous file | components/ssl_errors/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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/ssl_errors/error_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698