Index: chrome/common/render_messages.h |
=================================================================== |
--- chrome/common/render_messages.h (revision 31826) |
+++ chrome/common/render_messages.h (working copy) |
@@ -12,6 +12,7 @@ |
#include "app/clipboard/clipboard.h" |
#include "app/gfx/native_widget_types.h" |
#include "base/basictypes.h" |
+#include "base/platform_file.h" |
#include "base/ref_counted.h" |
#include "base/shared_memory.h" |
#include "base/string16.h" |
@@ -31,6 +32,7 @@ |
#include "chrome/common/webkit_param_traits.h" |
#include "googleurl/src/gurl.h" |
#include "ipc/ipc_message_utils.h" |
+#include "ipc/ipc_platform_file.h" |
#include "media/audio/audio_output.h" |
#include "net/base/upload_data.h" |
#include "net/http/http_response_headers.h" |
@@ -50,12 +52,7 @@ |
#include "webkit/glue/webplugininfo.h" |
#include "webkit/glue/webpreferences.h" |
-#if defined(OS_WIN) |
-#include "base/platform_file.h" |
-#endif |
- |
#if defined(OS_POSIX) |
-#include "base/file_descriptor_posix.h" |
#endif |
namespace base { |
@@ -410,10 +407,8 @@ |
}; |
struct ViewMsg_DatabaseOpenFileResponse_Params { |
-#if defined(OS_WIN) |
- base::PlatformFile file_handle; // DB file handle |
-#elif defined(OS_POSIX) |
- base::FileDescriptor file_handle; // DB file handle |
+ IPC::PlatformFileForTransit file_handle; // DB file handle |
+#if defined(OS_POSIX) |
base::FileDescriptor dir_handle; // DB directory handle |
#endif |
}; |
@@ -421,11 +416,7 @@ |
struct ViewMsg_OpenFileForPluginResponse_Params { |
// Note: if we end up having to add a directory handle, this should be |
// combined with the DatabaseOpenFileResponse_Params struct. |
-#if defined(OS_WIN) |
- base::PlatformFile file_handle; |
-#elif defined(OS_POSIX) |
- base::FileDescriptor file_handle; |
-#endif |
+ IPC::PlatformFileForTransit file_handle; |
}; |
// Parameters to describe a rendered page. |