blob: e186fd65cf4eaca032f4c95bd1f0ee267da96a60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// 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_INSTALLER_UTIL_LZMA_UTIL_H__
#define CHROME_INSTALLER_UTIL_LZMA_UTIL_H__
#include <string>
#include <windows.h>
#include "base/basictypes.h"
namespace installer {
// This is a utility class that acts as a wrapper around LZMA SDK library
class LzmaUtil {
public:
LzmaUtil();
~LzmaUtil();
DWORD OpenArchive(const std::wstring& archivePath);
// Unpacks the archive to the given location
DWORD UnPack(const std::wstring& location);
void CloseArchive();
private:
HANDLE archive_handle_;
DISALLOW_EVIL_CONSTRUCTORS(LzmaUtil);
};
} // namespace installer
#endif // CHROME_INSTALLER_UTIL_LZMA_UTIL_H__
|