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

Side by Side Diff: chrome/renderer/localized_error.cc

Issue 5961008: Give user the ability to disable the URL request throttler:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/url_request/url_request_http_job.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/renderer/localized_error.h" 5 #include "chrome/renderer/localized_error.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.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/string16.h" 10 #include "base/string16.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 IDS_ERRORPAGES_DETAILS_SSL_PROTOCOL_ERROR, 163 IDS_ERRORPAGES_DETAILS_SSL_PROTOCOL_ERROR,
164 SUGGEST_LEARNMORE, 164 SUGGEST_LEARNMORE,
165 }, 165 },
166 {net::ERR_ESET_ANTI_VIRUS_SSL_INTERCEPTION, 166 {net::ERR_ESET_ANTI_VIRUS_SSL_INTERCEPTION,
167 IDS_ERRORPAGES_TITLE_LOAD_FAILED, 167 IDS_ERRORPAGES_TITLE_LOAD_FAILED,
168 IDS_ERRORPAGES_HEADING_ESET_ANTI_VIRUS_SSL_INTERCEPTION, 168 IDS_ERRORPAGES_HEADING_ESET_ANTI_VIRUS_SSL_INTERCEPTION,
169 IDS_ERRORPAGES_SUMMARY_ESET_ANTI_VIRUS_SSL_INTERCEPTION, 169 IDS_ERRORPAGES_SUMMARY_ESET_ANTI_VIRUS_SSL_INTERCEPTION,
170 IDS_ERRORPAGES_DETAILS_SSL_PROTOCOL_ERROR, 170 IDS_ERRORPAGES_DETAILS_SSL_PROTOCOL_ERROR,
171 SUGGEST_LEARNMORE, 171 SUGGEST_LEARNMORE,
172 }, 172 },
173 {net::ERR_TEMPORARILY_THROTTLED,
174 IDS_ERRORPAGES_TITLE_ACCESS_DENIED,
175 IDS_ERRORPAGES_HEADING_ACCESS_DENIED,
176 IDS_ERRORPAGES_SUMMARY_TEMPORARILY_THROTTLED,
177 IDS_ERRORPAGES_DETAILS_TEMPORARILY_THROTTLED,
178 SUGGEST_NONE,
179 },
173 }; 180 };
174 181
175 const LocalizedErrorMap http_error_options[] = { 182 const LocalizedErrorMap http_error_options[] = {
176 {403, 183 {403,
177 IDS_ERRORPAGES_TITLE_ACCESS_DENIED, 184 IDS_ERRORPAGES_TITLE_ACCESS_DENIED,
178 IDS_ERRORPAGES_HEADING_ACCESS_DENIED, 185 IDS_ERRORPAGES_HEADING_ACCESS_DENIED,
179 IDS_ERRORPAGES_SUMMARY_FORBIDDEN, 186 IDS_ERRORPAGES_SUMMARY_FORBIDDEN,
180 IDS_ERRORPAGES_DETAILS_FORBIDDEN, 187 IDS_ERRORPAGES_DETAILS_FORBIDDEN,
181 SUGGEST_NONE, 188 SUGGEST_NONE,
182 }, 189 },
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 error_strings->SetString( 532 error_strings->SetString(
526 "url", l10n_util::GetStringFUTF16(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, 533 "url", l10n_util::GetStringFUTF16(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
527 failed_url.c_str())); 534 failed_url.c_str()));
528 535
529 error_strings->SetString("title", app->name()); 536 error_strings->SetString("title", app->name());
530 error_strings->SetString("icon", app->icon_url().spec()); 537 error_strings->SetString("icon", app->icon_url().spec());
531 error_strings->SetString("name", app->name()); 538 error_strings->SetString("name", app->name());
532 error_strings->SetString("msg", 539 error_strings->SetString("msg",
533 l10n_util::GetStringUTF16(IDS_ERRORPAGES_APP_WARNING)); 540 l10n_util::GetStringUTF16(IDS_ERRORPAGES_APP_WARNING));
534 } 541 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698