OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 SANDBOX_SRC_SANDBOX_NT_UTIL_H_ | 5 #ifndef SANDBOX_SRC_SANDBOX_NT_UTIL_H_ |
6 #define SANDBOX_SRC_SANDBOX_NT_UTIL_H_ | 6 #define SANDBOX_SRC_SANDBOX_NT_UTIL_H_ |
7 | 7 |
8 #include <intrin.h> | 8 #include <intrin.h> |
| 9 #include <stddef.h> |
9 #include <stdint.h> | 10 #include <stdint.h> |
10 | 11 |
11 #include "base/macros.h" | 12 #include "base/macros.h" |
12 #include "sandbox/win/src/nt_internals.h" | 13 #include "sandbox/win/src/nt_internals.h" |
13 #include "sandbox/win/src/sandbox_nt_types.h" | 14 #include "sandbox/win/src/sandbox_nt_types.h" |
14 | 15 |
15 // Placement new and delete to be used from ntdll interception code. | 16 // Placement new and delete to be used from ntdll interception code. |
16 void* __cdecl operator new(size_t size, sandbox::AllocationType type, | 17 void* __cdecl operator new(size_t size, sandbox::AllocationType type, |
17 void* near_to = NULL); | 18 void* near_to = NULL); |
18 void __cdecl operator delete(void* memory, sandbox::AllocationType type); | 19 void __cdecl operator delete(void* memory, sandbox::AllocationType type); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // Returns true if the file_rename_information structure is supported by our | 187 // Returns true if the file_rename_information structure is supported by our |
187 // rename handler. | 188 // rename handler. |
188 bool IsSupportedRenameCall(FILE_RENAME_INFORMATION* file_info, | 189 bool IsSupportedRenameCall(FILE_RENAME_INFORMATION* file_info, |
189 DWORD length, | 190 DWORD length, |
190 uint32_t file_info_class); | 191 uint32_t file_info_class); |
191 | 192 |
192 } // namespace sandbox | 193 } // namespace sandbox |
193 | 194 |
194 | 195 |
195 #endif // SANDBOX_SRC_SANDBOX_NT_UTIL_H__ | 196 #endif // SANDBOX_SRC_SANDBOX_NT_UTIL_H__ |
OLD | NEW |