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

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

Issue 6833007: More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "webkit/fileapi/file_system_types.h" 10 #include "webkit/fileapi/file_system_types.h"
11 11
12 #define IPC_MESSAGE_START FileSystemMsgStart 12 #define IPC_MESSAGE_START FileSystemMsgStart
13 13
14 IPC_STRUCT_TRAITS_BEGIN(base::FileUtilProxy::Entry) 14 IPC_STRUCT_TRAITS_BEGIN(base::FileUtilProxy::Entry)
15 IPC_STRUCT_TRAITS_MEMBER(name) 15 IPC_STRUCT_TRAITS_MEMBER(name)
16 IPC_STRUCT_TRAITS_MEMBER(is_directory) 16 IPC_STRUCT_TRAITS_MEMBER(is_directory)
17 IPC_STRUCT_TRAITS_END() 17 IPC_STRUCT_TRAITS_END()
18 18
19 IPC_ENUM_TRAITS(fileapi::FileSystemType) 19 IPC_ENUM_TRAITS(fileapi::FileSystemType)
20 20
21 // File system messages sent from the browser to the child process. 21 // File system messages sent from the browser to the child process.
22 22
23 // WebFrameClient::openFileSystem response messages. 23 // WebFrameClient::openFileSystem response messages.
24 IPC_MESSAGE_CONTROL4(FileSystemMsg_OpenComplete, 24 IPC_MESSAGE_CONTROL4(FileSystemMsg_OpenComplete,
25 int /* request_id */, 25 int /* request_id */,
26 bool /* accepted */, 26 bool /* accepted */,
27 std::string /* name */, 27 std::string /* name */,
28 FilePath /* root_path */) 28 GURL /* root_url */)
29 29
30 // WebFileSystem response messages. 30 // WebFileSystem response messages.
31 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed, 31 IPC_MESSAGE_CONTROL1(FileSystemMsg_DidSucceed,
32 int /* request_id */) 32 int /* request_id */)
33 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadMetadata, 33 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadMetadata,
34 int /* request_id */, 34 int /* request_id */,
35 base::PlatformFileInfo, 35 base::PlatformFileInfo,
36 FilePath /* true platform path, where possible */) 36 FilePath /* true platform path, where possible */)
37 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory, 37 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidReadDirectory,
38 int /* request_id */, 38 int /* request_id */,
(...skipping 13 matching lines...) Expand all
52 IPC_MESSAGE_CONTROL5(FileSystemHostMsg_Open, 52 IPC_MESSAGE_CONTROL5(FileSystemHostMsg_Open,
53 int /* request_id */, 53 int /* request_id */,
54 GURL /* origin_url */, 54 GURL /* origin_url */,
55 fileapi::FileSystemType /* type */, 55 fileapi::FileSystemType /* type */,
56 int64 /* requested_size */, 56 int64 /* requested_size */,
57 bool /* create */) 57 bool /* create */)
58 58
59 // WebFileSystem::move() message. 59 // WebFileSystem::move() message.
60 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Move, 60 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Move,
61 int /* request_id */, 61 int /* request_id */,
62 FilePath /* src path */, 62 GURL /* src path */,
63 FilePath /* dest path */) 63 GURL /* dest path */)
64 64
65 // WebFileSystem::copy() message. 65 // WebFileSystem::copy() message.
66 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Copy, 66 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Copy,
67 int /* request_id */, 67 int /* request_id */,
68 FilePath /* src path */, 68 GURL /* src path */,
69 FilePath /* dest path */) 69 GURL /* dest path */)
70 70
71 // WebFileSystem::remove() message. 71 // WebFileSystem::remove() message.
72 IPC_MESSAGE_CONTROL3(FileSystemMsg_Remove, 72 IPC_MESSAGE_CONTROL3(FileSystemMsg_Remove,
73 int /* request_id */, 73 int /* request_id */,
74 FilePath /* path */, 74 GURL /* path */,
75 bool /* recursive */) 75 bool /* recursive */)
76 76
77 // WebFileSystem::readMetadata() message. 77 // WebFileSystem::readMetadata() message.
78 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_ReadMetadata, 78 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_ReadMetadata,
79 int /* request_id */, 79 int /* request_id */,
80 FilePath /* path */) 80 GURL /* path */)
81 81
82 // WebFileSystem::create() message. 82 // WebFileSystem::create() message.
83 IPC_MESSAGE_CONTROL5(FileSystemHostMsg_Create, 83 IPC_MESSAGE_CONTROL5(FileSystemHostMsg_Create,
84 int /* request_id */, 84 int /* request_id */,
85 FilePath /* path */, 85 GURL /* path */,
86 bool /* exclusive */, 86 bool /* exclusive */,
87 bool /* is_directory */, 87 bool /* is_directory */,
88 bool /* recursive */) 88 bool /* recursive */)
89 89
90 // WebFileSystem::exists() messages. 90 // WebFileSystem::exists() messages.
91 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Exists, 91 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Exists,
92 int /* request_id */, 92 int /* request_id */,
93 FilePath /* path */, 93 GURL /* path */,
94 bool /* is_directory */) 94 bool /* is_directory */)
95 95
96 // WebFileSystem::readDirectory() message. 96 // WebFileSystem::readDirectory() message.
97 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_ReadDirectory, 97 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_ReadDirectory,
98 int /* request_id */, 98 int /* request_id */,
99 FilePath /* path */) 99 GURL /* path */)
100 100
101 // WebFileWriter::write() message. 101 // WebFileWriter::write() message.
102 IPC_MESSAGE_CONTROL4(FileSystemHostMsg_Write, 102 IPC_MESSAGE_CONTROL4(FileSystemHostMsg_Write,
103 int /* request id */, 103 int /* request id */,
104 FilePath /* file path */, 104 GURL /* file path */,
105 GURL /* blob URL */, 105 GURL /* blob URL */,
106 int64 /* position */) 106 int64 /* position */)
107 107
108 // WebFileWriter::truncate() message. 108 // WebFileWriter::truncate() message.
109 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Truncate, 109 IPC_MESSAGE_CONTROL3(FileSystemHostMsg_Truncate,
110 int /* request id */, 110 int /* request id */,
111 FilePath /* file path */, 111 GURL /* file path */,
112 int64 /* length */) 112 int64 /* length */)
113 113
114 // Pepper's Touch() message. 114 // Pepper's Touch() message.
115 IPC_MESSAGE_CONTROL4(FileSystemHostMsg_TouchFile, 115 IPC_MESSAGE_CONTROL4(FileSystemHostMsg_TouchFile,
116 int /* request_id */, 116 int /* request_id */,
117 FilePath /* path */, 117 GURL /* path */,
118 base::Time /* last_access_time */, 118 base::Time /* last_access_time */,
119 base::Time /* last_modified_time */) 119 base::Time /* last_modified_time */)
120 120
121 // WebFileWriter::cancel() message. 121 // WebFileWriter::cancel() message.
122 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_CancelWrite, 122 IPC_MESSAGE_CONTROL2(FileSystemHostMsg_CancelWrite,
123 int /* request id */, 123 int /* request id */,
124 int /* id of request to cancel */) 124 int /* id of request to cancel */)
OLDNEW
« no previous file with comments | « content/common/file_system/webfilewriter_impl.cc ('k') | content/renderer/pepper_plugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698