summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages_internal.h
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-30 22:15:41 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-30 22:15:41 +0000
commit6239dc641a11eeb997035a1d8f862b9781f702ed (patch)
tree7f7f0f991a791094f273439dc586cb4adcf9eeeb /chrome/common/render_messages_internal.h
parentf4b02f03aa240394296067a3b84ecc8543133d66 (diff)
downloadchromium_src-6239dc641a11eeb997035a1d8f862b9781f702ed.zip
chromium_src-6239dc641a11eeb997035a1d8f862b9781f702ed.tar.gz
chromium_src-6239dc641a11eeb997035a1d8f862b9781f702ed.tar.bz2
Add final part of IPC plumbing for FileSystem API.
BUG=32277 TEST=none; to be added when we have complete implementation. Review URL: http://codereview.chromium.org/3208007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_internal.h')
-rw-r--r--chrome/common/render_messages_internal.h49
1 files changed, 46 insertions, 3 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 1c65934..9d4fa57 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -55,6 +55,10 @@ namespace webkit_blob {
class BlobData;
}
+namespace file_util {
+struct FileInfo;
+}
+
//-----------------------------------------------------------------------------
// RenderView messages
// These are messages sent from the browser to the renderer process.
@@ -1014,11 +1018,16 @@ IPC_BEGIN_MESSAGES(View)
string16 /* root_path */)
// WebFileSystem response messages.
- IPC_MESSAGE_CONTROL1(ViewMsg_FileSystem_Succeeded,
+ IPC_MESSAGE_CONTROL1(ViewMsg_FileSystem_DidSucceed,
int /* request_id */)
- IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_Failed,
+ IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidReadMetadata,
+ int /* request_id */,
+ file_util::FileInfo)
+ IPC_MESSAGE_CONTROL1(ViewMsg_FileSystem_DidReadDirectory,
+ ViewMsg_FileSystem_DidReadDirectory_Params)
+ IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidFail,
int /* request_id */,
- int /* error_code */)
+ WebKit::WebFileError /* error_code */)
IPC_END_MESSAGES(View)
@@ -2715,6 +2724,40 @@ IPC_BEGIN_MESSAGES(ViewHost)
string16 /* src path */,
string16 /* dest path */)
+ // WebFileSystem::copy() message.
+ IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Copy,
+ int /* request_id */,
+ string16 /* src path */,
+ string16 /* dest path */)
+
+ // WebFileSystem::remove() message.
+ IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_Remove,
+ int /* request_id */,
+ string16 /* path */)
+
+ // WebFileSystem::readMetadata() message.
+ IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_ReadMetadata,
+ int /* request_id */,
+ string16 /* path */)
+
+ // WebFileSystem::create() message.
+ IPC_MESSAGE_CONTROL4(ViewHostMsg_FileSystem_Create,
+ int /* request_id */,
+ string16 /* path */,
+ bool /* exclusive */,
+ bool /* is_directory */)
+
+ // WebFileSystem::exists() messages.
+ IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Exists,
+ int /* request_id */,
+ string16 /* path */,
+ bool /* is_directory */)
+
+ // WebFileSystem::readDirectory() message.
+ IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_ReadDirectory,
+ int /* request_id */,
+ string16 /* path */)
+
//---------------------------------------------------------------------------
// Blob messages: