Chromium Code Reviews| Index: chrome/nacl/nacl_ipc_adapter.cc |
| =================================================================== |
| --- chrome/nacl/nacl_ipc_adapter.cc (revision 143037) |
| +++ chrome/nacl/nacl_ipc_adapter.cc (working copy) |
| @@ -74,6 +74,7 @@ |
| int /* flags */) { |
| if (msg->iov_length != 1) |
| return -1; |
| + msg->ndesc_length = 0; // Messages with handles aren't supported yet. |
|
Mark Seaborn
2012/06/20 19:24:40
Nit: "descriptors" is the proper term in this cont
bbudge
2012/06/21 00:00:46
Done.
|
| return static_cast<ssize_t>( |
| ToAdapter(handle)->BlockingReceive(static_cast<char*>(msg->iov[0].base), |
| msg->iov[0].length)); |
| @@ -281,6 +282,12 @@ |
| return MakeNaClDescCustom(this); |
| } |
| +#if defined(OS_POSIX) |
| +int NaClIPCAdapter::TakeClientFileDescriptor() { |
| + return io_thread_data_.channel_->TakeClientFileDescriptor(); |
| +} |
| +#endif |
| + |
| bool NaClIPCAdapter::OnMessageReceived(const IPC::Message& message) { |
| { |
| base::AutoLock lock(lock_); |