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

Side by Side Diff: ipc/ipc_platform_file.cc

Issue 1546533002: Switch to standard integer types in ipc/. (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 | « ipc/ipc_platform_file.h ('k') | ipc/ipc_send_fds_test.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) 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 #include "build/build_config.h"
5 #include "ipc/ipc_platform_file.h" 6 #include "ipc/ipc_platform_file.h"
6 7
7 #if defined(OS_POSIX) 8 #if defined(OS_POSIX)
8 #include <unistd.h> 9 #include <unistd.h>
9 #endif 10 #endif
10 11
11 namespace IPC { 12 namespace IPC {
12 13
13 PlatformFileForTransit GetFileHandleForProcess(base::PlatformFile handle, 14 PlatformFileForTransit GetFileHandleForProcess(base::PlatformFile handle,
14 base::ProcessHandle process, 15 base::ProcessHandle process,
(...skipping 29 matching lines...) Expand all
44 #endif 45 #endif
45 return out_handle; 46 return out_handle;
46 } 47 }
47 48
48 PlatformFileForTransit TakeFileHandleForProcess(base::File file, 49 PlatformFileForTransit TakeFileHandleForProcess(base::File file,
49 base::ProcessHandle process) { 50 base::ProcessHandle process) {
50 return GetFileHandleForProcess(file.TakePlatformFile(), process, true); 51 return GetFileHandleForProcess(file.TakePlatformFile(), process, true);
51 } 52 }
52 53
53 } // namespace IPC 54 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_platform_file.h ('k') | ipc/ipc_send_fds_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698