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

Unified Diff: chrome/common/render_messages.h

Issue 397017: reland 31875. Revert was:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/common/notification_type.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
===================================================================
--- chrome/common/render_messages.h (revision 32085)
+++ 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.
« no previous file with comments | « chrome/common/notification_type.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698