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

Unified Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 1154613006: Update pepper to not assume that SharedMemoryHandle is an int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another nits pass. Created 5 years, 7 months 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
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_;
}

Powered by Google App Engine
This is Rietveld 408576698