| 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 "chrome/common/localized_error.h" | 5 #include "chrome/common/localized_error.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 IDS_ERRORPAGES_DETAILS_SSL_VERSION_OR_CIPHER_MISMATCH, | 321 IDS_ERRORPAGES_DETAILS_SSL_VERSION_OR_CIPHER_MISMATCH, |
| 322 SUGGEST_NONE, | 322 SUGGEST_NONE, |
| 323 }, | 323 }, |
| 324 {net::ERR_TEMPORARY_BACKOFF, | 324 {net::ERR_TEMPORARY_BACKOFF, |
| 325 IDS_ERRORPAGES_TITLE_ACCESS_DENIED, | 325 IDS_ERRORPAGES_TITLE_ACCESS_DENIED, |
| 326 IDS_ERRORPAGES_HEADING_ACCESS_DENIED, | 326 IDS_ERRORPAGES_HEADING_ACCESS_DENIED, |
| 327 IDS_ERRORPAGES_SUMMARY_TEMPORARY_BACKOFF, | 327 IDS_ERRORPAGES_SUMMARY_TEMPORARY_BACKOFF, |
| 328 IDS_ERRORPAGES_DETAILS_TEMPORARY_BACKOFF, | 328 IDS_ERRORPAGES_DETAILS_TEMPORARY_BACKOFF, |
| 329 SUGGEST_NONE, | 329 SUGGEST_NONE, |
| 330 }, | 330 }, |
| 331 {net::ERR_SSL_SERVER_CERT_BAD_FORMAT, |
| 332 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
| 333 IDS_ERRORPAGES_HEADING_SSL_PROTOCOL_ERROR, |
| 334 IDS_ERRORPAGES_SUMMARY_SSL_PROTOCOL_ERROR, |
| 335 IDS_ERRORPAGES_DETAILS_SSL_PROTOCOL_ERROR, |
| 336 SUGGEST_NONE, |
| 337 }, |
| 331 }; | 338 }; |
| 332 | 339 |
| 333 // Special error page to be used in the case of navigating back to a page | 340 // Special error page to be used in the case of navigating back to a page |
| 334 // generated by a POST. LocalizedError::HasStrings expects this net error code | 341 // generated by a POST. LocalizedError::HasStrings expects this net error code |
| 335 // to also appear in the array above. | 342 // to also appear in the array above. |
| 336 const LocalizedErrorMap repost_error = { | 343 const LocalizedErrorMap repost_error = { |
| 337 net::ERR_CACHE_MISS, | 344 net::ERR_CACHE_MISS, |
| 338 IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, | 345 IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, |
| 339 IDS_HTTP_POST_WARNING_TITLE, | 346 IDS_HTTP_POST_WARNING_TITLE, |
| 340 IDS_ERRORPAGES_HTTP_POST_WARNING, | 347 IDS_ERRORPAGES_HTTP_POST_WARNING, |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 cache_button->SetString("cacheUrl", cache_url); | 935 cache_button->SetString("cacheUrl", cache_url); |
| 929 cache_button->SetInteger("trackingId", cache_tracking_id); | 936 cache_button->SetInteger("trackingId", cache_tracking_id); |
| 930 error_strings->Set("cacheButton", cache_button.release()); | 937 error_strings->Set("cacheButton", cache_button.release()); |
| 931 | 938 |
| 932 // Remove the item from suggestions dictionary so that it does not get | 939 // Remove the item from suggestions dictionary so that it does not get |
| 933 // displayed by the template in the details section. | 940 // displayed by the template in the details section. |
| 934 suggestions->Remove(0, nullptr); | 941 suggestions->Remove(0, nullptr); |
| 935 } | 942 } |
| 936 } | 943 } |
| 937 } | 944 } |
| OLD | NEW |