| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_INSTALLER_UTIL_LZMA_FILE_ALLOCATOR_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_LZMA_FILE_ALLOCATOR_H_ |
| 6 #define CHROME_INSTALLER_UTIL_LZMA_FILE_ALLOCATOR_H_ | 6 #define CHROME_INSTALLER_UTIL_LZMA_FILE_ALLOCATOR_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| 9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 10 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 11 #include "base/macros.h" | 13 #include "base/macros.h" |
| 12 #include "base/win/scoped_handle.h" | 14 #include "base/win/scoped_handle.h" |
| 13 | 15 |
| 14 extern "C" { | 16 extern "C" { |
| 15 #include "third_party/lzma_sdk/Types.h" | 17 #include "third_party/lzma_sdk/Types.h" |
| 16 } | 18 } |
| 17 | 19 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 44 static void SzFileFree(void* p, void* address); | 46 static void SzFileFree(void* p, void* address); |
| 45 | 47 |
| 46 base::FilePath mapped_file_path_; | 48 base::FilePath mapped_file_path_; |
| 47 base::File mapped_file_; | 49 base::File mapped_file_; |
| 48 base::win::ScopedHandle file_mapping_handle_; | 50 base::win::ScopedHandle file_mapping_handle_; |
| 49 | 51 |
| 50 DISALLOW_COPY_AND_ASSIGN(LzmaFileAllocator); | 52 DISALLOW_COPY_AND_ASSIGN(LzmaFileAllocator); |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 #endif // CHROME_INSTALLER_UTIL_LZMA_FILE_ALLOCATOR_H_ | 55 #endif // CHROME_INSTALLER_UTIL_LZMA_FILE_ALLOCATOR_H_ |
| OLD | NEW |