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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 130053003: [Pepper] Wire up append mode writing support of FileIO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
« no previous file with comments | « ppapi/proxy/nacl_message_scanner_unittest.cc ('k') | ppapi/shared_impl/file_growth.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "ppapi/proxy/host_resolver_private_resource.h" 52 #include "ppapi/proxy/host_resolver_private_resource.h"
53 #include "ppapi/proxy/network_list_resource.h" 53 #include "ppapi/proxy/network_list_resource.h"
54 #include "ppapi/proxy/ppapi_param_traits.h" 54 #include "ppapi/proxy/ppapi_param_traits.h"
55 #include "ppapi/proxy/ppapi_proxy_export.h" 55 #include "ppapi/proxy/ppapi_proxy_export.h"
56 #include "ppapi/proxy/resource_message_params.h" 56 #include "ppapi/proxy/resource_message_params.h"
57 #include "ppapi/proxy/serialized_flash_menu.h" 57 #include "ppapi/proxy/serialized_flash_menu.h"
58 #include "ppapi/proxy/serialized_handle.h" 58 #include "ppapi/proxy/serialized_handle.h"
59 #include "ppapi/proxy/serialized_structs.h" 59 #include "ppapi/proxy/serialized_structs.h"
60 #include "ppapi/proxy/serialized_var.h" 60 #include "ppapi/proxy/serialized_var.h"
61 #include "ppapi/shared_impl/dir_contents.h" 61 #include "ppapi/shared_impl/dir_contents.h"
62 #include "ppapi/shared_impl/file_growth.h"
62 #include "ppapi/shared_impl/file_path.h" 63 #include "ppapi/shared_impl/file_path.h"
63 #include "ppapi/shared_impl/file_ref_create_info.h" 64 #include "ppapi/shared_impl/file_ref_create_info.h"
64 #include "ppapi/shared_impl/ppapi_nacl_channel_args.h" 65 #include "ppapi/shared_impl/ppapi_nacl_channel_args.h"
65 #include "ppapi/shared_impl/ppapi_preferences.h" 66 #include "ppapi/shared_impl/ppapi_preferences.h"
66 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 67 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
67 #include "ppapi/shared_impl/ppb_input_event_shared.h" 68 #include "ppapi/shared_impl/ppb_input_event_shared.h"
68 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" 69 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h"
69 #include "ppapi/shared_impl/ppb_view_shared.h" 70 #include "ppapi/shared_impl/ppb_view_shared.h"
70 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" 71 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
71 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" 72 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 204
204 IPC_STRUCT_TRAITS_BEGIN(PP_FileInfo) 205 IPC_STRUCT_TRAITS_BEGIN(PP_FileInfo)
205 IPC_STRUCT_TRAITS_MEMBER(size) 206 IPC_STRUCT_TRAITS_MEMBER(size)
206 IPC_STRUCT_TRAITS_MEMBER(type) 207 IPC_STRUCT_TRAITS_MEMBER(type)
207 IPC_STRUCT_TRAITS_MEMBER(system_type) 208 IPC_STRUCT_TRAITS_MEMBER(system_type)
208 IPC_STRUCT_TRAITS_MEMBER(creation_time) 209 IPC_STRUCT_TRAITS_MEMBER(creation_time)
209 IPC_STRUCT_TRAITS_MEMBER(last_access_time) 210 IPC_STRUCT_TRAITS_MEMBER(last_access_time)
210 IPC_STRUCT_TRAITS_MEMBER(last_modified_time) 211 IPC_STRUCT_TRAITS_MEMBER(last_modified_time)
211 IPC_STRUCT_TRAITS_END() 212 IPC_STRUCT_TRAITS_END()
212 213
214 IPC_STRUCT_TRAITS_BEGIN(ppapi::FileGrowth)
215 IPC_STRUCT_TRAITS_MEMBER(max_written_offset)
216 IPC_STRUCT_TRAITS_MEMBER(append_mode_write_amount)
217 IPC_STRUCT_TRAITS_END()
218
213 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) 219 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
214 IPC_STRUCT_TRAITS_MEMBER(type) 220 IPC_STRUCT_TRAITS_MEMBER(type)
215 IPC_STRUCT_TRAITS_MEMBER(name) 221 IPC_STRUCT_TRAITS_MEMBER(name)
216 IPC_STRUCT_TRAITS_MEMBER(id) 222 IPC_STRUCT_TRAITS_MEMBER(id)
217 IPC_STRUCT_TRAITS_END() 223 IPC_STRUCT_TRAITS_END()
218 224
219 IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry) 225 IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry)
220 IPC_STRUCT_TRAITS_MEMBER(name) 226 IPC_STRUCT_TRAITS_MEMBER(name)
221 IPC_STRUCT_TRAITS_MEMBER(is_dir) 227 IPC_STRUCT_TRAITS_MEMBER(is_dir)
222 IPC_STRUCT_TRAITS_END() 228 IPC_STRUCT_TRAITS_END()
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, 1245 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1240 std::vector<ppapi::FileRefCreateInfo> /* files */) 1246 std::vector<ppapi::FileRefCreateInfo> /* files */)
1241 1247
1242 // FileIO 1248 // FileIO
1243 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create) 1249 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create)
1244 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open, 1250 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open,
1245 PP_Resource /* file_ref_resource */, 1251 PP_Resource /* file_ref_resource */,
1246 int32_t /* open_flags */) 1252 int32_t /* open_flags */)
1247 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileIO_OpenReply, 1253 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileIO_OpenReply,
1248 PP_Resource /* quota_file_system */, 1254 PP_Resource /* quota_file_system */,
1249 int64_t /* max_written_offset */) 1255 int64_t /* file_size */)
1250 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_Close, 1256 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_Close,
1251 int64_t /* max_written_offset */) 1257 ppapi::FileGrowth /* file_growth */)
1252 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch, 1258 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch,
1253 PP_Time /* last_access_time */, 1259 PP_Time /* last_access_time */,
1254 PP_Time /* last_modified_time */) 1260 PP_Time /* last_modified_time */)
1255 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength, 1261 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength,
1256 int64_t /* length */) 1262 int64_t /* length */)
1257 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush) 1263 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush)
1258 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle) 1264 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle)
1259 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply) 1265 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply)
1260 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) 1266 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply)
1261 1267
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 // Passed from renderer to browser. Creates an already-open file system with a 1336 // Passed from renderer to browser. Creates an already-open file system with a
1331 // given |root_url| and |file_system_type|. 1337 // given |root_url| and |file_system_type|.
1332 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_CreateFromRenderer, 1338 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_CreateFromRenderer,
1333 std::string /* root_url */, 1339 std::string /* root_url */,
1334 PP_FileSystemType /* file_system_type */) 1340 PP_FileSystemType /* file_system_type */)
1335 // Nested within a ResourceVar for file systems being passed from the renderer 1341 // Nested within a ResourceVar for file systems being passed from the renderer
1336 // to the plugin. Creates an already-open file system resource on the plugin, 1342 // to the plugin. Creates an already-open file system resource on the plugin,
1337 // linked to the existing resource host given in the ResourceVar. 1343 // linked to the existing resource host given in the ResourceVar.
1338 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileSystem_CreateFromPendingHost, 1344 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileSystem_CreateFromPendingHost,
1339 PP_FileSystemType /* file_system_type */) 1345 PP_FileSystemType /* file_system_type */)
1340 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need
1341 // to typedef it to avoid that.
1342 typedef std::map<int32_t, int64_t> FileOffsetMap;
1343 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_ReserveQuota, 1346 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_ReserveQuota,
1344 int64_t /* amount */, 1347 int64_t /* amount */,
1345 FileOffsetMap /* max_written_offsets */) 1348 ppapi::FileGrowthMap /* file_growths */)
1346 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileSystem_ReserveQuotaReply, 1349 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileSystem_ReserveQuotaReply,
1347 int64_t /* amount */, 1350 int64_t /* amount */,
1348 FileOffsetMap /* max_written_offsets */) 1351 ppapi::FileSizeMap /* file_sizes */)
1349 1352
1350 // Flash DRM ------------------------------------------------------------------ 1353 // Flash DRM ------------------------------------------------------------------
1351 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create) 1354 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create)
1352 1355
1353 // Requests the device ID. 1356 // Requests the device ID.
1354 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetDeviceID) 1357 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetDeviceID)
1355 // Reply for GetDeviceID which includes the device ID as a string. 1358 // Reply for GetDeviceID which includes the device ID as a string.
1356 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetDeviceIDReply, 1359 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetDeviceIDReply,
1357 std::string /* id */) 1360 std::string /* id */)
1358 1361
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
2051 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2054 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2052 PP_TalkPermission /* permission */) 2055 PP_TalkPermission /* permission */)
2053 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2056 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2054 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2057 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2055 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2058 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2056 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2059 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2057 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2060 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2058 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2061 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2059 2062
2060 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2063 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/nacl_message_scanner_unittest.cc ('k') | ppapi/shared_impl/file_growth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698