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

Side by Side Diff: sandbox/win/src/crosscall_params.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/crosscall_client.h ('k') | sandbox/win/src/crosscall_server.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CROSSCALL_PARAMS_H__ 5 #ifndef SANDBOX_SRC_CROSSCALL_PARAMS_H__
6 #define SANDBOX_SRC_CROSSCALL_PARAMS_H__ 6 #define SANDBOX_SRC_CROSSCALL_PARAMS_H__
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <lmaccess.h> 9 #include <lmaccess.h>
10 10
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "sandbox/src/internal_types.h" 14 #include "sandbox/win/src/internal_types.h"
15 #include "sandbox/src/sandbox_types.h" 15 #include "sandbox/win/src/sandbox_types.h"
16 16
17 namespace { 17 namespace {
18 18
19 // Increases |value| until there is no need for padding given an int64 19 // Increases |value| until there is no need for padding given an int64
20 // alignment. Returns the increased value. 20 // alignment. Returns the increased value.
21 uint32 Align(uint32 value) { 21 uint32 Align(uint32 value) {
22 uint32 alignment = sizeof(int64); 22 uint32 alignment = sizeof(int64);
23 return ((value + alignment - 1) / alignment) * alignment; 23 return ((value + alignment - 1) / alignment) * alignment;
24 } 24 }
25 25
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 DISALLOW_COPY_AND_ASSIGN(ActualCallParams); 284 DISALLOW_COPY_AND_ASSIGN(ActualCallParams);
285 }; 285 };
286 286
287 COMPILE_ASSERT(sizeof(ActualCallParams<1, 1024>) == 1024, bad_size_buffer); 287 COMPILE_ASSERT(sizeof(ActualCallParams<1, 1024>) == 1024, bad_size_buffer);
288 COMPILE_ASSERT(sizeof(ActualCallParams<2, 1024>) == 1024, bad_size_buffer); 288 COMPILE_ASSERT(sizeof(ActualCallParams<2, 1024>) == 1024, bad_size_buffer);
289 COMPILE_ASSERT(sizeof(ActualCallParams<3, 1024>) == 1024, bad_size_buffer); 289 COMPILE_ASSERT(sizeof(ActualCallParams<3, 1024>) == 1024, bad_size_buffer);
290 290
291 } // namespace sandbox 291 } // namespace sandbox
292 292
293 #endif // SANDBOX_SRC_CROSSCALL_PARAMS_H__ 293 #endif // SANDBOX_SRC_CROSSCALL_PARAMS_H__
OLDNEW
« no previous file with comments | « sandbox/win/src/crosscall_client.h ('k') | sandbox/win/src/crosscall_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698