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

Side by Side Diff: ipc/ipc_platform_file.h

Issue 397014: Revert 31875 to see whether it fixes reliability bot. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | « ipc/ipc.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IPC_IPC_PLATFORM_FILE_H_
6 #define IPC_IPC_PLATFORM_FILE_H_
7
8 #include "base/basictypes.h"
9
10 #include "base/platform_file.h"
11
12 #if defined(OS_POSIX)
13 #include "base/file_descriptor_posix.h"
14 #endif
15
16 namespace IPC {
17
18 #if defined(OS_WIN)
19 typedef base::PlatformFile PlatformFileForTransit;
20 #elif defined(OS_POSIX)
21 typedef base::FileDescriptor PlatformFileForTransit;
22 #endif
23
24 inline base::PlatformFile PlatformFileForTransitToPlatformFile(
25 const PlatformFileForTransit& transit) {
26 #if defined(OS_WIN)
27 return transit;
28 #elif defined(OS_POSIX)
29 return transit.fd;
30 #endif
31 }
32
33 } // namespace IPC
34
35 #endif // IPC_IPC_PLATFORM_FILE_H_
OLDNEW
« no previous file with comments | « ipc/ipc.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698