Index: ppapi/proxy/ppb_file_io_proxy.cc |
=================================================================== |
--- ppapi/proxy/ppb_file_io_proxy.cc (revision 167150) |
+++ ppapi/proxy/ppb_file_io_proxy.cc (working copy) |
@@ -28,7 +28,9 @@ |
// partial read. |
static const int32_t kMaxReadSize = 33554432; // 32MB |
+#if !defined(OS_NACL) |
typedef EnterHostFromHostResourceForceCallback<PPB_FileIO_API> EnterHostFileIO; |
+#endif |
typedef EnterPluginFromHostResource<PPB_FileIO_API> EnterPluginFileIO; |
class FileIO : public PPB_FileIO_Shared { |
@@ -218,6 +220,7 @@ |
bool PPB_FileIO_Proxy::OnMessageReceived(const IPC::Message& msg) { |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(PPB_FileIO_Proxy, msg) |
+ #if !defined(OS_NACL) |
// Plugin -> host message. |
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFileIO_Create, OnHostMsgCreate) |
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFileIO_Open, OnHostMsgOpen) |
@@ -231,7 +234,7 @@ |
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFileIO_WillWrite, OnHostMsgWillWrite) |
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFileIO_WillSetLength, |
OnHostMsgWillSetLength) |
- |
+#endif // !defined(OS_NACL) |
// Host -> plugin messages. |
IPC_MESSAGE_HANDLER(PpapiMsg_PPBFileIO_GeneralComplete, |
OnPluginMsgGeneralComplete) |
@@ -246,6 +249,7 @@ |
return handled; |
} |
+#if !defined(OS_NACL) |
void PPB_FileIO_Proxy::OnHostMsgCreate(PP_Instance instance, |
HostResource* result) { |
thunk::EnterResourceCreation enter(instance); |
@@ -370,6 +374,7 @@ |
if (enter.succeeded()) |
enter.SetResult(enter.object()->WillSetLength(length, enter.callback())); |
} |
+#endif // !defined(OS_NACL) |
void PPB_FileIO_Proxy::OnPluginMsgGeneralComplete( |
const HostResource& host_resource, |
@@ -410,6 +415,7 @@ |
} |
} |
+#if !defined(OS_NACL) |
void PPB_FileIO_Proxy::GeneralCallbackCompleteInHost( |
int32_t pp_error, |
const HostResource& host_resource) { |
@@ -445,6 +451,7 @@ |
*data)); |
delete data; |
} |
+#endif // !defined(OS_NACL) |
} // namespace proxy |
} // namespace ppapi |