| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE, | 207 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE, |
| 208 SUGGEST_NONE, | 208 SUGGEST_NONE, |
| 209 SHOW_BUTTON_RELOAD, | 209 SHOW_BUTTON_RELOAD, |
| 210 }, | 210 }, |
| 211 {net::ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION, | 211 {net::ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION, |
| 212 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING, | 212 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING, |
| 213 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE, | 213 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE, |
| 214 SUGGEST_NONE, | 214 SUGGEST_NONE, |
| 215 SHOW_BUTTON_RELOAD, | 215 SHOW_BUTTON_RELOAD, |
| 216 }, | 216 }, |
| 217 {net::ERR_INVALID_HTTP_RESPONSE, | |
| 218 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING, | |
| 219 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE, | |
| 220 SUGGEST_NONE, | |
| 221 SHOW_BUTTON_RELOAD, | |
| 222 }, | |
| 223 {net::ERR_CONTENT_LENGTH_MISMATCH, | 217 {net::ERR_CONTENT_LENGTH_MISMATCH, |
| 224 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING, | 218 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING, |
| 225 IDS_ERRORPAGES_SUMMARY_CONNECTION_CLOSED, | 219 IDS_ERRORPAGES_SUMMARY_CONNECTION_CLOSED, |
| 226 SUGGEST_NONE, | 220 SUGGEST_NONE, |
| 227 SHOW_BUTTON_RELOAD, | 221 SHOW_BUTTON_RELOAD, |
| 228 }, | 222 }, |
| 229 {net::ERR_INCOMPLETE_CHUNKED_ENCODING, | 223 {net::ERR_INCOMPLETE_CHUNKED_ENCODING, |
| 230 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING, | 224 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING, |
| 231 IDS_ERRORPAGES_SUMMARY_CONNECTION_CLOSED, | 225 IDS_ERRORPAGES_SUMMARY_CONNECTION_CLOSED, |
| 232 SUGGEST_NONE, | 226 SUGGEST_NONE, |
| (...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 | 1016 |
| 1023 bool LocalizedError::HasStrings(const std::string& error_domain, | 1017 bool LocalizedError::HasStrings(const std::string& error_domain, |
| 1024 int error_code) { | 1018 int error_code) { |
| 1025 // Whether or not the there are strings for an error does not depend on | 1019 // Whether or not the there are strings for an error does not depend on |
| 1026 // whether or not the page was be generated by a POST, so just claim it was | 1020 // whether or not the page was be generated by a POST, so just claim it was |
| 1027 // not. | 1021 // not. |
| 1028 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; | 1022 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; |
| 1029 } | 1023 } |
| 1030 | 1024 |
| 1031 } // namespace error_page | 1025 } // namespace error_page |
| OLD | NEW |