summaryrefslogtreecommitdiffstats
path: root/chrome/common/zip.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 02:30:43 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 02:30:43 +0000
commited45566a74d2a8dae55ab4e2589ce5f0d78e49b2 (patch)
tree7c24abaa9d7e76f2482e9ef75be0c25bc2319a9a /chrome/common/zip.h
parenta4c34a20c8b0a2fae699edbacf1e82655dab147f (diff)
downloadchromium_src-ed45566a74d2a8dae55ab4e2589ce5f0d78e49b2.zip
chromium_src-ed45566a74d2a8dae55ab4e2589ce5f0d78e49b2.tar.gz
chromium_src-ed45566a74d2a8dae55ab4e2589ce5f0d78e49b2.tar.bz2
Filter out hidden files, both when loading extensions and when
packaging them. We also special case the common OS X zip dropping "__MACOSX" when loading extensions. BUG=23004 Review URL: http://codereview.chromium.org/340018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30312 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/zip.h')
-rw-r--r--chrome/common/zip.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/common/zip.h b/chrome/common/zip.h
index 23823d8..2c3d456 100644
--- a/chrome/common/zip.h
+++ b/chrome/common/zip.h
@@ -12,7 +12,10 @@
// Zip the contents of src_dir into dest_file. src_path must be a directory.
// An entry will *not* be created in the zip for the root folder -- children
// of src_dir will be at the root level of the created zip.
-bool Zip(const FilePath& src_dir, const FilePath& dest_file);
+// If |include_hidden_files| is true, files starting with "." are included.
+// Otherwise they are omitted.
+bool Zip(const FilePath& src_dir, const FilePath& dest_file,
+ bool include_hidden_files);
// Unzip the contents of zip_file into dest_dir.
bool Unzip(const FilePath& zip_file, const FilePath& dest_dir);