Index: content/ppapi_plugin/ppapi_thread.cc |
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc |
index a02b64dff5dc6de0232a97a13f53093b95317fdf..a0ed633ff8747a0d22124f6b3af70eadda77e936 100644 |
--- a/content/ppapi_plugin/ppapi_thread.cc |
+++ b/content/ppapi_plugin/ppapi_thread.cc |
@@ -199,6 +199,21 @@ IPC::PlatformFileForTransit PpapiThread::ShareHandleWithRemote( |
return BrokerGetFileHandleForProcess(handle, peer_pid, should_close_source); |
} |
+base::SharedMemoryHandle PpapiThread::ShareSharedMemoryHandleWithRemote( |
+ const base::SharedMemoryHandle& handle, |
+ base::ProcessId remote_pid) { |
+ base::PlatformFile local_platform_file = |
+#if defined(OS_POSIX) |
+ handle.fd; |
+#elif defined(OS_WIN) |
+ handle; |
+#else |
+#error Not implemented. |
+#endif |
+ return PpapiThread::ShareHandleWithRemote(local_platform_file, remote_pid, |
+ false); |
+} |
+ |
std::set<PP_Instance>* PpapiThread::GetGloballySeenInstanceIDSet() { |
return &globally_seen_instance_ids_; |
} |