| Index: ppapi/proxy/ppb_file_ref_proxy.cc
|
| ===================================================================
|
| --- ppapi/proxy/ppb_file_ref_proxy.cc (revision 161132)
|
| +++ ppapi/proxy/ppb_file_ref_proxy.cc (working copy)
|
| @@ -192,6 +192,7 @@
|
| bool PPB_FileRef_Proxy::OnMessageReceived(const IPC::Message& msg) {
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(PPB_FileRef_Proxy, msg)
|
| +#if !defined(OS_NACL)
|
| IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFileRef_Create, OnMsgCreate)
|
| IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFileRef_GetParent, OnMsgGetParent)
|
| IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFileRef_MakeDirectory,
|
| @@ -201,6 +202,7 @@
|
| IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFileRef_Rename, OnMsgRename)
|
| IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFileRef_GetAbsolutePath,
|
| OnMsgGetAbsolutePath)
|
| +#endif // !defined(OS_NACL)
|
|
|
| IPC_MESSAGE_HANDLER(PpapiMsg_PPBFileRef_CallbackComplete,
|
| OnMsgCallbackComplete)
|
| @@ -225,6 +227,7 @@
|
| return (new FileRef(serialized))->GetReference();
|
| }
|
|
|
| +#if !defined(OS_NACL)
|
| void PPB_FileRef_Proxy::OnMsgCreate(const HostResource& file_system,
|
| const std::string& path,
|
| PPB_FileRef_CreateInfo* result) {
|
| @@ -298,6 +301,16 @@
|
| result.Return(dispatcher(), enter.object()->GetAbsolutePath());
|
| }
|
|
|
| +void PPB_FileRef_Proxy::OnCallbackCompleteInHost(
|
| + int32_t result,
|
| + const HostResource& host_resource,
|
| + int callback_id) {
|
| + // Execute OnMsgCallbackComplete in the plugin process.
|
| + Send(new PpapiMsg_PPBFileRef_CallbackComplete(
|
| + API_ID_PPB_FILE_REF, host_resource, callback_id, result));
|
| +}
|
| +#endif // !defined(OS_NACL)
|
| +
|
| void PPB_FileRef_Proxy::OnMsgCallbackComplete(
|
| const HostResource& host_resource,
|
| int callback_id,
|
| @@ -308,14 +321,5 @@
|
| static_cast<FileRef*>(enter.object())->ExecuteCallback(callback_id, result);
|
| }
|
|
|
| -void PPB_FileRef_Proxy::OnCallbackCompleteInHost(
|
| - int32_t result,
|
| - const HostResource& host_resource,
|
| - int callback_id) {
|
| - // Execute OnMsgCallbackComplete in the plugin process.
|
| - Send(new PpapiMsg_PPBFileRef_CallbackComplete(
|
| - API_ID_PPB_FILE_REF, host_resource, callback_id, result));
|
| -}
|
| -
|
| } // namespace proxy
|
| } // namespace ppapi
|
|
|