| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 IDS_ERRORPAGES_DETAILS_SSL_FALLBACK_BEYOND_MINIMUM_VERSION, | 314 IDS_ERRORPAGES_DETAILS_SSL_FALLBACK_BEYOND_MINIMUM_VERSION, |
| 315 SUGGEST_NONE, | 315 SUGGEST_NONE, |
| 316 }, | 316 }, |
| 317 {net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH, | 317 {net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH, |
| 318 IDS_ERRORPAGES_TITLE_LOAD_FAILED, | 318 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
| 319 IDS_ERRORPAGES_HEADING_SSL_VERSION_OR_CIPHER_MISMATCH, | 319 IDS_ERRORPAGES_HEADING_SSL_VERSION_OR_CIPHER_MISMATCH, |
| 320 IDS_ERRORPAGES_SUMMARY_SSL_VERSION_OR_CIPHER_MISMATCH, | 320 IDS_ERRORPAGES_SUMMARY_SSL_VERSION_OR_CIPHER_MISMATCH, |
| 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, |
| 325 IDS_ERRORPAGES_TITLE_ACCESS_DENIED, |
| 326 IDS_ERRORPAGES_HEADING_ACCESS_DENIED, |
| 327 IDS_ERRORPAGES_SUMMARY_TEMPORARY_BACKOFF, |
| 328 IDS_ERRORPAGES_DETAILS_TEMPORARY_BACKOFF, |
| 329 SUGGEST_NONE, |
| 330 }, |
| 324 }; | 331 }; |
| 325 | 332 |
| 326 // Special error page to be used in the case of navigating back to a page | 333 // Special error page to be used in the case of navigating back to a page |
| 327 // generated by a POST. LocalizedError::HasStrings expects this net error code | 334 // generated by a POST. LocalizedError::HasStrings expects this net error code |
| 328 // to also appear in the array above. | 335 // to also appear in the array above. |
| 329 const LocalizedErrorMap repost_error = { | 336 const LocalizedErrorMap repost_error = { |
| 330 net::ERR_CACHE_MISS, | 337 net::ERR_CACHE_MISS, |
| 331 IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, | 338 IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, |
| 332 IDS_HTTP_POST_WARNING_TITLE, | 339 IDS_HTTP_POST_WARNING_TITLE, |
| 333 IDS_ERRORPAGES_HTTP_POST_WARNING, | 340 IDS_ERRORPAGES_HTTP_POST_WARNING, |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 cache_button->SetString("cacheUrl", cache_url); | 918 cache_button->SetString("cacheUrl", cache_url); |
| 912 cache_button->SetInteger("trackingId", cache_tracking_id); | 919 cache_button->SetInteger("trackingId", cache_tracking_id); |
| 913 error_strings->Set("cacheButton", cache_button.release()); | 920 error_strings->Set("cacheButton", cache_button.release()); |
| 914 | 921 |
| 915 // Remove the item from suggestions dictionary so that it does not get | 922 // Remove the item from suggestions dictionary so that it does not get |
| 916 // displayed by the template in the details section. | 923 // displayed by the template in the details section. |
| 917 suggestions->Remove(0, nullptr); | 924 suggestions->Remove(0, nullptr); |
| 918 } | 925 } |
| 919 } | 926 } |
| 920 } | 927 } |
| OLD | NEW |