Index: chrome/common/localized_error.h |
diff --git a/chrome/renderer/localized_error.h b/chrome/common/localized_error.h |
similarity index 89% |
rename from chrome/renderer/localized_error.h |
rename to chrome/common/localized_error.h |
index ad6d4401cbe3e5dab11fafd210f75bd819345450..18b0e5c9698a0ffb04475e7339b9c6e7beef7006 100644 |
--- a/chrome/renderer/localized_error.h |
+++ b/chrome/common/localized_error.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_RENDERER_LOCALIZED_ERROR_H_ |
-#define CHROME_RENDERER_LOCALIZED_ERROR_H_ |
+#ifndef CHROME_COMMON_LOCALIZED_ERROR_H_ |
+#define CHROME_COMMON_LOCALIZED_ERROR_H_ |
#include <string> |
@@ -29,7 +29,8 @@ 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); |
+ base::DictionaryValue* strings, |
+ const std::string& locale); |
// Returns a description of the encountered error. |
static string16 GetErrorDetails(const WebKit::WebURLError& error); |
@@ -59,4 +60,4 @@ class LocalizedError { |
DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError); |
}; |
-#endif // CHROME_RENDERER_LOCALIZED_ERROR_H_ |
+#endif // CHROME_COMMON_LOCALIZED_ERROR_H_ |