Index: trunk/src/ppapi/proxy/ppapi_messages.h |
=================================================================== |
--- trunk/src/ppapi/proxy/ppapi_messages.h (revision 221543) |
+++ trunk/src/ppapi/proxy/ppapi_messages.h (working copy) |
@@ -202,12 +202,11 @@ |
IPC_STRUCT_TRAITS_MEMBER(is_dir) |
IPC_STRUCT_TRAITS_END() |
-IPC_STRUCT_TRAITS_BEGIN(ppapi::FileRefCreateInfo) |
+IPC_STRUCT_TRAITS_BEGIN(ppapi::FileRef_CreateInfo) |
IPC_STRUCT_TRAITS_MEMBER(file_system_type) |
IPC_STRUCT_TRAITS_MEMBER(internal_path) |
IPC_STRUCT_TRAITS_MEMBER(display_name) |
- IPC_STRUCT_TRAITS_MEMBER(browser_pending_host_resource_id) |
- IPC_STRUCT_TRAITS_MEMBER(renderer_pending_host_resource_id) |
+ IPC_STRUCT_TRAITS_MEMBER(pending_host_resource_id) |
IPC_STRUCT_TRAITS_MEMBER(file_system_plugin_resource) |
IPC_STRUCT_TRAITS_END() |
@@ -299,7 +298,8 @@ |
IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem) |
IPC_STRUCT_TRAITS_MEMBER(is_file) |
IPC_STRUCT_TRAITS_MEMBER(data) |
- IPC_STRUCT_TRAITS_MEMBER(file_ref_pp_resource) |
+ // Note: we don't serialize file_ref. |
+ IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) |
IPC_STRUCT_TRAITS_MEMBER(start_offset) |
IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) |
IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) |
@@ -486,6 +486,30 @@ |
ppapi::proxy::SerializedHandle /* socket_handle */, |
ppapi::proxy::SerializedHandle /* handle */) |
+// PPB_FileRef. |
+// TODO(teravest): Remove these messages when we've switched over to the "new" |
+// proxy. |
+IPC_MESSAGE_ROUTED3( |
+ PpapiMsg_PPBFileRef_CallbackComplete, |
+ ppapi::HostResource /* resource */, |
+ uint32_t /* callback_id */, |
+ int32_t /* result */) |
+ |
+IPC_MESSAGE_ROUTED4( |
+ PpapiMsg_PPBFileRef_QueryCallbackComplete, |
+ ppapi::HostResource /* resource */, |
+ PP_FileInfo /* file_info */, |
+ uint32_t /* callback_id */, |
+ int32_t /* result */) |
+ |
+IPC_MESSAGE_ROUTED5( |
+ PpapiMsg_PPBFileRef_ReadDirectoryEntriesCallbackComplete, |
+ ppapi::HostResource /* resource */, |
+ std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */, |
+ std::vector<PP_FileType> /* file_types */, |
+ uint32_t /* callback_id */, |
+ int32_t /* result */) |
+ |
// PPB_FileSystem. |
IPC_MESSAGE_ROUTED2( |
PpapiMsg_PPBFileSystem_OpenComplete, |
@@ -748,6 +772,43 @@ |
IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
ppapi::HostResource) |
+// PPB_FileRef. |
+// TODO(teravest): Remove these messages when we've switched over to the "new" |
+// proxy. |
+IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileRef_Create, |
+ PP_Instance /* instance */, |
+ PP_Resource /* file_system */, |
+ std::string /* path */, |
+ ppapi::PPB_FileRef_CreateInfo /* result */) |
+IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, |
+ ppapi::HostResource /* file_ref */, |
+ ppapi::PPB_FileRef_CreateInfo /* result */) |
+IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, |
+ ppapi::HostResource /* file_ref */, |
+ PP_Bool /* make_ancestors */, |
+ uint32_t /* callback_id */) |
+IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch, |
+ ppapi::HostResource /* file_ref */, |
+ PP_Time /* last_access */, |
+ PP_Time /* last_modified */, |
+ uint32_t /* callback_id */) |
+IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete, |
+ ppapi::HostResource /* file_ref */, |
+ uint32_t /* callback_id */) |
+IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename, |
+ ppapi::HostResource /* file_ref */, |
+ ppapi::HostResource /* new_file_ref */, |
+ uint32_t /* callback_id */) |
+IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Query, |
+ ppapi::HostResource /* file_ref */, |
+ uint32_t /* callback_id */) |
+IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath, |
+ ppapi::HostResource /* file_ref */, |
+ ppapi::proxy::SerializedVar /* result */) |
+IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_ReadDirectoryEntries, |
+ ppapi::HostResource /* file_ref */, |
+ uint32_t /* callback_id */) |
+ |
// PPB_Graphics3D. |
IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, |
PP_Instance /* instance */, |
@@ -1141,6 +1202,7 @@ |
ppapi::proxy::ResourceMessageReplyParams /* reply_params */, |
IPC::Message /* nested_msg */) |
+ |
IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall, |
ppapi::proxy::ResourceMessageCallParams /* call_params */, |
IPC::Message /* nested_msg */, |
@@ -1214,7 +1276,7 @@ |
std::string /* suggested_file_name */, |
std::vector<std::string> /* accept_mime_types */) |
IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
- std::vector<ppapi::FileRefCreateInfo> /* files */) |
+ std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
// FileIO |
IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create) |
@@ -1290,10 +1352,10 @@ |
// location indicated by the FileRef. |
IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_ReadDirectoryEntries) |
-// FileRefCreateInfo does not provide file type information, so two |
+// FileRef_CreateInfo does not provide file type information, so two |
// corresponding vectors are returned. |
IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileRef_ReadDirectoryEntriesReply, |
- std::vector<ppapi::FileRefCreateInfo> /* files */, |
+ std::vector<ppapi::FileRef_CreateInfo> /* files */, |
std::vector<PP_FileType> /* file_types */) |
// Requests that the browser reply with the absolute path to the indicated |
@@ -1334,7 +1396,7 @@ |
// Reply message for GetVoucherFile which contains the CreateInfo for a |
// PPB_FileRef which points to the voucher file. |
IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetVoucherFileReply, |
- ppapi::FileRefCreateInfo /* file_info */) |
+ ppapi::PPB_FileRef_CreateInfo /* file_info */) |
// Gamepad. |
IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
@@ -1713,6 +1775,30 @@ |
IPC_MESSAGE_CONTROL1(PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply, |
std::string /* families */) |
+// FileRef. |
+// Requests that the browser reply with file system and path information about |
+// the resource indicated in |params| which exists in the given |
+// |child_process_id|. |routing_id| is sent so that the reply can be routed |
+// properly in the renderer. |
+// Only sent from the renderer to the browser. |
+IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileRef_GetInfoForRenderer, |
+ int /* routing_id */, |
+ int /* child_process_id */, |
+ int32_t /* sequence */, |
+ std::vector<PP_Resource> /* resources */) |
+ |
+// Reply to PpapiHostMsg_FileRef_GetInfoForRenderer with a sequence number for |
+// invoking the right callback, |fs_type| which indicates the file system, and |
+// path information in either |file_system_url_spec| (for internal file systems) |
+// or |external_path| (for external file systems). |
+// Only sent from the browser to the renderer. |
+IPC_MESSAGE_ROUTED5(PpapiHostMsg_FileRef_GetInfoForRendererReply, |
+ int32_t /* sequence */, |
+ std::vector<PP_Resource> /* resources */, |
+ std::vector<PP_FileSystemType> /* fs_type */, |
+ std::vector<std::string> /* file_system_url_spec */, |
+ std::vector<base::FilePath> /* external_path */) |
+ |
// Flash ----------------------------------------------------------------------- |
IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) |