summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages_internal.h
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 21:58:28 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 21:58:28 +0000
commitee8d4c8656fc8a8723e91e44d05fba4027c77b66 (patch)
tree7ed5dd75b40690657edd1e41b1aa78a980fd43d2 /chrome/common/render_messages_internal.h
parent0189bc72c90fab03afab623d0b2d8be3d35af3e7 (diff)
downloadchromium_src-ee8d4c8656fc8a8723e91e44d05fba4027c77b66.zip
chromium_src-ee8d4c8656fc8a8723e91e44d05fba4027c77b66.tar.gz
chromium_src-ee8d4c8656fc8a8723e91e44d05fba4027c77b66.tar.bz2
Chromium side patch for DB support on Linux.
BUG=none TEST=none Review URL: http://codereview.chromium.org/174232 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24807 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_internal.h')
-rw-r--r--chrome/common/render_messages_internal.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 679b5c1..4b74407 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -31,6 +31,10 @@
#include "webkit/glue/webcursor.h"
#include "webkit/glue/webplugin.h"
+#if defined(OS_POSIX)
+#include "base/file_descriptor_posix.h"
+#endif
+
// TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
// more sense with our current design.
@@ -660,12 +664,12 @@ IPC_BEGIN_MESSAGES(View)
// Returns a file handle
IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseOpenFileResponse,
int32 /* the ID of the message we're replying to */,
- base::PlatformFile /* the HANDLE/fd of the DB file */)
+ ViewMsg_DatabaseOpenFileResponse_Params)
- // Returns the error code returned by a call to DeleteFile()
+ // Returns a SQLite error code
IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseDeleteFileResponse,
int32 /* the ID of the message we're replying to */,
- bool /* whether or not the DB file was deleted */)
+ int /* SQLite error code */)
// Returns the attributes of a file
IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseGetFileAttributesResponse,
@@ -1679,8 +1683,9 @@ IPC_BEGIN_MESSAGES(ViewHost)
int32 /* a unique message ID */)
// Asks the browser process to delete a DB file
- IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseDeleteFile,
+ IPC_MESSAGE_CONTROL3(ViewHostMsg_DatabaseDeleteFile,
FilePath /* the name of the file */,
+ bool /* whether or not to sync the directory */,
int32 /* a unique message ID */)
// Asks the browser process to return the attributes of a DB file