Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: ppapi/proxy/ppb_file_io_proxy.cc

Issue 11094060: Exclude host-side code from the NaCl IRT proxy build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppb_core_proxy.cc ('k') | ppapi/proxy/ppb_file_ref_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ppapi/proxy/ppb_core_proxy.cc ('k') | ppapi/proxy/ppb_file_ref_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698