| 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);
|
| +
|
| // 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.
|
|
|