| OLD | NEW |
| 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 "base/files/file_util_proxy.h" | |
| 9 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 10 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 11 #include "ipc/ipc_platform_file.h" | 10 #include "ipc/ipc_platform_file.h" |
| 11 #include "webkit/fileapi/directory_entry.h" |
| 12 #include "webkit/fileapi/file_system_types.h" | 12 #include "webkit/fileapi/file_system_types.h" |
| 13 #include "webkit/quota/quota_types.h" | 13 #include "webkit/quota/quota_types.h" |
| 14 | 14 |
| 15 #define IPC_MESSAGE_START FileSystemMsgStart | 15 #define IPC_MESSAGE_START FileSystemMsgStart |
| 16 | 16 |
| 17 IPC_STRUCT_TRAITS_BEGIN(base::FileUtilProxy::Entry) | 17 IPC_STRUCT_TRAITS_BEGIN(fileapi::DirectoryEntry) |
| 18 IPC_STRUCT_TRAITS_MEMBER(name) | 18 IPC_STRUCT_TRAITS_MEMBER(name) |
| 19 IPC_STRUCT_TRAITS_MEMBER(is_directory) | 19 IPC_STRUCT_TRAITS_MEMBER(is_directory) |
| 20 IPC_STRUCT_TRAITS_END() | 20 IPC_STRUCT_TRAITS_END() |
| 21 | 21 |
| 22 IPC_ENUM_TRAITS(fileapi::FileSystemType) | 22 IPC_ENUM_TRAITS(fileapi::FileSystemType) |
| 23 IPC_ENUM_TRAITS(quota::QuotaLimitType) | 23 IPC_ENUM_TRAITS(quota::QuotaLimitType) |
| 24 | 24 |
| 25 // File system messages sent from the browser to the child process. | 25 // File system messages sent from the browser to the child process. |
| 26 | 26 |
| 27 // WebFrameClient::openFileSystem response messages. | 27 // WebFrameClient::openFileSystem response messages. |
| 28 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidOpenFileSystem, | 28 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidOpenFileSystem, |
| 29 int /* request_id */, | 29 int /* request_id */, |
| 30 std::string /* name */, | 30 std::string /* name */, |
| 31 GURL /* root_url */) | 31 GURL /* root_url */) |
| 32 | 32 |
| 33 // WebFileSystem response messages. | 33 // WebFileSystem response messages. |
| 34 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed, | 34 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed, |
| 35 int /* request_id */) | 35 int /* request_id */) |
| 36 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadMetadata, | 36 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadMetadata, |
| 37 int /* request_id */, | 37 int /* request_id */, |
| 38 base::PlatformFileInfo, | 38 base::PlatformFileInfo, |
| 39 base::FilePath /* true platform path, where possible */) | 39 base::FilePath /* true platform path, where possible */) |
| 40 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidCreateSnapshotFile, | 40 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidCreateSnapshotFile, |
| 41 int /* request_id */, | 41 int /* request_id */, |
| 42 base::PlatformFileInfo, | 42 base::PlatformFileInfo, |
| 43 base::FilePath /* true platform path */) | 43 base::FilePath /* true platform path */) |
| 44 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory, | 44 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory, |
| 45 int /* request_id */, | 45 int /* request_id */, |
| 46 std::vector<base::FileUtilProxy::Entry> /* entries */, | 46 std::vector<fileapi::DirectoryEntry> /* entries */, |
| 47 bool /* has_more */) | 47 bool /* has_more */) |
| 48 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidWrite, | 48 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidWrite, |
| 49 int /* request_id */, | 49 int /* request_id */, |
| 50 int64 /* byte count */, | 50 int64 /* byte count */, |
| 51 bool /* complete */) | 51 bool /* complete */) |
| 52 IPC_MESSAGE_CONTROL4(FileSystemMsg_DidOpenFile, | 52 IPC_MESSAGE_CONTROL4(FileSystemMsg_DidOpenFile, |
| 53 int /* request_id */, | 53 int /* request_id */, |
| 54 IPC::PlatformFileForTransit, | 54 IPC::PlatformFileForTransit, |
| 55 int /* file_open_id */, | 55 int /* file_open_id */, |
| 56 quota::QuotaLimitType /* quota_policy */) | 56 quota::QuotaLimitType /* quota_policy */) |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 GURL /* file path */, | 167 GURL /* file path */, |
| 168 base::FilePath /* platform_path */) | 168 base::FilePath /* platform_path */) |
| 169 | 169 |
| 170 // Pre- and post-update notifications for ppapi implementation. | 170 // Pre- and post-update notifications for ppapi implementation. |
| 171 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate, | 171 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate, |
| 172 GURL /* file_path */) | 172 GURL /* file_path */) |
| 173 | 173 |
| 174 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate, | 174 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate, |
| 175 GURL /* file_path */, | 175 GURL /* file_path */, |
| 176 int64 /* delta */) | 176 int64 /* delta */) |
| OLD | NEW |