Searched refs:zip_file (Results 1 - 8 of 8) sorted by relevance

/external/chromium/chrome/common/
H A Dzip.h19 // Unzip the contents of zip_file into dest_dir.
20 bool Unzip(const FilePath& zip_file, const FilePath& dest_dir);
H A Dzip.cc24 static bool ExtractCurrentFile(unzFile zip_file, argument
28 int err = unzGetCurrentFileInfo(zip_file, &file_info, filename_inzip,
35 err = unzOpenCurrentFile(zip_file);
81 num_bytes = unzReadCurrentFile(zip_file, buf, kZipBufSize);
99 err = unzCloseCurrentFile(zip_file);
101 unzCloseCurrentFile(zip_file); // Don't lose the original error code.
168 unzFile zip_file = unzOpen(src_file_str.c_str()); local
171 unzFile zip_file = unzOpen2(src_file_str.c_str(), &zip_funcs); local
173 if (!zip_file) {
179 err = unzGetGlobalInfo(zip_file,
204 AddFileToZip(zipFile zip_file, const FilePath& src_dir) argument
229 AddEntryToZip(zipFile zip_file, const FilePath& path, const FilePath& root_path) argument
278 zipFile zip_file = zipOpen(dest_file_str.c_str(), APPEND_STATUS_CREATE); local
281 zipFile zip_file = zipOpen2(dest_file_str.c_str(), APPEND_STATUS_CREATE, local
[all...]
H A Dzip_unittest.cc126 FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); local
128 EXPECT_TRUE(Zip(src_dir, zip_file, true));
129 TestUnzipFile(zip_file, true);
139 FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); local
141 EXPECT_TRUE(Zip(src_dir, zip_file, false));
142 TestUnzipFile(zip_file, false);
/external/chromium/chrome/browser/chromeos/cros/
H A Dsyslogs_library.cc36 void LoadCompressedLogs(const FilePath& zip_file,
100 FilePath zip_file; local
101 if (compress_logs && !file_util::CreateTemporaryFile(&zip_file)) {
109 compress_logs ? &zip_file : NULL,
116 LoadCompressedLogs(zip_file, zip_content);
117 file_util::Delete(zip_file, false);
126 void SyslogsLibraryImpl::LoadCompressedLogs(const FilePath& zip_file, argument
129 if (!file_util::ReadFileToString(zip_file, zip_content)) {
131 zip_file.value().c_str();
/external/webkit/Tools/Scripts/webkitpy/common/system/
H A Dautoinstall.py266 def _extract_all(self, zip_file, target_dir):
267 self._log_transfer("Extracting zip file...", zip_file, target_dir)
271 for name in zip_file.namelist():
274 for name in zip_file.namelist():
297 outfile.write(zip_file.read(name))
310 zip_file = zipfile.ZipFile(path, "r")
318 self._extract_all(zip_file, scratch_dir)
320 zip_file.close()
/external/webkit/Tools/Scripts/webkitpy/common/net/
H A Dtestoutputset.py33 def __init__(self, name, platform, zip_file, **kwargs):
36 self._zip_file = zip_file
/external/chromium/chrome/common/extensions/docs/build/
H A Ddirectory.py660 zip_file = zipfile.ZipFile(zip_path, 'w')
672 zip_file.write(abspath, relpath)
674 info = zip_file.getinfo(zip_manifest_path)
679 zip_file.close()
/external/webkit/Tools/Scripts/webkitpy/layout_tests/
H A Drebaseline_chromium_webkit_tests.py344 def _extract_and_add_new_baselines(self, zip_file):
349 zip_namelist = zip_file.namelist()
360 self._extract_and_add_new_baseline(test, zip_file)
362 zip_file.close()
366 def _extract_and_add_new_baseline(self, test, zip_file):
373 if not archive_test_name in zip_file.namelist():
380 temp_name = self._extract_from_zip_to_tempfile(zip_file, archive_test_name)
420 def _extract_from_zip_to_tempfile(self, zip_file, filename):
421 """Extracts |filename| from |zip_file|, a ZipFileSet. Returns the full
423 data = zip_file
[all...]

Completed in 111 milliseconds