diff options
author | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-13 02:50:57 +0000 |
---|---|---|
committer | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-13 02:50:57 +0000 |
commit | 11494c5c0fa25cbee66ea9ae5f1233b0f8e8c65b (patch) | |
tree | 685571b6fcd3e122fd88e868e90f3636c0f80543 /ppapi/proxy/ppb_file_io_proxy.cc | |
parent | 64fe72dd1b2775d1113f0bce3549ff2ab75108dd (diff) | |
download | chromium_src-11494c5c0fa25cbee66ea9ae5f1233b0f8e8c65b.zip chromium_src-11494c5c0fa25cbee66ea9ae5f1233b0f8e8c65b.tar.gz chromium_src-11494c5c0fa25cbee66ea9ae5f1233b0f8e8c65b.tar.bz2 |
Exclude host-side code from the NaCl IRT proxy build.
BUG=116317
TEST=compiles
Review URL: https://codereview.chromium.org/11094060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167290 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_file_io_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppb_file_io_proxy.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ppapi/proxy/ppb_file_io_proxy.cc b/ppapi/proxy/ppb_file_io_proxy.cc index 6858655..e367da4 100644 --- a/ppapi/proxy/ppb_file_io_proxy.cc +++ b/ppapi/proxy/ppb_file_io_proxy.cc @@ -28,7 +28,9 @@ namespace { // 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 @@ PP_Resource PPB_FileIO_Proxy::CreateProxyResource(PP_Instance instance) { 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 @@ bool PPB_FileIO_Proxy::OnMessageReceived(const IPC::Message& msg) { 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 @@ bool PPB_FileIO_Proxy::OnMessageReceived(const IPC::Message& msg) { return handled; } +#if !defined(OS_NACL) void PPB_FileIO_Proxy::OnHostMsgCreate(PP_Instance instance, HostResource* result) { thunk::EnterResourceCreation enter(instance); @@ -370,6 +374,7 @@ void PPB_FileIO_Proxy::OnHostMsgWillSetLength(const HostResource& host_resource, 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 @@ void PPB_FileIO_Proxy::OnPluginMsgReadComplete( } } +#if !defined(OS_NACL) void PPB_FileIO_Proxy::GeneralCallbackCompleteInHost( int32_t pp_error, const HostResource& host_resource) { @@ -445,6 +451,7 @@ void PPB_FileIO_Proxy::ReadCallbackCompleteInHost( *data)); delete data; } +#endif // !defined(OS_NACL) } // namespace proxy } // namespace ppapi |