Index: ppapi/proxy/proxy_channel.cc |
diff --git a/ppapi/proxy/proxy_channel.cc b/ppapi/proxy/proxy_channel.cc |
index 6753fbf55a3eb7e73d37c86251f11143fe4ffcf1..7e647553e3ea345ecb51aaeb3b60d7d98ff562cc 100644 |
--- a/ppapi/proxy/proxy_channel.cc |
+++ b/ppapi/proxy/proxy_channel.cc |
@@ -74,6 +74,17 @@ IPC::PlatformFileForTransit ProxyChannel::ShareHandleWithRemote( |
should_close_source); |
} |
+base::SharedMemoryHandle ProxyChannel::ShareSharedMemoryHandleWithRemote( |
+ const base::SharedMemoryHandle& handle) { |
+#if defined(OS_POSIX) |
+ return ShareHandleWithRemote(handle.fd, false); |
+#elif defined(OS_WIN) |
+ return ShareHandleWithRemote(handle, false); |
+#else |
+#error Not implemented. |
+#endif |
+} |
+ |
bool ProxyChannel::Send(IPC::Message* msg) { |
if (test_sink_) |
return test_sink_->Send(msg); |