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

Unified Diff: third_party/lzma/v4_65/files/CPP/Windows/Handle.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/Windows/Handle.h
diff --git a/third_party/lzma/v4_65/files/CPP/Windows/Handle.h b/third_party/lzma/v4_65/files/CPP/Windows/Handle.h
deleted file mode 100644
index 0791b4acdcab22819b11a20471b89f98419f27d3..0000000000000000000000000000000000000000
--- a/third_party/lzma/v4_65/files/CPP/Windows/Handle.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Windows/Handle.h
-
-#ifndef __WINDOWS_HANDLE_H
-#define __WINDOWS_HANDLE_H
-
-namespace NWindows {
-
-class CHandle
-{
-protected:
- HANDLE _handle;
-public:
- operator HANDLE() { return _handle; }
- CHandle(): _handle(NULL) {}
- ~CHandle() { Close(); }
- bool Close()
- {
- if (_handle == NULL)
- return true;
- if (!::CloseHandle(_handle))
- return false;
- _handle = NULL;
- return true;
- }
- void Attach(HANDLE handle)
- { _handle = handle; }
- HANDLE Detach()
- {
- HANDLE handle = _handle;
- _handle = NULL;
- return handle;
- }
-};
-
-}
-
-#endif
« no previous file with comments | « third_party/lzma/v4_65/files/CPP/Windows/FileName.cpp ('k') | third_party/lzma/v4_65/files/CPP/Windows/MemoryLock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698