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

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

Issue 14671020: FileAPI: Copy base::FileUtilProxy::Entry to fileapi::DirectoryEntry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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"
kinuko 2013/05/16 05:17:31 Can we remove this now?
nhiroki 2013/05/16 05:44:52 Done.
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"
11 #include "ipc/ipc_platform_file.h" 11 #include "ipc/ipc_platform_file.h"
12 #include "webkit/fileapi/file_system_operation.h"
12 #include "webkit/fileapi/file_system_types.h" 13 #include "webkit/fileapi/file_system_types.h"
13 #include "webkit/quota/quota_types.h" 14 #include "webkit/quota/quota_types.h"
14 15
15 #define IPC_MESSAGE_START FileSystemMsgStart 16 #define IPC_MESSAGE_START FileSystemMsgStart
16 17
17 IPC_STRUCT_TRAITS_BEGIN(base::FileUtilProxy::Entry) 18 IPC_STRUCT_TRAITS_BEGIN(fileapi::FileSystemOperation::Entry)
18 IPC_STRUCT_TRAITS_MEMBER(name) 19 IPC_STRUCT_TRAITS_MEMBER(name)
19 IPC_STRUCT_TRAITS_MEMBER(is_directory) 20 IPC_STRUCT_TRAITS_MEMBER(is_directory)
20 IPC_STRUCT_TRAITS_END() 21 IPC_STRUCT_TRAITS_END()
21 22
22 IPC_ENUM_TRAITS(fileapi::FileSystemType) 23 IPC_ENUM_TRAITS(fileapi::FileSystemType)
23 IPC_ENUM_TRAITS(quota::QuotaLimitType) 24 IPC_ENUM_TRAITS(quota::QuotaLimitType)
24 25
25 // File system messages sent from the browser to the child process. 26 // File system messages sent from the browser to the child process.
26 27
27 // WebFrameClient::openFileSystem response messages. 28 // WebFrameClient::openFileSystem response messages.
28 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidOpenFileSystem, 29 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidOpenFileSystem,
29 int /* request_id */, 30 int /* request_id */,
30 std::string /* name */, 31 std::string /* name */,
31 GURL /* root_url */) 32 GURL /* root_url */)
32 33
33 // WebFileSystem response messages. 34 // WebFileSystem response messages.
34 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed, 35 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed,
35 int /* request_id */) 36 int /* request_id */)
36 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadMetadata, 37 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadMetadata,
37 int /* request_id */, 38 int /* request_id */,
38 base::PlatformFileInfo, 39 base::PlatformFileInfo,
39 base::FilePath /* true platform path, where possible */) 40 base::FilePath /* true platform path, where possible */)
40 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidCreateSnapshotFile, 41 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidCreateSnapshotFile,
41 int /* request_id */, 42 int /* request_id */,
42 base::PlatformFileInfo, 43 base::PlatformFileInfo,
43 base::FilePath /* true platform path */) 44 base::FilePath /* true platform path */)
44 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory, 45 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory,
45 int /* request_id */, 46 int /* request_id */,
46 std::vector<base::FileUtilProxy::Entry> /* entries */, 47 std::vector<fileapi::FileSystemOperation::Entry>
48 /* entries */,
47 bool /* has_more */) 49 bool /* has_more */)
48 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidWrite, 50 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidWrite,
49 int /* request_id */, 51 int /* request_id */,
50 int64 /* byte count */, 52 int64 /* byte count */,
51 bool /* complete */) 53 bool /* complete */)
52 IPC_MESSAGE_CONTROL4(FileSystemMsg_DidOpenFile, 54 IPC_MESSAGE_CONTROL4(FileSystemMsg_DidOpenFile,
53 int /* request_id */, 55 int /* request_id */,
54 IPC::PlatformFileForTransit, 56 IPC::PlatformFileForTransit,
55 int /* file_open_id */, 57 int /* file_open_id */,
56 quota::QuotaLimitType /* quota_policy */) 58 quota::QuotaLimitType /* quota_policy */)
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 GURL /* file path */, 169 GURL /* file path */,
168 base::FilePath /* platform_path */) 170 base::FilePath /* platform_path */)
169 171
170 // Pre- and post-update notifications for ppapi implementation. 172 // Pre- and post-update notifications for ppapi implementation.
171 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate, 173 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_WillUpdate,
172 GURL /* file_path */) 174 GURL /* file_path */)
173 175
174 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate, 176 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_DidUpdate,
175 GURL /* file_path */, 177 GURL /* file_path */,
176 int64 /* delta */) 178 int64 /* delta */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698