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

Unified Diff: base/platform_file.h

Issue 7044095: Hooking MHTML generation to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for browser test. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/platform_file_posix.cc » ('j') | base/platform_file_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | base/platform_file_posix.cc » ('j') | base/platform_file_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698