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

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

Issue 1539423002: Revert of Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« 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 #include <stddef.h>
11 #include <stdint.h> 10 #include <stdint.h>
12 11
13 #include <memory> 12 #include <memory>
14 13
15 #include "base/macros.h" 14 #include "base/basictypes.h"
16 #include "sandbox/win/src/internal_types.h" 15 #include "sandbox/win/src/internal_types.h"
17 #include "sandbox/win/src/sandbox_types.h" 16 #include "sandbox/win/src/sandbox_types.h"
18 17
19 // Increases |value| until there is no need for padding given an int64_t 18 // Increases |value| until there is no need for padding given an int64_t
20 // alignment. Returns the increased value. 19 // alignment. Returns the increased value.
21 inline uint32_t Align(uint32_t value) { 20 inline uint32_t Align(uint32_t value) {
22 uint32_t alignment = sizeof(int64_t); 21 uint32_t alignment = sizeof(int64_t);
23 return ((value + alignment - 1) / alignment) * alignment; 22 return ((value + alignment - 1) / alignment) * alignment;
24 } 23 }
25 24
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 DISALLOW_COPY_AND_ASSIGN(ActualCallParams); 277 DISALLOW_COPY_AND_ASSIGN(ActualCallParams);
279 }; 278 };
280 279
281 static_assert(sizeof(ActualCallParams<1, 1024>) == 1024, "bad size buffer"); 280 static_assert(sizeof(ActualCallParams<1, 1024>) == 1024, "bad size buffer");
282 static_assert(sizeof(ActualCallParams<2, 1024>) == 1024, "bad size buffer"); 281 static_assert(sizeof(ActualCallParams<2, 1024>) == 1024, "bad size buffer");
283 static_assert(sizeof(ActualCallParams<3, 1024>) == 1024, "bad size buffer"); 282 static_assert(sizeof(ActualCallParams<3, 1024>) == 1024, "bad size buffer");
284 283
285 } // namespace sandbox 284 } // namespace sandbox
286 285
287 #endif // SANDBOX_SRC_CROSSCALL_PARAMS_H__ 286 #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