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

Side by Side Diff: third_party/lzma/v4_65/files/CPP/7zip/UI/Console/UpdateCallbackConsole.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 unified diff | Download patch
OLDNEW
(Empty)
1 // UpdateCallbackConsole.h
2
3 #ifndef __UPDATECALLBACKCONSOLE_H
4 #define __UPDATECALLBACKCONSOLE_H
5
6 #include "Common/MyString.h"
7 #include "Common/StdOutStream.h"
8 #include "PercentPrinter.h"
9 #include "../Common/Update.h"
10
11 class CUpdateCallbackConsole: public IUpdateCallbackUI2
12 {
13 CPercentPrinter m_PercentPrinter;
14 bool m_NeedBeClosed;
15 bool m_NeedNewLine;
16
17 bool m_WarningsMode;
18
19 CStdOutStream *OutStream;
20 public:
21 bool EnablePercents;
22 bool StdOutMode;
23
24 #ifndef _NO_CRYPTO
25 bool PasswordIsDefined;
26 UString Password;
27 bool AskPassword;
28 #endif
29
30 CUpdateCallbackConsole():
31 m_PercentPrinter(1 << 16),
32 #ifndef _NO_CRYPTO
33 PasswordIsDefined(false),
34 AskPassword(false),
35 #endif
36 StdOutMode(false),
37 EnablePercents(true),
38 m_WarningsMode(false)
39 {}
40
41 ~CUpdateCallbackConsole() { Finilize(); }
42 void Init(CStdOutStream *outStream)
43 {
44 m_NeedBeClosed = false;
45 m_NeedNewLine = false;
46 FailedFiles.Clear();
47 FailedCodes.Clear();
48 OutStream = outStream;
49 m_PercentPrinter.OutStream = outStream;
50 }
51
52 INTERFACE_IUpdateCallbackUI2(;)
53
54 UStringVector FailedFiles;
55 CRecordVector<HRESULT> FailedCodes;
56
57 UStringVector CantFindFiles;
58 CRecordVector<HRESULT> CantFindCodes;
59 };
60
61 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698