OLD | NEW |
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 IDS_ERRORPAGES_DETAILS_INTERNET_DISCONNECTED, | 107 IDS_ERRORPAGES_DETAILS_INTERNET_DISCONNECTED, |
108 SUGGEST_NONE, | 108 SUGGEST_NONE, |
109 }, | 109 }, |
110 {net::ERR_FILE_NOT_FOUND, | 110 {net::ERR_FILE_NOT_FOUND, |
111 IDS_ERRORPAGES_TITLE_NOT_FOUND, | 111 IDS_ERRORPAGES_TITLE_NOT_FOUND, |
112 IDS_ERRORPAGES_HEADING_NOT_FOUND, | 112 IDS_ERRORPAGES_HEADING_NOT_FOUND, |
113 IDS_ERRORPAGES_SUMMARY_NOT_FOUND, | 113 IDS_ERRORPAGES_SUMMARY_NOT_FOUND, |
114 IDS_ERRORPAGES_DETAILS_FILE_NOT_FOUND, | 114 IDS_ERRORPAGES_DETAILS_FILE_NOT_FOUND, |
115 SUGGEST_NONE, | 115 SUGGEST_NONE, |
116 }, | 116 }, |
| 117 {net::ERR_CACHE_READ_FAILURE, |
| 118 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
| 119 IDS_ERRORPAGES_HEADING_CACHE_READ_FAILURE, |
| 120 IDS_ERRORPAGES_SUMMARY_CACHE_READ_FAILURE, |
| 121 IDS_ERRORPAGES_DETAILS_CACHE_READ_FAILURE, |
| 122 SUGGEST_RELOAD, |
| 123 }, |
| 124 {net::ERR_NETWORK_IO_SUSPENDED, |
| 125 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
| 126 IDS_ERRORPAGES_HEADING_NETWORK_IO_SUSPENDED, |
| 127 IDS_ERRORPAGES_SUMMARY_NETWORK_IO_SUSPENDED, |
| 128 IDS_ERRORPAGES_DETAILS_NETWORK_IO_SUSPENDED, |
| 129 SUGGEST_RELOAD, |
| 130 }, |
117 {net::ERR_TOO_MANY_REDIRECTS, | 131 {net::ERR_TOO_MANY_REDIRECTS, |
118 IDS_ERRORPAGES_TITLE_LOAD_FAILED, | 132 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
119 IDS_ERRORPAGES_HEADING_TOO_MANY_REDIRECTS, | 133 IDS_ERRORPAGES_HEADING_TOO_MANY_REDIRECTS, |
120 IDS_ERRORPAGES_SUMMARY_TOO_MANY_REDIRECTS, | 134 IDS_ERRORPAGES_SUMMARY_TOO_MANY_REDIRECTS, |
121 IDS_ERRORPAGES_DETAILS_TOO_MANY_REDIRECTS, | 135 IDS_ERRORPAGES_DETAILS_TOO_MANY_REDIRECTS, |
122 SUGGEST_RELOAD | SUGGEST_LEARNMORE, | 136 SUGGEST_RELOAD | SUGGEST_LEARNMORE, |
123 }, | 137 }, |
124 {net::ERR_SSL_PROTOCOL_ERROR, | 138 {net::ERR_SSL_PROTOCOL_ERROR, |
125 IDS_ERRORPAGES_TITLE_LOAD_FAILED, | 139 IDS_ERRORPAGES_TITLE_LOAD_FAILED, |
126 IDS_ERRORPAGES_HEADING_SSL_PROTOCOL_ERROR, | 140 IDS_ERRORPAGES_HEADING_SSL_PROTOCOL_ERROR, |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 error_strings->SetString( | 525 error_strings->SetString( |
512 "url", l10n_util::GetStringFUTF16(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, | 526 "url", l10n_util::GetStringFUTF16(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, |
513 failed_url.c_str())); | 527 failed_url.c_str())); |
514 | 528 |
515 error_strings->SetString("title", app->name()); | 529 error_strings->SetString("title", app->name()); |
516 error_strings->SetString("icon", app->icon_url().spec()); | 530 error_strings->SetString("icon", app->icon_url().spec()); |
517 error_strings->SetString("name", app->name()); | 531 error_strings->SetString("name", app->name()); |
518 error_strings->SetString("msg", | 532 error_strings->SetString("msg", |
519 l10n_util::GetStringUTF16(IDS_ERRORPAGES_APP_WARNING)); | 533 l10n_util::GetStringUTF16(IDS_ERRORPAGES_APP_WARNING)); |
520 } | 534 } |
OLD | NEW |