diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 01:59:53 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 01:59:53 +0000 |
commit | 9fa242b2b6679e1b05d322d4785262e6716e4738 (patch) | |
tree | ae2faba0008e75857f7f020def76efe2296746e4 /chrome/common/localized_error.h | |
parent | 984f08170b1a49deeb7bbb5b8583cb8028c116cd (diff) | |
download | chromium_src-9fa242b2b6679e1b05d322d4785262e6716e4738.zip chromium_src-9fa242b2b6679e1b05d322d4785262e6716e4738.tar.gz chromium_src-9fa242b2b6679e1b05d322d4785262e6716e4738.tar.bz2 |
New network error page: Fix resubmit warning when
navigating forward / back to a page generated by a
POST that can not be retrieved from the CACHE.
This was broken (knowingly) in revision 191712
(https://codereview.chromium.org/12277011/).
BUG=174194,226909
Review URL: https://codereview.chromium.org/13811022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/localized_error.h')
-rw-r--r-- | chrome/common/localized_error.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/chrome/common/localized_error.h b/chrome/common/localized_error.h index 231d105..69d1d27 100644 --- a/chrome/common/localized_error.h +++ b/chrome/common/localized_error.h @@ -29,23 +29,17 @@ class LocalizedError { // Fills |error_strings| with values to be used to build an error page used // on HTTP errors, like 404 or connection reset. static void GetStrings(const WebKit::WebURLError& error, - base::DictionaryValue* strings, - const std::string& locale); + bool is_post, + const std::string& locale, + base::DictionaryValue* strings); // Returns a description of the encountered error. - static string16 GetErrorDetails(const WebKit::WebURLError& error); + static string16 GetErrorDetails(const WebKit::WebURLError& error, + bool is_post); // Returns true if an error page exists for the specified parameters. static bool HasStrings(const std::string& error_domain, int error_code); - // Fills |error_strings| with values to be used to build an error page which - // warns against reposting form data. This is special cased because the form - // repost "error page" has no real error associated with it, and doesn't have - // enough strings localized to meaningfully fill the net error template. - // TODO(mmenke): Get rid of this and merge with GetStrings. - static void GetFormRepostStrings(const GURL& display_url, - base::DictionaryValue* error_strings); - // Fills |error_strings| with values to be used to build an error page used // on HTTP errors, like 404 or connection reset, but using information from // the associated |app| in order to make the error page look like it's more |