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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 SHOW_NO_BUTTONS, | 360 SHOW_NO_BUTTONS, |
361 }, | 361 }, |
362 {net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH, | 362 {net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH, |
363 IDS_ERRORPAGES_TITLE_LOAD_FAILED, | 363 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
364 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, | 364 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, |
365 IDS_ERRORPAGES_SUMMARY_SSL_VERSION_OR_CIPHER_MISMATCH, | 365 IDS_ERRORPAGES_SUMMARY_SSL_VERSION_OR_CIPHER_MISMATCH, |
366 IDS_ERRORPAGES_DETAILS_SSL_VERSION_OR_CIPHER_MISMATCH, | 366 IDS_ERRORPAGES_DETAILS_SSL_VERSION_OR_CIPHER_MISMATCH, |
367 SUGGEST_UNSUPPORTED_CIPHER, | 367 SUGGEST_UNSUPPORTED_CIPHER, |
368 SHOW_NO_BUTTONS, | 368 SHOW_NO_BUTTONS, |
369 }, | 369 }, |
| 370 {net::ERR_SSL_OBSOLETE_CIPHER, |
| 371 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
| 372 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, |
| 373 IDS_ERRORPAGES_SUMMARY_SSL_VERSION_OR_CIPHER_MISMATCH, |
| 374 IDS_ERRORPAGES_DETAILS_SSL_VERSION_OR_CIPHER_MISMATCH, |
| 375 SUGGEST_UNSUPPORTED_CIPHER, |
| 376 SHOW_NO_BUTTONS, |
| 377 }, |
370 {net::ERR_TEMPORARY_BACKOFF, | 378 {net::ERR_TEMPORARY_BACKOFF, |
371 IDS_ERRORPAGES_TITLE_ACCESS_DENIED, | 379 IDS_ERRORPAGES_TITLE_ACCESS_DENIED, |
372 IDS_ERRORPAGES_HEADING_ACCESS_DENIED, | 380 IDS_ERRORPAGES_HEADING_ACCESS_DENIED, |
373 IDS_ERRORPAGES_SUMMARY_TEMPORARY_BACKOFF, | 381 IDS_ERRORPAGES_SUMMARY_TEMPORARY_BACKOFF, |
374 IDS_ERRORPAGES_DETAILS_TEMPORARY_BACKOFF, | 382 IDS_ERRORPAGES_DETAILS_TEMPORARY_BACKOFF, |
375 SUGGEST_NONE, | 383 SUGGEST_NONE, |
376 SHOW_NO_BUTTONS, | 384 SHOW_NO_BUTTONS, |
377 }, | 385 }, |
378 {net::ERR_SSL_SERVER_CERT_BAD_FORMAT, | 386 {net::ERR_SSL_SERVER_CERT_BAD_FORMAT, |
379 IDS_ERRORPAGES_TITLE_LOAD_FAILED, | 387 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1130 | 1138 |
1131 bool LocalizedError::HasStrings(const std::string& error_domain, | 1139 bool LocalizedError::HasStrings(const std::string& error_domain, |
1132 int error_code) { | 1140 int error_code) { |
1133 // Whether or not the there are strings for an error does not depend on | 1141 // Whether or not the there are strings for an error does not depend on |
1134 // whether or not the page was be generated by a POST, so just claim it was | 1142 // whether or not the page was be generated by a POST, so just claim it was |
1135 // not. | 1143 // not. |
1136 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; | 1144 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; |
1137 } | 1145 } |
1138 | 1146 |
1139 } // namespace error_page | 1147 } // namespace error_page |
OLD | NEW |