summaryrefslogtreecommitdiffstats
path: root/chrome/common/zip.h
Commit message (Collapse)AuthorAgeFilesLines
* [components] Make zip a component so that src/chromeos can use it.phajdan.jr@chromium.org2013-04-081-44/+0
| | | | | | | | BUG=180711 Review URL: https://codereview.chromium.org/13257004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192843 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-241-1/+1
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* Use base namespace for FilePath in chrome/common and content/common.brettw@chromium.org2013-02-071-6/+7
| | | | | | Review URL: https://codereview.chromium.org/12210058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181350 0039d316-1c4b-4281-b951-d872f2087c98
* Change zip::ZipFiles() function to take a file descriptor for the dest zip file.hshi@chromium.org2012-11-211-5/+7
| | | | | | | | | | | | | | | | | | | | We want the browser process to validate the destination zip file path to make sure it is not asked to overwrite an existing file or to a directory that could cause security problems. By replacing the destination file path |dest_file| with a file descriptor |dest_fd|: this CL allows the dest file to be opened and owned by the browser process then passed via IPC to utility process. There is no need to have a duplicate function that takes destination file path. The new function will be used for CrOS only. BUG=138359 TEST=builds, passes unit tests. See also https://codereview.chromium.org/11392005/ for relevant discussion. Review URL: https://chromiumcodereview.appspot.com/11413100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169090 0039d316-1c4b-4281-b951-d872f2087c98
* Add zip::ZipFiles() function which creates a zip file for a specified list ↵hshi@chromium.org2012-11-091-2/+9
| | | | | | | | | | | | | | | | | | of input files. Also added unit test for ZipFiles(). This is to permit caller to specify an arbitrary subset of file contents under a directory to be included in the created zip file. Although it is possible to achieve this with the existing function ZipWithFilterCallback(), the required filter callback function would be quite messy and inefficient. BUG=138359 TEST=unit_tests, manual tests Review URL: https://chromiumcodereview.appspot.com/11392005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166982 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-111-1/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* Put zip functions into 'zip' namespace.satorux@chromium.org2011-10-261-2/+7
| | | | | | | | | | | | | Along the way, rename one of the two versions of Zip() to ZipWithFilterCallback() per the C++ style guide that prohibits function overloading like this. TEST=chrome and tests build BUG=none Review URL: http://codereview.chromium.org/8381027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107307 0039d316-1c4b-4281-b951-d872f2087c98
* Improve extension packaging by filtering more kinds of files.miket@chromium.org2011-09-071-2/+10
| | | | | | | | | | | | When packaging extensions, ignore files with Windows hidden-file attribute, as well as the special OS X file __MACOSX. These are in addition to the existing dotfile exclusion rule. BUG=27840 TEST=added chrome/browser/extensions/extension_creator_filter_unittest.cc Review URL: http://codereview.chromium.org/7839010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100039 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unneeded headers from base/ (part 6)thestig@chromium.org2010-08-191-1/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3093013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56641 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove "obviously" unneeded standard C++ library #includes.viettrungluu@chromium.org2010-08-151-3/+1
| | | | | | | | | BUG=none TEST=builds Review URL: http://codereview.chromium.org/3179017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56171 0039d316-1c4b-4281-b951-d872f2087c98
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-261-0/+1
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* Filter out hidden files, both when loading extensions and whenaa@chromium.org2009-10-281-1/+4
| | | | | | | | | | | | | 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
* Implements a Zip() utility function. Refactor existingaa@chromium.org2009-06-011-0/+20
Unzip-relatedness into shared locations. Review URL: http://codereview.chromium.org/118028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17305 0039d316-1c4b-4281-b951-d872f2087c98