| 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/file_util_proxy.h" | 8 #include "base/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 17 matching lines...) Expand all Loading... |
| 28 std::string /* name */, | 28 std::string /* name */, |
| 29 GURL /* root_url */) | 29 GURL /* root_url */) |
| 30 | 30 |
| 31 // WebFileSystem response messages. | 31 // WebFileSystem response messages. |
| 32 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed, | 32 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed, |
| 33 int /* request_id */) | 33 int /* request_id */) |
| 34 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadMetadata, | 34 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadMetadata, |
| 35 int /* request_id */, | 35 int /* request_id */, |
| 36 base::PlatformFileInfo, | 36 base::PlatformFileInfo, |
| 37 FilePath /* true platform path, where possible */) | 37 FilePath /* true platform path, where possible */) |
| 38 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidCreateSnapshotFile, |
| 39 int /* request_id */, |
| 40 base::PlatformFileInfo, |
| 41 FilePath /* true platform path */) |
| 38 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory, | 42 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory, |
| 39 int /* request_id */, | 43 int /* request_id */, |
| 40 std::vector<base::FileUtilProxy::Entry> /* entries */, | 44 std::vector<base::FileUtilProxy::Entry> /* entries */, |
| 41 bool /* has_more */) | 45 bool /* has_more */) |
| 42 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidWrite, | 46 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidWrite, |
| 43 int /* request_id */, | 47 int /* request_id */, |
| 44 int64 /* byte count */, | 48 int64 /* byte count */, |
| 45 bool /* complete */) | 49 bool /* complete */) |
| 46 IPC_MESSAGE_CONTROL2(FileSystemMsg_DidOpenFile, | 50 IPC_MESSAGE_CONTROL2(FileSystemMsg_DidOpenFile, |
| 47 int /* request_id */, | 51 int /* request_id */, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 109 |
| 106 // WebFileSystem::readDirectory() message. | 110 // WebFileSystem::readDirectory() message. |
| 107 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_ReadDirectory, | 111 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_ReadDirectory, |
| 108 int /* request_id */, | 112 int /* request_id */, |
| 109 GURL /* path */) | 113 GURL /* path */) |
| 110 | 114 |
| 111 // WebFileWriter::write() message. | 115 // WebFileWriter::write() message. |
| 112 IPC_MESSAGE_CONTROL4(FileSystemHostMsg_Write, | 116 IPC_MESSAGE_CONTROL4(FileSystemHostMsg_Write, |
| 113 int /* request id */, | 117 int /* request id */, |
| 114 GURL /* file path */, | 118 GURL /* file path */, |
| 115 GURL /* blob URL */, | 119 std::string /* blob UUID */, |
| 116 int64 /* position */) | 120 int64 /* position */) |
| 117 | 121 |
| 118 // WebFileWriter::truncate() message. | 122 // WebFileWriter::truncate() message. |
| 119 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Truncate, | 123 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Truncate, |
| 120 int /* request id */, | 124 int /* request id */, |
| 121 GURL /* file path */, | 125 GURL /* file path */, |
| 122 int64 /* length */) | 126 int64 /* length */) |
| 123 | 127 |
| 124 // Pepper's Touch() message. | 128 // Pepper's Touch() message. |
| 125 IPC_MESSAGE_CONTROL4(FileSystemHostMsg_TouchFile, | 129 IPC_MESSAGE_CONTROL4(FileSystemHostMsg_TouchFile, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 137 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_OpenFile, | 141 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_OpenFile, |
| 138 int /* request id */, | 142 int /* request id */, |
| 139 GURL /* file path */, | 143 GURL /* file path */, |
| 140 int /* file flags */) | 144 int /* file flags */) |
| 141 | 145 |
| 142 // Pepper's NotifyCloseFile message. | 146 // Pepper's NotifyCloseFile message. |
| 143 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_NotifyCloseFile, | 147 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_NotifyCloseFile, |
| 144 GURL /* file path */) | 148 GURL /* file path */) |
| 145 | 149 |
| 146 // WebFileSystem::createSnapshotFileAndReadMetadata() message. | 150 // WebFileSystem::createSnapshotFileAndReadMetadata() message. |
| 147 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_CreateSnapshotFile, | 151 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_CreateSnapshotFile, |
| 148 int /* request_id */, | 152 int /* request_id */, |
| 149 GURL /* blob_url */, | |
| 150 GURL /* file_path */) | 153 GURL /* file_path */) |
| 151 | 154 |
| 155 // Renderers are expected to send this message after having processed |
| 156 // the FileSystemMsg_DidCreateSnapshotFile message. In particular, |
| 157 // after having created a BlobDataHandle backed by the snapshot file. |
| 158 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_DidReceiveSnapshotFile, |
| 159 int /* request_id */) |
| 160 |
| 152 // For Pepper's URL loader. | 161 // For Pepper's URL loader. |
| 153 IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath, | 162 IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath, |
| 154 GURL /* file path */, | 163 GURL /* file path */, |
| 155 FilePath /* platform_path */) | 164 FilePath /* platform_path */) |
| 156 | 165 |
| 157 // Pre- and post-update notifications for ppapi implementation. | 166 // Pre- and post-update notifications for ppapi implementation. |
| 158 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate, | 167 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate, |
| 159 GURL /* file_path */) | 168 GURL /* file_path */) |
| 160 | 169 |
| 161 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate, | 170 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate, |
| 162 GURL /* file_path */, | 171 GURL /* file_path */, |
| 163 int64 /* delta */) | 172 int64 /* delta */) |
| OLD | NEW |