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

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

Issue 12084077: FileSystem mods: Changes to snapshot file creation to remove dependencies on blobs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 "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 17 matching lines...) Expand all
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 base::FilePath /* true platform path, where possible */) 37 base::FilePath /* true platform path, where possible */)
38 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidCreateSnapshotFile,
39 int /* request_id */,
40 base::PlatformFileInfo,
41 base::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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Pepper's OpenFile message. 140 // Pepper's OpenFile message.
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 // DEPRECATED
147 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_CreateSnapshotFile, 151 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_CreateSnapshotFile_Deprecated,
148 int /* request_id */, 152 int /* request_id */,
149 GURL /* blob_url */, 153 GURL /* blob_url */,
150 GURL /* file_path */) 154 GURL /* file_path */)
151 155
156 // WebFileSystem::createSnapshotFileAndReadMetadata() message.
157 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_CreateSnapshotFile,
158 int /* request_id */,
159 GURL /* file_path */)
160
161 // Renderers are expected to send this message after having processed
162 // the FileSystemMsg_DidCreateSnapshotFile message. In particular,
163 // after having created a BlobDataHandle backed by the snapshot file.
164 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_DidReceiveSnapshotFile,
165 int /* request_id */)
166
152 // For Pepper's URL loader. 167 // For Pepper's URL loader.
153 IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath, 168 IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath,
154 GURL /* file path */, 169 GURL /* file path */,
155 base::FilePath /* platform_path */) 170 base::FilePath /* platform_path */)
156 171
157 // Pre- and post-update notifications for ppapi implementation. 172 // Pre- and post-update notifications for ppapi implementation.
158 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate, 173 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate,
159 GURL /* file_path */) 174 GURL /* file_path */)
160 175
161 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate, 176 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate,
162 GURL /* file_path */, 177 GURL /* file_path */,
163 int64 /* delta */) 178 int64 /* delta */)
OLDNEW
« no previous file with comments | « content/common/fileapi/file_system_dispatcher.cc ('k') | content/common/fileapi/webfilesystem_callback_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698