summaryrefslogtreecommitdiffstats
path: root/chrome/common/unzip.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/unzip.h')
-rw-r--r--chrome/common/unzip.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/common/unzip.h b/chrome/common/unzip.h
new file mode 100644
index 0000000..fc9aa64
--- /dev/null
+++ b/chrome/common/unzip.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_UNZIP_H_
+#define CHROME_COMMON_UNZIP_H_
+
+#include <vector>
+
+#include "base/file_path.h"
+
+// Unzip the contents of zip_file into dest_dir. The complete paths of all
+// created files and directories are added to files if it is non-NULL.
+// Returns true on success. Does not clean up dest_dir on failure.
+// Does not support encrypted or password protected zip files.
+bool Unzip(const FilePath& zip_file, const FilePath& dest_dir,
+ std::vector<FilePath>* files);
+
+#endif // CHROME_COMMON_UNZIP_H_
+