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

Side by Side Diff: third_party/lzma/v4_65/files/CPP/7zip/UI/Common/UpdateAction.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 // UpdateAction.h
2
3 #ifndef __UPDATE_ACTION_H
4 #define __UPDATE_ACTION_H
5
6 namespace NUpdateArchive {
7
8 namespace NPairState
9 {
10 const int kNumValues = 7;
11 enum EEnum
12 {
13 kNotMasked = 0,
14 kOnlyInArchive,
15 kOnlyOnDisk,
16 kNewInArchive,
17 kOldInArchive,
18 kSameFiles,
19 kUnknowNewerFiles
20 };
21 }
22 namespace NPairAction
23 {
24 enum EEnum
25 {
26 kIgnore = 0,
27 kCopy,
28 kCompress,
29 kCompressAsAnti
30 };
31 }
32 struct CActionSet
33 {
34 NPairAction::EEnum StateActions[NPairState::kNumValues];
35 bool NeedScanning() const
36 {
37 int i;
38 for (i = 0; i < NPairState::kNumValues; i++)
39 if (StateActions[i] == NPairAction::kCompress)
40 return true;
41 for (i = 1; i < NPairState::kNumValues; i++)
42 if (StateActions[i] != NPairAction::kIgnore)
43 return true;
44 return false;
45 }
46 };
47 extern const CActionSet kAddActionSet;
48 extern const CActionSet kUpdateActionSet;
49 extern const CActionSet kFreshActionSet;
50 extern const CActionSet kSynchronizeActionSet;
51 extern const CActionSet kDeleteActionSet;
52 };
53
54
55 #endif
56
57
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698