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

Side by Side Diff: third_party/lzma/v4_65/files/CPP/7zip/Common/LockedStream.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 // LockedStream.h
2
3 #ifndef __LOCKEDSTREAM_H
4 #define __LOCKEDSTREAM_H
5
6 #include "../../Windows/Synchronization.h"
7 #include "../../Common/MyCom.h"
8 #include "../IStream.h"
9
10 class CLockedInStream
11 {
12 CMyComPtr<IInStream> _stream;
13 NWindows::NSynchronization::CCriticalSection _criticalSection;
14 public:
15 void Init(IInStream *stream)
16 { _stream = stream; }
17 HRESULT Read(UInt64 startPos, void *data, UInt32 size, UInt32 *processedSize);
18 };
19
20 class CLockedSequentialInStreamImp:
21 public ISequentialInStream,
22 public CMyUnknownImp
23 {
24 CLockedInStream *_lockedInStream;
25 UInt64 _pos;
26 public:
27 void Init(CLockedInStream *lockedInStream, UInt64 startPos)
28 {
29 _lockedInStream = lockedInStream;
30 _pos = startPos;
31 }
32
33 MY_UNKNOWN_IMP
34
35 STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize);
36 };
37
38 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698