summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_unpacker.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 20:36:05 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 20:36:05 +0000
commit6d37714b0e46f65b0418bc3d85f2d296bbbbdfa9 (patch)
tree33624b0b1e8397835ffec7c05eea03e3067870e0 /chrome/common/extensions/extension_unpacker.h
parentafbd35400d2a2ab034acb20584092aa71a808e72 (diff)
downloadchromium_src-6d37714b0e46f65b0418bc3d85f2d296bbbbdfa9.zip
chromium_src-6d37714b0e46f65b0418bc3d85f2d296bbbbdfa9.tar.gz
chromium_src-6d37714b0e46f65b0418bc3d85f2d296bbbbdfa9.tar.bz2
This looks like it was causing the pipe to sometimes overfill.
BUG=38220 TEST=See bug Review URL: http://codereview.chromium.org/1003004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_unpacker.h')
-rw-r--r--chrome/common/extensions/extension_unpacker.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_unpacker.h b/chrome/common/extensions/extension_unpacker.h
index c59262d..b0a4073 100644
--- a/chrome/common/extensions/extension_unpacker.h
+++ b/chrome/common/extensions/extension_unpacker.h
@@ -35,12 +35,23 @@ class ExtensionUnpacker {
// success.
bool DumpImagesToFile();
+ // Write the decoded messages to kDecodedMessageCatalogsFilename. We do this
+ // instead of sending them over IPC, since they are so large. Returns true on
+ // success.
+ bool DumpMessageCatalogsToFile();
+
// Read the decoded images back from the file we saved them to.
// |extension_path| is the path to the extension we unpacked that wrote the
// data. Returns true on success.
static bool ReadImagesFromFile(const FilePath& extension_path,
DecodedImages* images);
+ // Read the decoded message catalogs back from the file we saved them to.
+ // |extension_path| is the path to the extension we unpacked that wrote the
+ // data. Returns true on success.
+ static bool ReadMessageCatalogsFromFile(const FilePath& extension_path,
+ DictionaryValue* catalogs);
+
const std::string& error_message() { return error_message_; }
DictionaryValue* parsed_manifest() {
return parsed_manifest_.get();