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

Unified Diff: extensions/common/file_util.h

Issue 228073005: Move core extensions l10n code to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unused header is unused Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/extension_l10n_util_unittest.cc ('k') | extensions/common/file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/file_util.h
diff --git a/extensions/common/file_util.h b/extensions/common/file_util.h
index 3ec7adec5b7ae186889e762e386e3b6658f41bf8..3113745986ad3ea0a683f8c96ae7b4df42ca30ca 100644
--- a/extensions/common/file_util.h
+++ b/extensions/common/file_util.h
@@ -5,6 +5,10 @@
#ifndef EXTENSIONS_COMMON_FILE_UTIL_H_
#define EXTENSIONS_COMMON_FILE_UTIL_H_
+#include <string>
+
+#include "extensions/common/message_bundle.h"
+
class GURL;
namespace base {
@@ -22,6 +26,19 @@ base::FilePath ExtensionURLToRelativeFilePath(const GURL& url);
base::FilePath ExtensionResourceURLToFilePath(const GURL& url,
const base::FilePath& root);
+// Loads extension message catalogs and returns message bundle.
+// Returns NULL on error or if the extension is not localized.
+MessageBundle* LoadMessageBundle(const base::FilePath& extension_path,
+ const std::string& default_locale,
+ std::string* error);
+
+// Loads the extension message bundle substitution map. Contains at least
+// the extension_id item.
+MessageBundle::SubstitutionMap* LoadMessageBundleSubstitutionMap(
+ const base::FilePath& extension_path,
+ const std::string& extension_id,
+ const std::string& default_locale);
+
} // namespace file_util
} // namespace extensions
« no previous file with comments | « extensions/common/extension_l10n_util_unittest.cc ('k') | extensions/common/file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698