| Index: ppapi/proxy/ppapi_param_traits.cc
|
| ===================================================================
|
| --- ppapi/proxy/ppapi_param_traits.cc (revision 154143)
|
| +++ ppapi/proxy/ppapi_param_traits.cc (working copy)
|
| @@ -323,6 +323,7 @@
|
| ParamTraits<base::SharedMemoryHandle>::Write(m, p.shmem());
|
| break;
|
| case ppapi::proxy::SerializedHandle::SOCKET:
|
| + case ppapi::proxy::SerializedHandle::CHANNEL_HANDLE:
|
| ParamTraits<IPC::PlatformFileForTransit>::Write(m, p.descriptor());
|
| break;
|
| case ppapi::proxy::SerializedHandle::INVALID:
|
| @@ -355,6 +356,14 @@
|
| }
|
| break;
|
| }
|
| + case ppapi::proxy::SerializedHandle::CHANNEL_HANDLE: {
|
| + IPC::PlatformFileForTransit desc;
|
| + if (ParamTraits<IPC::PlatformFileForTransit>::Read(m, iter, &desc)) {
|
| + r->set_channel_handle(desc);
|
| + return true;
|
| + }
|
| + break;
|
| + }
|
| case ppapi::proxy::SerializedHandle::INVALID:
|
| return true;
|
| // No default so the compiler will warn us if a new type is added.
|
|
|