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

Side by Side Diff: sandbox/win/src/sandbox_nt_util.h

Issue 10689170: Move the Windows sandbox to sandbox/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of tree (properly this time) Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « sandbox/win/src/sandbox_nt_types.h ('k') | sandbox/win/src/sandbox_nt_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "sandbox/src/nt_internals.h" 9 #include "sandbox/win/src/nt_internals.h"
10 #include "sandbox/src/sandbox_nt_types.h" 10 #include "sandbox/win/src/sandbox_nt_types.h"
11 11
12 // Placement new and delete to be used from ntdll interception code. 12 // Placement new and delete to be used from ntdll interception code.
13 void* __cdecl operator new(size_t size, sandbox::AllocationType type, 13 void* __cdecl operator new(size_t size, sandbox::AllocationType type,
14 void* near_to = NULL); 14 void* near_to = NULL);
15 void __cdecl operator delete(void* memory, sandbox::AllocationType type); 15 void __cdecl operator delete(void* memory, sandbox::AllocationType type);
16 // Add operator delete that matches the placement form of the operator new 16 // Add operator delete that matches the placement form of the operator new
17 // above. This is required by compiler to generate code to call operator delete 17 // above. This is required by compiler to generate code to call operator delete
18 // in case the object's constructor throws an exception. 18 // in case the object's constructor throws an exception.
19 // See http://msdn.microsoft.com/en-us/library/cxdxz3x6.aspx 19 // See http://msdn.microsoft.com/en-us/library/cxdxz3x6.aspx
20 void __cdecl operator delete(void* memory, sandbox::AllocationType type, 20 void __cdecl operator delete(void* memory, sandbox::AllocationType type,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // Returns true if the file_rename_information structure is supported by our 165 // Returns true if the file_rename_information structure is supported by our
166 // rename handler. 166 // rename handler.
167 bool IsSupportedRenameCall(FILE_RENAME_INFORMATION* file_info, DWORD length, 167 bool IsSupportedRenameCall(FILE_RENAME_INFORMATION* file_info, DWORD length,
168 uint32 file_info_class); 168 uint32 file_info_class);
169 169
170 } // namespace sandbox 170 } // namespace sandbox
171 171
172 172
173 #endif // SANDBOX_SRC_SANDBOX_NT_UTIL_H__ 173 #endif // SANDBOX_SRC_SANDBOX_NT_UTIL_H__
OLDNEW
« no previous file with comments | « sandbox/win/src/sandbox_nt_types.h ('k') | sandbox/win/src/sandbox_nt_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698