Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: components/error_page/common/localized_error.cc

Issue 2144803002: Remove HTTP/0.9 support from HttpStreamParser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix websockets tests Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/base/net_error_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 SUGGEST_NONE, 230 SUGGEST_NONE,
231 SHOW_BUTTON_RELOAD, 231 SHOW_BUTTON_RELOAD,
232 }, 232 },
233 {net::ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION, 233 {net::ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION,
234 IDS_ERRORPAGES_TITLE_LOAD_FAILED, 234 IDS_ERRORPAGES_TITLE_LOAD_FAILED,
235 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING, 235 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING,
236 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE, 236 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE,
237 SUGGEST_NONE, 237 SUGGEST_NONE,
238 SHOW_BUTTON_RELOAD, 238 SHOW_BUTTON_RELOAD,
239 }, 239 },
240 {net::ERR_INVALID_HTTP_RESPONSE,
241 IDS_ERRORPAGES_TITLE_LOAD_FAILED,
242 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING,
243 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE,
244 SUGGEST_NONE,
245 SHOW_BUTTON_RELOAD,
246 },
240 {net::ERR_CONTENT_LENGTH_MISMATCH, 247 {net::ERR_CONTENT_LENGTH_MISMATCH,
241 IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, 248 IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
242 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING, 249 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING,
243 IDS_ERRORPAGES_SUMMARY_CONNECTION_CLOSED, 250 IDS_ERRORPAGES_SUMMARY_CONNECTION_CLOSED,
244 SUGGEST_NONE, 251 SUGGEST_NONE,
245 SHOW_BUTTON_RELOAD, 252 SHOW_BUTTON_RELOAD,
246 }, 253 },
247 {net::ERR_INCOMPLETE_CHUNKED_ENCODING, 254 {net::ERR_INCOMPLETE_CHUNKED_ENCODING,
248 IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, 255 IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
249 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING, 256 IDS_ERRORPAGES_HEADING_PAGE_NOT_WORKING,
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 1079
1073 bool LocalizedError::HasStrings(const std::string& error_domain, 1080 bool LocalizedError::HasStrings(const std::string& error_domain,
1074 int error_code) { 1081 int error_code) {
1075 // Whether or not the there are strings for an error does not depend on 1082 // Whether or not the there are strings for an error does not depend on
1076 // whether or not the page was be generated by a POST, so just claim it was 1083 // whether or not the page was be generated by a POST, so just claim it was
1077 // not. 1084 // not.
1078 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; 1085 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr;
1079 } 1086 }
1080 1087
1081 } // namespace error_page 1088 } // namespace error_page
OLDNEW
« no previous file with comments | « no previous file | net/base/net_error_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698