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

Unified Diff: sandbox/win/src/filesystem_dispatcher.cc

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/filesystem_dispatcher.h ('k') | sandbox/win/src/filesystem_interception.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/filesystem_dispatcher.cc
diff --git a/sandbox/win/src/filesystem_dispatcher.cc b/sandbox/win/src/filesystem_dispatcher.cc
index d4ef79637c8578b5e4c99abee448dfcfbb5a618b..6f96be2402c3ca13b3e772833c420e9873c7b712 100644
--- a/sandbox/win/src/filesystem_dispatcher.cc
+++ b/sandbox/win/src/filesystem_dispatcher.cc
@@ -4,6 +4,8 @@
#include "sandbox/win/src/filesystem_dispatcher.h"
+#include <stdint.h>
+
#include "sandbox/win/src/crosscall_client.h"
#include "sandbox/win/src/filesystem_interception.h"
#include "sandbox/win/src/filesystem_policy.h"
@@ -86,12 +88,12 @@ bool FilesystemDispatcher::SetupService(InterceptionManager* manager,
bool FilesystemDispatcher::NtCreateFile(IPCInfo* ipc,
base::string16* name,
- uint32 attributes,
- uint32 desired_access,
- uint32 file_attributes,
- uint32 share_access,
- uint32 create_disposition,
- uint32 create_options) {
+ uint32_t attributes,
+ uint32_t desired_access,
+ uint32_t file_attributes,
+ uint32_t share_access,
+ uint32_t create_disposition,
+ uint32_t create_options) {
if (!PreProcessName(name)) {
// The path requested might contain a reparse point.
ipc->return_info.nt_status = STATUS_ACCESS_DENIED;
@@ -100,7 +102,7 @@ bool FilesystemDispatcher::NtCreateFile(IPCInfo* ipc,
const wchar_t* filename = name->c_str();
- uint32 broker = TRUE;
+ uint32_t broker = TRUE;
CountedParameterSet<OpenFile> params;
params[OpenFile::NAME] = ParamPickerMake(filename);
params[OpenFile::ACCESS] = ParamPickerMake(desired_access);
@@ -134,10 +136,10 @@ bool FilesystemDispatcher::NtCreateFile(IPCInfo* ipc,
bool FilesystemDispatcher::NtOpenFile(IPCInfo* ipc,
base::string16* name,
- uint32 attributes,
- uint32 desired_access,
- uint32 share_access,
- uint32 open_options) {
+ uint32_t attributes,
+ uint32_t desired_access,
+ uint32_t share_access,
+ uint32_t open_options) {
if (!PreProcessName(name)) {
// The path requested might contain a reparse point.
ipc->return_info.nt_status = STATUS_ACCESS_DENIED;
@@ -146,8 +148,8 @@ bool FilesystemDispatcher::NtOpenFile(IPCInfo* ipc,
const wchar_t* filename = name->c_str();
- uint32 broker = TRUE;
- uint32 create_disposition = FILE_OPEN;
+ uint32_t broker = TRUE;
+ uint32_t create_disposition = FILE_OPEN;
CountedParameterSet<OpenFile> params;
params[OpenFile::NAME] = ParamPickerMake(filename);
params[OpenFile::ACCESS] = ParamPickerMake(desired_access);
@@ -179,7 +181,7 @@ bool FilesystemDispatcher::NtOpenFile(IPCInfo* ipc,
bool FilesystemDispatcher::NtQueryAttributesFile(IPCInfo* ipc,
base::string16* name,
- uint32 attributes,
+ uint32_t attributes,
CountedBuffer* info) {
if (sizeof(FILE_BASIC_INFORMATION) != info->Size())
return false;
@@ -190,7 +192,7 @@ bool FilesystemDispatcher::NtQueryAttributesFile(IPCInfo* ipc,
return true;
}
- uint32 broker = TRUE;
+ uint32_t broker = TRUE;
const wchar_t* filename = name->c_str();
CountedParameterSet<FileName> params;
params[FileName::NAME] = ParamPickerMake(filename);
@@ -219,7 +221,7 @@ bool FilesystemDispatcher::NtQueryAttributesFile(IPCInfo* ipc,
bool FilesystemDispatcher::NtQueryFullAttributesFile(IPCInfo* ipc,
base::string16* name,
- uint32 attributes,
+ uint32_t attributes,
CountedBuffer* info) {
if (sizeof(FILE_NETWORK_OPEN_INFORMATION) != info->Size())
return false;
@@ -230,7 +232,7 @@ bool FilesystemDispatcher::NtQueryFullAttributesFile(IPCInfo* ipc,
return true;
}
- uint32 broker = TRUE;
+ uint32_t broker = TRUE;
const wchar_t* filename = name->c_str();
CountedParameterSet<FileName> params;
params[FileName::NAME] = ParamPickerMake(filename);
@@ -263,8 +265,8 @@ bool FilesystemDispatcher::NtSetInformationFile(IPCInfo* ipc,
HANDLE handle,
CountedBuffer* status,
CountedBuffer* info,
- uint32 length,
- uint32 info_class) {
+ uint32_t length,
+ uint32_t info_class) {
if (sizeof(IO_STATUS_BLOCK) != status->Size())
return false;
if (length != info->Size())
@@ -285,7 +287,7 @@ bool FilesystemDispatcher::NtSetInformationFile(IPCInfo* ipc,
return true;
}
- uint32 broker = TRUE;
+ uint32_t broker = TRUE;
const wchar_t* filename = name.c_str();
CountedParameterSet<FileName> params;
params[FileName::NAME] = ParamPickerMake(filename);
« no previous file with comments | « sandbox/win/src/filesystem_dispatcher.h ('k') | sandbox/win/src/filesystem_interception.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698