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 "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" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // WebFileSystem response messages. | 42 // WebFileSystem response messages. |
43 IPC_MESSAGE_CONTROL4(FileSystemMsg_DidResolveURL, | 43 IPC_MESSAGE_CONTROL4(FileSystemMsg_DidResolveURL, |
44 int /* request_id */, | 44 int /* request_id */, |
45 fileapi::FileSystemInfo /* filesystem_info */, | 45 fileapi::FileSystemInfo /* filesystem_info */, |
46 base::FilePath /* file_path */, | 46 base::FilePath /* file_path */, |
47 bool /* is_directory */) | 47 bool /* is_directory */) |
48 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed, | 48 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed, |
49 int /* request_id */) | 49 int /* request_id */) |
50 IPC_MESSAGE_CONTROL2(FileSystemMsg_DidReadMetadata, | 50 IPC_MESSAGE_CONTROL2(FileSystemMsg_DidReadMetadata, |
51 int /* request_id */, | 51 int /* request_id */, |
52 base::PlatformFileInfo) | 52 base::File::Info) |
53 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidCreateSnapshotFile, | 53 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidCreateSnapshotFile, |
54 int /* request_id */, | 54 int /* request_id */, |
55 base::PlatformFileInfo, | 55 base::File::Info, |
56 base::FilePath /* true platform path */) | 56 base::FilePath /* true platform path */) |
57 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory, | 57 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory, |
58 int /* request_id */, | 58 int /* request_id */, |
59 std::vector<fileapi::DirectoryEntry> /* entries */, | 59 std::vector<fileapi::DirectoryEntry> /* entries */, |
60 bool /* has_more */) | 60 bool /* has_more */) |
61 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidWrite, | 61 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidWrite, |
62 int /* request_id */, | 62 int /* request_id */, |
63 int64 /* byte count */, | 63 int64 /* byte count */, |
64 bool /* complete */) | 64 bool /* complete */) |
65 IPC_MESSAGE_CONTROL4(FileSystemMsg_DidOpenFile, | 65 IPC_MESSAGE_CONTROL4(FileSystemMsg_DidOpenFile, |
66 int /* request_id */, | 66 int /* request_id */, |
67 IPC::PlatformFileForTransit, | 67 IPC::PlatformFileForTransit, |
68 int /* file_open_id */, | 68 int /* file_open_id */, |
69 quota::QuotaLimitType /* quota_policy */) | 69 quota::QuotaLimitType /* quota_policy */) |
70 IPC_MESSAGE_CONTROL2(FileSystemMsg_DidFail, | 70 IPC_MESSAGE_CONTROL2(FileSystemMsg_DidFail, |
71 int /* request_id */, | 71 int /* request_id */, |
72 base::PlatformFileError /* error_code */) | 72 base::File::Error /* error_code */) |
73 | 73 |
74 // File system messages sent from the child process to the browser. | 74 // File system messages sent from the child process to the browser. |
75 | 75 |
76 // WebFrameClient::openFileSystem() message. | 76 // WebFrameClient::openFileSystem() message. |
77 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_OpenFileSystem, | 77 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_OpenFileSystem, |
78 int /* request_id */, | 78 int /* request_id */, |
79 GURL /* origin_url */, | 79 GURL /* origin_url */, |
80 fileapi::FileSystemType /* type */) | 80 fileapi::FileSystemType /* type */) |
81 | 81 |
82 // WevFrameClient::resolveURL() message. | 82 // WevFrameClient::resolveURL() message. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // Renderers are expected to send this message after having processed | 165 // Renderers are expected to send this message after having processed |
166 // the FileSystemMsg_DidCreateSnapshotFile message. In particular, | 166 // the FileSystemMsg_DidCreateSnapshotFile message. In particular, |
167 // after having created a BlobDataHandle backed by the snapshot file. | 167 // after having created a BlobDataHandle backed by the snapshot file. |
168 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_DidReceiveSnapshotFile, | 168 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_DidReceiveSnapshotFile, |
169 int /* request_id */) | 169 int /* request_id */) |
170 | 170 |
171 // For Pepper's URL loader. | 171 // For Pepper's URL loader. |
172 IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath, | 172 IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath, |
173 GURL /* file path */, | 173 GURL /* file path */, |
174 base::FilePath /* platform_path */) | 174 base::FilePath /* platform_path */) |
OLD | NEW |