OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "components/error_page/common/localized_error.h" | 5 #include "components/error_page/common/localized_error.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE, | 241 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE, |
242 SUGGEST_DIAGNOSE_TOOL, | 242 SUGGEST_DIAGNOSE_TOOL, |
243 SHOW_BUTTON_RELOAD, | 243 SHOW_BUTTON_RELOAD, |
244 }, | 244 }, |
245 {net::ERR_BAD_SSL_CLIENT_AUTH_CERT, | 245 {net::ERR_BAD_SSL_CLIENT_AUTH_CERT, |
246 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, | 246 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, |
247 IDS_ERRORPAGES_SUMMARY_BAD_SSL_CLIENT_AUTH_CERT, | 247 IDS_ERRORPAGES_SUMMARY_BAD_SSL_CLIENT_AUTH_CERT, |
248 SUGGEST_CONTACT_ADMINISTRATOR, | 248 SUGGEST_CONTACT_ADMINISTRATOR, |
249 SHOW_NO_BUTTONS, | 249 SHOW_NO_BUTTONS, |
250 }, | 250 }, |
| 251 {net::ERR_SSL_VERSION_INTERFERENCE, |
| 252 IDS_ERRORPAGES_HEADING_NOT_AVAILABLE, |
| 253 IDS_ERRORPAGES_SUMMARY_CONNECTION_FAILED, |
| 254 SUGGEST_CHECK_CONNECTION | SUGGEST_FIREWALL_CONFIG | SUGGEST_PROXY_CONFIG, |
| 255 SHOW_BUTTON_RELOAD, |
| 256 }, |
251 {net::ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY, | 257 {net::ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY, |
252 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, | 258 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, |
253 IDS_ERRORPAGES_SUMMARY_SSL_SECURITY_ERROR, | 259 IDS_ERRORPAGES_SUMMARY_SSL_SECURITY_ERROR, |
254 SUGGEST_LEARNMORE, | 260 SUGGEST_LEARNMORE, |
255 SHOW_NO_BUTTONS, | 261 SHOW_NO_BUTTONS, |
256 }, | 262 }, |
257 {net::ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN, | 263 {net::ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN, |
258 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, | 264 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, |
259 IDS_CERT_ERROR_SUMMARY_PINNING_FAILURE_DETAILS, | 265 IDS_CERT_ERROR_SUMMARY_PINNING_FAILURE_DETAILS, |
260 SUGGEST_NONE, | 266 SUGGEST_NONE, |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 | 1073 |
1068 bool LocalizedError::HasStrings(const std::string& error_domain, | 1074 bool LocalizedError::HasStrings(const std::string& error_domain, |
1069 int error_code) { | 1075 int error_code) { |
1070 // Whether or not the there are strings for an error does not depend on | 1076 // Whether or not the there are strings for an error does not depend on |
1071 // whether or not the page was be generated by a POST, so just claim it was | 1077 // whether or not the page was be generated by a POST, so just claim it was |
1072 // not. | 1078 // not. |
1073 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; | 1079 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; |
1074 } | 1080 } |
1075 | 1081 |
1076 } // namespace error_page | 1082 } // namespace error_page |
OLD | NEW |