Index: ppapi/proxy/ppapi_messages.h |
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h |
index f1d0ead635061385eaea19e24fcc1e3cd0255879..60df04ec53313a764311d01ecbe6a9f636807d30 100644 |
--- a/ppapi/proxy/ppapi_messages.h |
+++ b/ppapi/proxy/ppapi_messages.h |
@@ -59,6 +59,7 @@ |
#include "ppapi/proxy/serialized_structs.h" |
#include "ppapi/proxy/serialized_var.h" |
#include "ppapi/shared_impl/dir_contents.h" |
+#include "ppapi/shared_impl/file_growth.h" |
#include "ppapi/shared_impl/file_path.h" |
#include "ppapi/shared_impl/file_ref_create_info.h" |
#include "ppapi/shared_impl/ppapi_nacl_channel_args.h" |
@@ -210,6 +211,11 @@ IPC_STRUCT_TRAITS_BEGIN(PP_FileInfo) |
IPC_STRUCT_TRAITS_MEMBER(last_modified_time) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(ppapi::FileGrowth) |
+ IPC_STRUCT_TRAITS_MEMBER(max_written_offset) |
+ IPC_STRUCT_TRAITS_MEMBER(append_mode_write_amount) |
+IPC_STRUCT_TRAITS_END() |
+ |
IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) |
IPC_STRUCT_TRAITS_MEMBER(type) |
IPC_STRUCT_TRAITS_MEMBER(name) |
@@ -1230,7 +1236,7 @@ IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileIO_OpenReply, |
PP_Resource /* quota_file_system */, |
int64_t /* max_written_offset */) |
IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_Close, |
- int64_t /* max_written_offset */) |
+ ppapi::FileGrowth /* file_growth */) |
IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch, |
PP_Time /* last_access_time */, |
PP_Time /* last_modified_time */) |
@@ -1319,15 +1325,12 @@ IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_CreateFromRenderer, |
// linked to the existing resource host given in the ResourceVar. |
IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileSystem_CreateFromPendingHost, |
PP_FileSystemType /* file_system_type */) |
-// IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need |
-// to typedef it to avoid that. |
-typedef std::map<int32_t, int64_t> FileOffsetMap; |
IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_ReserveQuota, |
int64_t /* amount */, |
- FileOffsetMap /* max_written_offsets */) |
+ ppapi::FileGrowthMap /* file_growth */) |
bbudge
2014/01/21 18:03:51
s/file_growth/file_growths or file_growth_map
tzik
2014/01/22 07:17:11
Done.
|
IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileSystem_ReserveQuotaReply, |
int64_t /* amount */, |
- FileOffsetMap /* max_written_offsets */) |
+ ppapi::FileSizeMap /* max_written_offsets */) |
// Flash DRM ------------------------------------------------------------------ |
IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create) |