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

Unified Diff: sandbox/win/src/process_thread_policy.h

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/win/src/process_thread_interception.cc ('k') | sandbox/win/src/process_thread_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/process_thread_policy.h
diff --git a/sandbox/win/src/process_thread_policy.h b/sandbox/win/src/process_thread_policy.h
index 2871dcaa276b3b660a1f202487644600e26b21da..a66b52eb2f03801eb44c06e3a7366c34fb8933c0 100644
--- a/sandbox/win/src/process_thread_policy.h
+++ b/sandbox/win/src/process_thread_policy.h
@@ -5,11 +5,12 @@
#ifndef SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
#define SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
+#include <stdint.h>
+
#include <string>
#include "sandbox/win/src/policy_low_level.h"
-#include "base/basictypes.h"
#include "base/strings/string16.h"
#include "sandbox/win/src/crosscall_server.h"
#include "sandbox/win/src/sandbox_policy.h"
@@ -36,16 +37,16 @@ class ProcessPolicy {
// is the thread_id to be opened.
// The function returns the return value of NtOpenThread.
static NTSTATUS OpenThreadAction(const ClientInfo& client_info,
- uint32 desired_access,
- uint32 thread_id,
+ uint32_t desired_access,
+ uint32_t thread_id,
HANDLE* handle);
// Opens the process id passed in and returns the duplicated handle to
// the child. We only allow the child processes to open themselves. Any other
// pid open is denied.
static NTSTATUS OpenProcessAction(const ClientInfo& client_info,
- uint32 desired_access,
- uint32 process_id,
+ uint32_t desired_access,
+ uint32_t process_id,
HANDLE* handle);
// Opens the token associated with the process and returns the duplicated
@@ -53,7 +54,7 @@ class ProcessPolicy {
// token (using ::GetCurrentProcess()).
static NTSTATUS OpenProcessTokenAction(const ClientInfo& client_info,
HANDLE process,
- uint32 desired_access,
+ uint32_t desired_access,
HANDLE* handle);
// Opens the token associated with the process and returns the duplicated
@@ -61,8 +62,8 @@ class ProcessPolicy {
// token (using ::GetCurrentProcess()).
static NTSTATUS OpenProcessTokenExAction(const ClientInfo& client_info,
HANDLE process,
- uint32 desired_access,
- uint32 attributes,
+ uint32_t desired_access,
+ uint32_t attributes,
HANDLE* handle);
// Processes a 'CreateProcessW()' request from the target.
« no previous file with comments | « sandbox/win/src/process_thread_interception.cc ('k') | sandbox/win/src/process_thread_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698