Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: third_party/lzma/v4_65/files/CPP/7zip/UI/Common/ArchiveExtractCallback.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/lzma/v4_65/files/CPP/7zip/UI/Common/ArchiveExtractCallback.h
diff --git a/third_party/lzma/v4_65/files/CPP/7zip/UI/Common/ArchiveExtractCallback.h b/third_party/lzma/v4_65/files/CPP/7zip/UI/Common/ArchiveExtractCallback.h
deleted file mode 100644
index e895c54b06d1774e3fed720a8d25568c6fed81ad..0000000000000000000000000000000000000000
--- a/third_party/lzma/v4_65/files/CPP/7zip/UI/Common/ArchiveExtractCallback.h
+++ /dev/null
@@ -1,133 +0,0 @@
-// ArchiveExtractCallback.h
-
-#ifndef __ARCHIVEEXTRACTCALLBACK_H
-#define __ARCHIVEEXTRACTCALLBACK_H
-
-#include "../../Archive/IArchive.h"
-#include "IFileExtractCallback.h"
-
-#include "Common/MyString.h"
-#include "Common/MyCom.h"
-
-#include "../../Common/FileStreams.h"
-#include "../../Common/ProgressUtils.h"
-#include "../../IPassword.h"
-
-#include "ExtractMode.h"
-
-class CArchiveExtractCallback:
- public IArchiveExtractCallback,
- // public IArchiveVolumeExtractCallback,
- public ICryptoGetTextPassword,
- public ICompressProgressInfo,
- public CMyUnknownImp
-{
-public:
- MY_UNKNOWN_IMP2(ICryptoGetTextPassword, ICompressProgressInfo)
- // COM_INTERFACE_ENTRY(IArchiveVolumeExtractCallback)
-
- INTERFACE_IArchiveExtractCallback(;)
-
- STDMETHOD(SetRatioInfo)(const UInt64 *inSize, const UInt64 *outSize);
-
- // IArchiveVolumeExtractCallback
- // STDMETHOD(GetInStream)(const wchar_t *name, ISequentialInStream **inStream);
-
- // ICryptoGetTextPassword
- STDMETHOD(CryptoGetTextPassword)(BSTR *aPassword);
-
-private:
- CMyComPtr<IInArchive> _archiveHandler;
- CMyComPtr<IFolderArchiveExtractCallback> _extractCallback2;
- CMyComPtr<ICompressProgressInfo> _compressProgress;
- CMyComPtr<ICryptoGetTextPassword> _cryptoGetTextPassword;
- UString _directoryPath;
- NExtract::NPathMode::EEnum _pathMode;
- NExtract::NOverwriteMode::EEnum _overwriteMode;
-
- UString _filePath;
- UInt64 _position;
- bool _isSplit;
-
- UString _diskFilePath;
-
- bool _extractMode;
-
- bool WriteCTime;
- bool WriteATime;
- bool WriteMTime;
-
- bool _encrypted;
-
- struct CProcessedFileInfo
- {
- FILETIME CTime;
- FILETIME ATime;
- FILETIME MTime;
- UInt32 Attributes;
-
- bool CTimeDefined;
- bool ATimeDefined;
- bool MTimeDefined;
-
- bool IsDir;
- bool AttributesAreDefined;
- } _processedFileInfo;
-
- UInt64 _curSize;
- COutFileStream *_outFileStreamSpec;
- CMyComPtr<ISequentialOutStream> _outFileStream;
- UStringVector _removePathParts;
-
- UString _itemDefaultName;
- FILETIME _utcMTimeDefault;
- UInt32 _attributesDefault;
- bool _stdOutMode;
-
- void CreateComplexDirectory(const UStringVector &dirPathParts, UString &fullPath);
- HRESULT GetTime(int index, PROPID propID, FILETIME &filetime, bool &filetimeIsDefined);
-public:
- CArchiveExtractCallback():
- WriteCTime(true),
- WriteATime(true),
- WriteMTime(true),
- _multiArchives(false)
- {
- LocalProgressSpec = new CLocalProgress();
- _localProgress = LocalProgressSpec;
- }
-
- CLocalProgress *LocalProgressSpec;
- CMyComPtr<ICompressProgressInfo> _localProgress;
- UInt64 _packTotal;
- UInt64 _unpTotal;
-
- bool _multiArchives;
- UInt64 NumFolders;
- UInt64 NumFiles;
- UInt64 UnpackSize;
-
- void InitForMulti(bool multiArchives,
- NExtract::NPathMode::EEnum pathMode,
- NExtract::NOverwriteMode::EEnum overwriteMode)
- {
- _multiArchives = multiArchives; NumFolders = NumFiles = UnpackSize = 0;
- _pathMode = pathMode;
- _overwriteMode = overwriteMode;
- }
-
- void Init(
- IInArchive *archiveHandler,
- IFolderArchiveExtractCallback *extractCallback2,
- bool stdOutMode,
- const UString &directoryPath,
- const UStringVector &removePathParts,
- const UString &itemDefaultName,
- const FILETIME &utcMTimeDefault,
- UInt32 attributesDefault,
- UInt64 packSize);
-
- UInt64 _numErrors;
-};
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698