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

Side by Side Diff: content/common/fileapi/file_system_messages.h

Issue 23856002: SyncFS: Support resolveLocalFileSystemURL on SyncFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add struct FileSystemInfo, and change file path manipulation Created 7 years, 3 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for the file system. 5 // IPC messages for the file system.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "ipc/ipc_platform_file.h" 9 #include "ipc/ipc_platform_file.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 #include "webkit/common/fileapi/directory_entry.h" 11 #include "webkit/common/fileapi/directory_entry.h"
12 #include "webkit/common/fileapi/file_system_info.h"
12 #include "webkit/common/fileapi/file_system_types.h" 13 #include "webkit/common/fileapi/file_system_types.h"
13 #include "webkit/common/quota/quota_types.h" 14 #include "webkit/common/quota/quota_types.h"
14 15
15 #undef IPC_MESSAGE_EXPORT 16 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 17 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
17 #define IPC_MESSAGE_START FileSystemMsgStart 18 #define IPC_MESSAGE_START FileSystemMsgStart
18 19
19 IPC_STRUCT_TRAITS_BEGIN(fileapi::DirectoryEntry) 20 IPC_STRUCT_TRAITS_BEGIN(fileapi::DirectoryEntry)
20 IPC_STRUCT_TRAITS_MEMBER(name) 21 IPC_STRUCT_TRAITS_MEMBER(name)
21 IPC_STRUCT_TRAITS_MEMBER(is_directory) 22 IPC_STRUCT_TRAITS_MEMBER(is_directory)
22 IPC_STRUCT_TRAITS_END() 23 IPC_STRUCT_TRAITS_END()
23 24
25 IPC_STRUCT_TRAITS_BEGIN(fileapi::FileSystemInfo)
26 IPC_STRUCT_TRAITS_MEMBER(filesystem_name)
27 IPC_STRUCT_TRAITS_MEMBER(root_url)
28 IPC_STRUCT_TRAITS_MEMBER(mount_type)
29 IPC_STRUCT_TRAITS_END()
30
24 IPC_ENUM_TRAITS(fileapi::FileSystemType) 31 IPC_ENUM_TRAITS(fileapi::FileSystemType)
25 IPC_ENUM_TRAITS(quota::QuotaLimitType) 32 IPC_ENUM_TRAITS(quota::QuotaLimitType)
26 33
27 // File system messages sent from the browser to the child process. 34 // File system messages sent from the browser to the child process.
28 35
29 // WebFrameClient::openFileSystem response messages. 36 // WebFrameClient::openFileSystem response messages.
30 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidOpenFileSystem, 37 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidOpenFileSystem,
31 int /* request_id */, 38 int /* request_id */,
32 std::string /* name */, 39 std::string /* name */,
33 GURL /* root_url */) 40 GURL /* root_url */)
34 41
35 // WebFileSystem response messages. 42 // WebFileSystem response messages.
43 IPC_MESSAGE_CONTROL4(FileSystemMsg_DidResolveURL,
44 int /* request_id */,
45 fileapi::FileSystemInfo /* filesystem_info */,
46 base::FilePath /* file_path */,
47 bool /* is_directory */)
36 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed, 48 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed,
37 int /* request_id */) 49 int /* request_id */)
38 IPC_MESSAGE_CONTROL2(FileSystemMsg_DidReadMetadata, 50 IPC_MESSAGE_CONTROL2(FileSystemMsg_DidReadMetadata,
39 int /* request_id */, 51 int /* request_id */,
40 base::PlatformFileInfo) 52 base::PlatformFileInfo)
41 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidCreateSnapshotFile, 53 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidCreateSnapshotFile,
42 int /* request_id */, 54 int /* request_id */,
43 base::PlatformFileInfo, 55 base::PlatformFileInfo,
44 base::FilePath /* true platform path */) 56 base::FilePath /* true platform path */)
45 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory, 57 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory,
(...skipping 16 matching lines...) Expand all
62 // File system messages sent from the child process to the browser. 74 // File system messages sent from the child process to the browser.
63 75
64 // WebFrameClient::openFileSystem() message. 76 // WebFrameClient::openFileSystem() message.
65 IPC_MESSAGE_CONTROL5(FileSystemHostMsg_Open, 77 IPC_MESSAGE_CONTROL5(FileSystemHostMsg_Open,
66 int /* request_id */, 78 int /* request_id */,
67 GURL /* origin_url */, 79 GURL /* origin_url */,
68 fileapi::FileSystemType /* type */, 80 fileapi::FileSystemType /* type */,
69 int64 /* requested_size */, 81 int64 /* requested_size */,
70 bool /* create */) 82 bool /* create */)
71 83
84 // WevFrameClient::resolveURL() message.
85 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_ResolveURL,
86 int /* request_id */,
87 GURL /* filesystem_url */)
88
72 // WebFrameClient::deleteFileSystem() message. 89 // WebFrameClient::deleteFileSystem() message.
73 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_DeleteFileSystem, 90 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_DeleteFileSystem,
74 int /* request_id */, 91 int /* request_id */,
75 GURL /* origin_url */, 92 GURL /* origin_url */,
76 fileapi::FileSystemType /* type */) 93 fileapi::FileSystemType /* type */)
77 94
78 // WebFileSystem::move() message. 95 // WebFileSystem::move() message.
79 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Move, 96 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Move,
80 int /* request_id */, 97 int /* request_id */,
81 GURL /* src path */, 98 GURL /* src path */,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 GURL /* file path */, 192 GURL /* file path */,
176 base::FilePath /* platform_path */) 193 base::FilePath /* platform_path */)
177 194
178 // Pre- and post-update notifications for ppapi implementation. 195 // Pre- and post-update notifications for ppapi implementation.
179 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate, 196 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate,
180 GURL /* file_path */) 197 GURL /* file_path */)
181 198
182 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate, 199 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate,
183 GURL /* file_path */, 200 GURL /* file_path */,
184 int64 /* delta */) 201 int64 /* delta */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698