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" | 8 #include "base/files/file_util_proxy.h" |
9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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<base::FileUtilProxy::Entry> /* 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_CONTROL3(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 quota::QuotaLimitType /* quota_policy */) | 56 quota::QuotaLimitType /* quota_policy */) |
56 IPC_MESSAGE_CONTROL2(FileSystemMsg_DidFail, | 57 IPC_MESSAGE_CONTROL2(FileSystemMsg_DidFail, |
57 int /* request_id */, | 58 int /* request_id */, |
58 base::PlatformFileError /* error_code */) | 59 base::PlatformFileError /* error_code */) |
59 | 60 |
60 // File system messages sent from the child process to the browser. | 61 // File system messages sent from the child process to the browser. |
61 | 62 |
62 // WebFrameClient::openFileSystem() message. | 63 // WebFrameClient::openFileSystem() message. |
63 IPC_MESSAGE_CONTROL5(FileSystemHostMsg_Open, | 64 IPC_MESSAGE_CONTROL5(FileSystemHostMsg_Open, |
64 int /* request_id */, | 65 int /* request_id */, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 int /* id of request to cancel */) | 142 int /* id of request to cancel */) |
142 | 143 |
143 // Pepper's OpenFile message. | 144 // Pepper's OpenFile message. |
144 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_OpenFile, | 145 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_OpenFile, |
145 int /* request id */, | 146 int /* request id */, |
146 GURL /* file path */, | 147 GURL /* file path */, |
147 int /* file flags */) | 148 int /* file flags */) |
148 | 149 |
149 // Pepper's NotifyCloseFile message. | 150 // Pepper's NotifyCloseFile message. |
150 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_NotifyCloseFile, | 151 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_NotifyCloseFile, |
151 GURL /* file path */) | 152 int /* file_open_id */) |
152 | 153 |
153 // WebFileSystem::createSnapshotFileAndReadMetadata() message. | 154 // WebFileSystem::createSnapshotFileAndReadMetadata() message. |
154 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_CreateSnapshotFile, | 155 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_CreateSnapshotFile, |
155 int /* request_id */, | 156 int /* request_id */, |
156 GURL /* file_path */) | 157 GURL /* file_path */) |
157 | 158 |
158 // Renderers are expected to send this message after having processed | 159 // Renderers are expected to send this message after having processed |
159 // the FileSystemMsg_DidCreateSnapshotFile message. In particular, | 160 // the FileSystemMsg_DidCreateSnapshotFile message. In particular, |
160 // after having created a BlobDataHandle backed by the snapshot file. | 161 // after having created a BlobDataHandle backed by the snapshot file. |
161 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_DidReceiveSnapshotFile, | 162 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_DidReceiveSnapshotFile, |
162 int /* request_id */) | 163 int /* request_id */) |
163 | 164 |
164 // For Pepper's URL loader. | 165 // For Pepper's URL loader. |
165 IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath, | 166 IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath, |
166 GURL /* file path */, | 167 GURL /* file path */, |
167 base::FilePath /* platform_path */) | 168 base::FilePath /* platform_path */) |
168 | 169 |
169 // Pre- and post-update notifications for ppapi implementation. | 170 // Pre- and post-update notifications for ppapi implementation. |
170 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate, | 171 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate, |
171 GURL /* file_path */) | 172 GURL /* file_path */) |
172 | 173 |
173 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate, | 174 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate, |
174 GURL /* file_path */, | 175 GURL /* file_path */, |
175 int64 /* delta */) | 176 int64 /* delta */) |
OLD | NEW |