| 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" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
| 17 #include "chrome/grit/chromium_strings.h" | 17 #include "chrome/grit/chromium_strings.h" |
| 18 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
| 19 #include "components/error_page/common/error_page_params.h" | 19 #include "components/error_page/common/error_page_params.h" |
| 20 #include "components/error_page/common/net_error_info.h" | 20 #include "components/error_page/common/net_error_info.h" |
| 21 #include "components/url_formatter/url_formatter.h" | 21 #include "components/url_formatter/url_formatter.h" |
| 22 #include "grit/components_chromium_strings.h" | 22 #include "grit/components_chromium_strings.h" |
| 23 #include "grit/components_google_chrome_strings.h" | 23 #include "grit/components_google_chrome_strings.h" |
| 24 #include "grit/components_strings.h" | |
| 25 #include "net/base/escape.h" | 24 #include "net/base/escape.h" |
| 26 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
| 27 #include "third_party/WebKit/public/platform/WebURLError.h" | 26 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 29 #include "ui/base/webui/web_ui_util.h" | 28 #include "ui/base/webui/web_ui_util.h" |
| 30 | 29 |
| 31 #if defined(OS_WIN) | 30 #if defined(OS_WIN) |
| 32 #include "base/win/windows_version.h" | 31 #include "base/win/windows_version.h" |
| 33 #endif | 32 #endif |
| 34 | 33 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 {net::ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY, | 261 {net::ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY, |
| 263 IDS_ERRORPAGES_TITLE_LOAD_FAILED, | 262 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
| 264 IDS_ERRORPAGES_HEADING_WEAK_SERVER_EPHEMERAL_DH_KEY, | 263 IDS_ERRORPAGES_HEADING_WEAK_SERVER_EPHEMERAL_DH_KEY, |
| 265 IDS_ERRORPAGES_SUMMARY_WEAK_SERVER_EPHEMERAL_DH_KEY, | 264 IDS_ERRORPAGES_SUMMARY_WEAK_SERVER_EPHEMERAL_DH_KEY, |
| 266 IDS_ERRORPAGES_DETAILS_SSL_PROTOCOL_ERROR, | 265 IDS_ERRORPAGES_DETAILS_SSL_PROTOCOL_ERROR, |
| 267 SUGGEST_LEARNMORE, | 266 SUGGEST_LEARNMORE, |
| 268 }, | 267 }, |
| 269 {net::ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN, | 268 {net::ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN, |
| 270 IDS_ERRORPAGES_TITLE_LOAD_FAILED, | 269 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
| 271 IDS_ERRORPAGES_HEADING_PINNING_FAILURE, | 270 IDS_ERRORPAGES_HEADING_PINNING_FAILURE, |
| 272 IDS_CERT_ERROR_SUMMARY_PINNING_FAILURE_DETAILS, | 271 IDS_ERRORPAGES_SUMMARY_PINNING_FAILURE, |
| 273 IDS_CERT_ERROR_SUMMARY_PINNING_FAILURE_DESCRIPTION, | 272 IDS_ERRORPAGES_DETAILS_PINNING_FAILURE, |
| 274 SUGGEST_NONE, | 273 SUGGEST_NONE, |
| 275 }, | 274 }, |
| 276 {net::ERR_TEMPORARILY_THROTTLED, | 275 {net::ERR_TEMPORARILY_THROTTLED, |
| 277 IDS_ERRORPAGES_TITLE_ACCESS_DENIED, | 276 IDS_ERRORPAGES_TITLE_ACCESS_DENIED, |
| 278 IDS_ERRORPAGES_HEADING_ACCESS_DENIED, | 277 IDS_ERRORPAGES_HEADING_ACCESS_DENIED, |
| 279 IDS_ERRORPAGES_SUMMARY_TEMPORARILY_THROTTLED, | 278 IDS_ERRORPAGES_SUMMARY_TEMPORARILY_THROTTLED, |
| 280 IDS_ERRORPAGES_DETAILS_TEMPORARILY_THROTTLED, | 279 IDS_ERRORPAGES_DETAILS_TEMPORARILY_THROTTLED, |
| 281 SUGGEST_NONE, | 280 SUGGEST_NONE, |
| 282 }, | 281 }, |
| 283 {net::ERR_BLOCKED_BY_CLIENT, | 282 {net::ERR_BLOCKED_BY_CLIENT, |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 cache_button->SetString("cacheUrl", cache_url); | 923 cache_button->SetString("cacheUrl", cache_url); |
| 925 cache_button->SetInteger("trackingId", cache_tracking_id); | 924 cache_button->SetInteger("trackingId", cache_tracking_id); |
| 926 error_strings->Set("cacheButton", cache_button.release()); | 925 error_strings->Set("cacheButton", cache_button.release()); |
| 927 | 926 |
| 928 // Remove the item from suggestions dictionary so that it does not get | 927 // Remove the item from suggestions dictionary so that it does not get |
| 929 // displayed by the template in the details section. | 928 // displayed by the template in the details section. |
| 930 suggestions->Remove(0, nullptr); | 929 suggestions->Remove(0, nullptr); |
| 931 } | 930 } |
| 932 } | 931 } |
| 933 } | 932 } |
| OLD | NEW |