summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/unpacker.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-10 21:27:00 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-10 21:27:00 +0000
commit43c05d903477daa665af240abbf99791195fc6b1 (patch)
treeee0ccabfcff204fdd3ae9d6e8af9286ee6cb5147 /chrome/common/extensions/unpacker.h
parent01a552739aebbae16a3268caf01dee3dd6426c71 (diff)
downloadchromium_src-43c05d903477daa665af240abbf99791195fc6b1.zip
chromium_src-43c05d903477daa665af240abbf99791195fc6b1.tar.gz
chromium_src-43c05d903477daa665af240abbf99791195fc6b1.tar.bz2
Remove remaining use of chrome\commmon\extensions\unpacker.h from chrome\browser so that it can be moved to chrome\utility\extensions.
Also switch the SanboxedUnpacker unittest to use the in-process utility-thread codepath so that it doesn't depend on the above. BUG=19192,237249 R=mpcomplete@chromium.org Review URL: https://codereview.chromium.org/18146005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/unpacker.h')
-rw-r--r--chrome/common/extensions/unpacker.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/chrome/common/extensions/unpacker.h b/chrome/common/extensions/unpacker.h
index f101aa7..966de73 100644
--- a/chrome/common/extensions/unpacker.h
+++ b/chrome/common/extensions/unpacker.h
@@ -10,7 +10,6 @@
#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
-#include "base/tuple.h"
#include "chrome/common/extensions/manifest.h"
class SkBitmap;
@@ -27,8 +26,6 @@ namespace extensions {
// and writes them back out to disk for later use.
class Unpacker {
public:
- typedef std::vector< Tuple2<SkBitmap, base::FilePath> > DecodedImages;
-
Unpacker(const base::FilePath& extension_path,
const std::string& extension_id,
Manifest::Location location,
@@ -49,23 +46,10 @@ class Unpacker {
// 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 base::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 base::FilePath& extension_path,
- base::DictionaryValue* catalogs);
-
const string16& error_message() { return error_message_; }
base::DictionaryValue* parsed_manifest() {
return parsed_manifest_.get();
}
- const DecodedImages& decoded_images() { return decoded_images_; }
base::DictionaryValue* parsed_catalogs() { return parsed_catalogs_.get(); }
private:
@@ -108,7 +92,8 @@ class Unpacker {
// A list of decoded images and the paths where those images came from. Paths
// are relative to the manifest file.
- DecodedImages decoded_images_;
+ struct InternalData;
+ scoped_ptr<InternalData> internal_data_;
// Dictionary of relative paths and catalogs per path. Paths are in the form
// of _locales/locale, without messages.json base part.