Chromium Code Reviews| Index: ppapi/proxy/ppapi_messages.h |
| diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h |
| index 275a550e282d8024ebb383ad5d9ec4114a9c7c99..e6a422cde25ab8ea05666ad3c59b96aa7b0e8b78 100644 |
| --- a/ppapi/proxy/ppapi_messages.h |
| +++ b/ppapi/proxy/ppapi_messages.h |
| @@ -47,6 +47,8 @@ |
| #include "ppapi/proxy/serialized_flash_menu.h" |
| #include "ppapi/proxy/serialized_structs.h" |
| #include "ppapi/proxy/serialized_var.h" |
| +#include "ppapi/shared_impl/dir_contents.h" |
| +#include "ppapi/shared_impl/file_path.h" |
| #include "ppapi/shared_impl/ppapi_preferences.h" |
| #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
| #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| @@ -156,6 +158,11 @@ IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev) |
| IPC_STRUCT_TRAITS_MEMBER(ref) |
| IPC_STRUCT_TRAITS_END() |
| +IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry) |
|
yzshen1
2012/11/21 00:38:59
nit: move it the below ppapi::DeviceRefData.
raymes
2012/11/21 22:44:53
Done.
|
| + IPC_STRUCT_TRAITS_MEMBER(name) |
| + IPC_STRUCT_TRAITS_MEMBER(is_dir) |
| +IPC_STRUCT_TRAITS_END() |
| + |
| IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) |
| IPC_STRUCT_TRAITS_MEMBER(type) |
| IPC_STRUCT_TRAITS_MEMBER(name) |
| @@ -1340,17 +1347,6 @@ IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBFlash_UpdateActivity) |
| IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlash_GetDeviceID, |
| PP_Instance /* instance */, |
| ppapi::proxy::SerializedVar /* id */) |
| -IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlash_OpenFileRef, |
| - PP_Instance /* instance */, |
| - ppapi::HostResource /* file_ref */, |
| - int32_t /* mode */, |
| - IPC::PlatformFileForTransit /* file_handle */, |
| - int32_t /* result */) |
| -IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlash_QueryFileRef, |
| - PP_Instance /* instance */, |
| - ppapi::HostResource /* file_ref */, |
| - PP_FileInfo /* info */, |
| - int32_t /* result */) |
| IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetSetting, |
| PP_Instance /* instance */, |
| PP_FlashSetting /* setting */, |
| @@ -1647,6 +1643,31 @@ IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData, |
| std::vector<uint32_t> /* formats */, |
| std::vector<std::string> /* data */) |
| +// Flash file. |
| +IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_Create) |
| +IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_OpenFile, |
| + ppapi::PepperFilePath /* path */, |
| + int /* flags */) |
| +IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_OpenFileReply, |
|
yzshen1
2012/11/21 00:38:59
This one is not needed.
raymes
2012/11/21 22:44:53
good catch. Done.
|
| + IPC::PlatformFileForTransit /* transit_file */) |
| +IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_RenameFile, |
| + ppapi::PepperFilePath /* from_path */, |
| + ppapi::PepperFilePath /* to_path */) |
| +IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_DeleteFileOrDir, |
| + ppapi::PepperFilePath /* path */, |
| + bool /* recursive */) |
| +IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_CreateDir, |
| + ppapi::PepperFilePath /* path */) |
| +IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_QueryFile, |
| + ppapi::PepperFilePath /* path */) |
| +IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_QueryFileReply, |
| + base::PlatformFileInfo /* file_info */) |
| +IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_GetDirContents, |
| + ppapi::PepperFilePath /* path */) |
| +IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_GetDirContentsReply, |
| + ppapi::DirContents /* entries */) |
| +IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_CreateTemporaryFile) |
| + |
| // Flash font file. |
| IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create, |
| ppapi::proxy::SerializedFontDescription /* description */, |