summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/lzma_util.h
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-10 21:08:12 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-10 21:08:12 +0000
commitc3279126dedc5def022e3b456f1d2c9a9d8d6cdc (patch)
tree1cbba7fe22fb9d29b30be52502ae9ff7ef1cc900 /chrome/installer/util/lzma_util.h
parent3e40c8893a8e0061f68a05c483eb2ec047fa0510 (diff)
downloadchromium_src-c3279126dedc5def022e3b456f1d2c9a9d8d6cdc.zip
chromium_src-c3279126dedc5def022e3b456f1d2c9a9d8d6cdc.tar.gz
chromium_src-c3279126dedc5def022e3b456f1d2c9a9d8d6cdc.tar.bz2
Keep a track of which directories are being created when expanding the installation archive.
This is mostly to keep the noise level in the log down (the "directory already exists" entries were over half of the verbose log). TEST=The only change should be that the verbose installer log should be smaller. BUG=none Review URL: http://codereview.chromium.org/6484009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/lzma_util.h')
-rw-r--r--chrome/installer/util/lzma_util.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/installer/util/lzma_util.h b/chrome/installer/util/lzma_util.h
index 765bc19..86523e6 100644
--- a/chrome/installer/util/lzma_util.h
+++ b/chrome/installer/util/lzma_util.h
@@ -6,11 +6,15 @@
#define CHROME_INSTALLER_UTIL_LZMA_UTIL_H_
#pragma once
-#include <string>
#include <windows.h>
+#include <set>
+#include <string>
+
#include "base/basictypes.h"
+class FilePath;
+
// This is a utility class that acts as a wrapper around LZMA SDK library
class LzmaUtil {
public:
@@ -36,8 +40,12 @@ class LzmaUtil {
void CloseArchive();
+ protected:
+ bool CreateDirectory(const FilePath& dir);
+
private:
HANDLE archive_handle_;
+ std::set<std::wstring> directories_created_;
DISALLOW_COPY_AND_ASSIGN(LzmaUtil);
};