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

Side by Side Diff: ipc/ipc_platform_file.h

Issue 7044095: Hooking MHTML generation to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ipc/ipc.gypi ('k') | ipc/ipc_platform_file.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) 2009 The Chromium Authors. All rights reserved. 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 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 IPC_IPC_PLATFORM_FILE_H_ 5 #ifndef IPC_IPC_PLATFORM_FILE_H_
6 #define IPC_IPC_PLATFORM_FILE_H_ 6 #define IPC_IPC_PLATFORM_FILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 #include "base/platform_file.h" 11 #include "base/platform_file.h"
12 #include "base/process.h"
12 13
13 #if defined(OS_POSIX) 14 #if defined(OS_POSIX)
14 #include "base/file_descriptor_posix.h" 15 #include "base/file_descriptor_posix.h"
15 #endif 16 #endif
16 17
17 namespace IPC { 18 namespace IPC {
18 19
19 #if defined(OS_WIN) 20 #if defined(OS_WIN)
20 typedef base::PlatformFile PlatformFileForTransit; 21 typedef base::PlatformFile PlatformFileForTransit;
21 #elif defined(OS_POSIX) 22 #elif defined(OS_POSIX)
(...skipping 10 matching lines...) Expand all
32 33
33 inline base::PlatformFile PlatformFileForTransitToPlatformFile( 34 inline base::PlatformFile PlatformFileForTransitToPlatformFile(
34 const PlatformFileForTransit& transit) { 35 const PlatformFileForTransit& transit) {
35 #if defined(OS_WIN) 36 #if defined(OS_WIN)
36 return transit; 37 return transit;
37 #elif defined(OS_POSIX) 38 #elif defined(OS_POSIX)
38 return transit.fd; 39 return transit.fd;
39 #endif 40 #endif
40 } 41 }
41 42
43 // Returns a file handle equivalent to |file| that can be used in |process|.
44 PlatformFileForTransit GetFileHandleForProcess(base::PlatformFile file,
45 base::ProcessHandle process,
46 bool close_source_handle);
47
42 } // namespace IPC 48 } // namespace IPC
43 49
44 #endif // IPC_IPC_PLATFORM_FILE_H_ 50 #endif // IPC_IPC_PLATFORM_FILE_H_
OLDNEW
« no previous file with comments | « ipc/ipc.gypi ('k') | ipc/ipc_platform_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698