summaryrefslogtreecommitdiffstats
path: root/content/common
diff options
context:
space:
mode:
authornhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-21 01:06:55 +0000
committernhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-21 01:06:55 +0000
commit8355b7629254490bf8aa89d9fd5779f4559ac168 (patch)
tree10f982d6b45befc8531390fa2d1795e8628ad278 /content/common
parent4e16817c5d3145408ea306ae1c6bf2f1d5a8421f (diff)
downloadchromium_src-8355b7629254490bf8aa89d9fd5779f4559ac168.zip
chromium_src-8355b7629254490bf8aa89d9fd5779f4559ac168.tar.gz
chromium_src-8355b7629254490bf8aa89d9fd5779f4559ac168.tar.bz2
[Retry] SyncFS: Support resolveLocalFileSystemURL on SyncFileSystem
Original review: https://codereview.chromium.org/23856002/ window.resolveLocalFileSystemURL is originally defined only for FileSystem API, but it'd be nice if it works on SyncFileSystem in a similar way. For that this change adds new IPC messages and interfaces. Blink side change depends on this: https://codereview.chromium.org/23537011/ BUG=177137,294502 TEST=manual (Get FileSystemURL for a file on SyncFS, and then resolve it) TEST=unit_tests TEST=run_webkit_tests.sh http/tests/filesystem/\* TEST=run_webkit_tests.sh http/tests/inspector/filesystem/\* TBR=tsepez@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/23526076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common')
-rw-r--r--content/common/fileapi/file_system_messages.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/content/common/fileapi/file_system_messages.h b/content/common/fileapi/file_system_messages.h
index e277e33..191bf9d 100644
--- a/content/common/fileapi/file_system_messages.h
+++ b/content/common/fileapi/file_system_messages.h
@@ -9,6 +9,7 @@
#include "ipc/ipc_platform_file.h"
#include "url/gurl.h"
#include "webkit/common/fileapi/directory_entry.h"
+#include "webkit/common/fileapi/file_system_info.h"
#include "webkit/common/fileapi/file_system_types.h"
#include "webkit/common/quota/quota_types.h"
@@ -21,6 +22,12 @@ IPC_STRUCT_TRAITS_BEGIN(fileapi::DirectoryEntry)
IPC_STRUCT_TRAITS_MEMBER(is_directory)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(fileapi::FileSystemInfo)
+ IPC_STRUCT_TRAITS_MEMBER(name)
+ IPC_STRUCT_TRAITS_MEMBER(root_url)
+ IPC_STRUCT_TRAITS_MEMBER(mount_type)
+IPC_STRUCT_TRAITS_END()
+
IPC_ENUM_TRAITS(fileapi::FileSystemType)
IPC_ENUM_TRAITS(quota::QuotaLimitType)
@@ -33,6 +40,11 @@ IPC_MESSAGE_CONTROL3(FileSystemMsg_DidOpenFileSystem,
GURL /* root_url */)
// WebFileSystem response messages.
+IPC_MESSAGE_CONTROL4(FileSystemMsg_DidResolveURL,
+ int /* request_id */,
+ fileapi::FileSystemInfo /* filesystem_info */,
+ base::FilePath /* file_path */,
+ bool /* is_directory */)
IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed,
int /* request_id */)
IPC_MESSAGE_CONTROL2(FileSystemMsg_DidReadMetadata,
@@ -69,6 +81,11 @@ IPC_MESSAGE_CONTROL5(FileSystemHostMsg_Open,
int64 /* requested_size */,
bool /* create */)
+// WevFrameClient::resolveURL() message.
+IPC_MESSAGE_CONTROL2(FileSystemHostMsg_ResolveURL,
+ int /* request_id */,
+ GURL /* filesystem_url */)
+
// WebFrameClient::deleteFileSystem() message.
IPC_MESSAGE_CONTROL3(FileSystemHostMsg_DeleteFileSystem,
int /* request_id */,