| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_COMMON_ZIP_H_ | 5 #ifndef CHROME_COMMON_ZIP_H_ |
| 6 #define CHROME_COMMON_ZIP_H_ | 6 #define CHROME_COMMON_ZIP_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 12 | 10 |
| 13 // Zip the contents of src_dir into dest_file. src_path must be a directory. | 11 // Zip the contents of src_dir into dest_file. src_path must be a directory. |
| 14 // An entry will *not* be created in the zip for the root folder -- children | 12 // An entry will *not* be created in the zip for the root folder -- children |
| 15 // of src_dir will be at the root level of the created zip. | 13 // of src_dir will be at the root level of the created zip. |
| 16 // If |include_hidden_files| is true, files starting with "." are included. | 14 // If |include_hidden_files| is true, files starting with "." are included. |
| 17 // Otherwise they are omitted. | 15 // Otherwise they are omitted. |
| 18 bool Zip(const FilePath& src_dir, const FilePath& dest_file, | 16 bool Zip(const FilePath& src_dir, const FilePath& dest_file, |
| 19 bool include_hidden_files); | 17 bool include_hidden_files); |
| 20 | 18 |
| 21 // Unzip the contents of zip_file into dest_dir. | 19 // Unzip the contents of zip_file into dest_dir. |
| 22 bool Unzip(const FilePath& zip_file, const FilePath& dest_dir); | 20 bool Unzip(const FilePath& zip_file, const FilePath& dest_dir); |
| 23 | 21 |
| 24 #endif // CHROME_COMMON_ZIP_H_ | 22 #endif // CHROME_COMMON_ZIP_H_ |
| OLD | NEW |