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/Windows/FileMapping.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/FileMapping.h
diff --git a/third_party/lzma/v4_65/files/CPP/Windows/FileMapping.h b/third_party/lzma/v4_65/files/CPP/Windows/FileMapping.h
deleted file mode 100644
index 25f5a519409255a7c5a9ed24639d2eda50d5287d..0000000000000000000000000000000000000000
--- a/third_party/lzma/v4_65/files/CPP/Windows/FileMapping.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Windows/FileMapping.h
-
-#ifndef __WINDOWS_FILEMAPPING_H
-#define __WINDOWS_FILEMAPPING_H
-
-#include "Windows/Handle.h"
-#include "Windows/Defs.h"
-
-namespace NWindows {
-// namespace NFile {
-// namespace NMapping {
-
-class CFileMapping: public CHandle
-{
-public:
- bool Create(HANDLE file, LPSECURITY_ATTRIBUTES attributes,
- DWORD protect, UINT64 maximumSize, LPCTSTR name)
- {
- _handle = ::CreateFileMapping(file, attributes,
- protect, DWORD(maximumSize >> 32), DWORD(maximumSize), name);
- return (_handle != NULL);
- }
-
- bool Open(DWORD desiredAccess, bool inheritHandle, LPCTSTR name)
- {
- _handle = ::OpenFileMapping(desiredAccess, BoolToBOOL(inheritHandle), name);
- return (_handle != NULL);
- }
-
- LPVOID MapViewOfFile(DWORD desiredAccess, UINT64 fileOffset,
- SIZE_T numberOfBytesToMap)
- {
- return ::MapViewOfFile(_handle, desiredAccess,
- DWORD(fileOffset >> 32), DWORD(fileOffset), numberOfBytesToMap);
- }
-
- LPVOID MapViewOfFileEx(DWORD desiredAccess, UINT64 fileOffset,
- SIZE_T numberOfBytesToMap, LPVOID baseAddress)
- {
- return ::MapViewOfFileEx(_handle, desiredAccess,
- DWORD(fileOffset >> 32), DWORD(fileOffset),
- numberOfBytesToMap, baseAddress);
- }
-
-
-};
-
-}
-
-#endif
« no previous file with comments | « third_party/lzma/v4_65/files/CPP/Windows/FileIO.cpp ('k') | third_party/lzma/v4_65/files/CPP/Windows/FileMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698