Chromium Code Reviews| Index: base/platform_file.h |
| diff --git a/base/platform_file.h b/base/platform_file.h |
| index 5b29e07fa08084360710ed84d6ada7908cb764d2..34688cedc996139ce86c9f2488d4116ddde5e509 100644 |
| --- a/base/platform_file.h |
| +++ b/base/platform_file.h |
| @@ -16,6 +16,7 @@ |
| #include "base/base_api.h" |
| #include "base/basictypes.h" |
| #include "base/file_path.h" |
| +#include "base/process.h" |
| #include "base/time.h" |
| namespace base { |
| @@ -140,6 +141,11 @@ BASE_API bool TouchPlatformFile(PlatformFile file, const Time& last_access_time, |
| // Returns some information for the given file. |
| BASE_API bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info); |
| +// Returns a file handle equivalent to |file| that can be used in |process|. |
| +BASE_API PlatformFile GetFileHandleForProcess(PlatformFile file, |
| + ProcessHandle process, |
| + bool close_source_handle); |
|
brettw
2011/06/13 23:12:36
I'm a little worried that close_source_handle only
Jay Civelli
2011/06/14 00:19:27
OK, moved that method to ipc_plaform_file,cc and r
|
| + |
| // Use this class to pass ownership of a PlatformFile to a receiver that may or |
| // may not want to accept it. This class does not own the storage for the |
| // PlatformFile. |