#ifndef CHROME_INSTALLER_UTIL_LZMA_UTIL_H_
#define CHROME_INSTALLER_UTIL_LZMA_UTIL_H_
#include <windows.h>
#include <set>
#include <string>
#include "base/basictypes.h"
namespace base {
class FilePath;
}
class LzmaUtil {
public:
static int32 UnPackArchive(const std::wstring& archive,
const std::wstring& output_dir,
std::wstring* output_file);
LzmaUtil();
~LzmaUtil();
DWORD OpenArchive(const std::wstring& archivePath);
DWORD UnPack(const std::wstring& location);
DWORD UnPack(const std::wstring& location,
std::wstring* output_file);
void CloseArchive();
protected:
bool CreateDirectory(const base::FilePath& dir);
private:
HANDLE archive_handle_;
std::set<std::wstring> directories_created_;
DISALLOW_COPY_AND_ASSIGN(LzmaUtil);
};
#endif