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

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

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)
Patch Set: frameNavigation test. Created 4 years, 1 month 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
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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 IDS_ERRORPAGES_SUMMARY_NOT_AVAILABLE, 262 IDS_ERRORPAGES_SUMMARY_NOT_AVAILABLE,
263 SUGGEST_DISABLE_EXTENSION, 263 SUGGEST_DISABLE_EXTENSION,
264 SHOW_NO_BUTTONS, 264 SHOW_NO_BUTTONS,
265 }, 265 },
266 {net::ERR_BLOCKED_BY_CLIENT, 266 {net::ERR_BLOCKED_BY_CLIENT,
267 IDS_ERRORPAGES_HEADING_BLOCKED, 267 IDS_ERRORPAGES_HEADING_BLOCKED,
268 IDS_ERRORPAGES_SUMMARY_BLOCKED_BY_EXTENSION, 268 IDS_ERRORPAGES_SUMMARY_BLOCKED_BY_EXTENSION,
269 SUGGEST_DISABLE_EXTENSION, 269 SUGGEST_DISABLE_EXTENSION,
270 SHOW_BUTTON_RELOAD, 270 SHOW_BUTTON_RELOAD,
271 }, 271 },
272 {net::ERR_BLOCKED_BY_AUDITOR,
273 IDS_ERRORPAGES_HEADING_BLOCKED,
274 IDS_ERRORPAGES_SUMMARY_BLOCKED_BY_AUDITOR,
275 SUGGEST_NONE,
276 SHOW_NO_BUTTONS,
277 },
272 {net::ERR_NETWORK_CHANGED, 278 {net::ERR_NETWORK_CHANGED,
273 IDS_ERRORPAGES_HEADING_CONNECTION_INTERRUPTED, 279 IDS_ERRORPAGES_HEADING_CONNECTION_INTERRUPTED,
274 IDS_ERRORPAGES_SUMMARY_NETWORK_CHANGED, 280 IDS_ERRORPAGES_SUMMARY_NETWORK_CHANGED,
275 SUGGEST_NONE, 281 SUGGEST_NONE,
276 SHOW_BUTTON_RELOAD, 282 SHOW_BUTTON_RELOAD,
277 }, 283 },
278 {net::ERR_BLOCKED_BY_ADMINISTRATOR, 284 {net::ERR_BLOCKED_BY_ADMINISTRATOR,
279 IDS_ERRORPAGES_HEADING_BLOCKED, 285 IDS_ERRORPAGES_HEADING_BLOCKED,
280 IDS_ERRORPAGES_SUMMARY_BLOCKED_BY_ADMINISTRATOR, 286 IDS_ERRORPAGES_SUMMARY_BLOCKED_BY_ADMINISTRATOR,
281 SUGGEST_CONTACT_ADMINISTRATOR, 287 SUGGEST_CONTACT_ADMINISTRATOR,
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 1017
1012 bool LocalizedError::HasStrings(const std::string& error_domain, 1018 bool LocalizedError::HasStrings(const std::string& error_domain,
1013 int error_code) { 1019 int error_code) {
1014 // Whether or not the there are strings for an error does not depend on 1020 // Whether or not the there are strings for an error does not depend on
1015 // whether or not the page was be generated by a POST, so just claim it was 1021 // whether or not the page was be generated by a POST, so just claim it was
1016 // not. 1022 // not.
1017 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; 1023 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr;
1018 } 1024 }
1019 1025
1020 } // namespace error_page 1026 } // namespace error_page
OLDNEW
« no previous file with comments | « no previous file | components/error_page/renderer/net_error_helper_core.cc » ('j') | components/error_page_strings.grdp » ('J')

Powered by Google App Engine
This is Rietveld 408576698