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

Unified Diff: ppapi/proxy/proxy_channel.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: Remove changes to base/memory. 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: ppapi/proxy/proxy_channel.cc
diff --git a/ppapi/proxy/proxy_channel.cc b/ppapi/proxy/proxy_channel.cc
index 6753fbf55a3eb7e73d37c86251f11143fe4ffcf1..030b042b8afc9fa00cb1b286a6af2164b0bccd3e 100644
--- a/ppapi/proxy/proxy_channel.cc
+++ b/ppapi/proxy/proxy_channel.cc
@@ -74,6 +74,18 @@ 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(
+ reinterpret_cast<HANDLE>(static_cast<intptr_t>(handle)), false);
piman 2015/06/01 22:16:08 ditto wrt casts
erikchen 2015/06/01 23:48:53 Done.
+#else
+#error Not implemented.
+#endif
+}
+
bool ProxyChannel::Send(IPC::Message* msg) {
if (test_sink_)
return test_sink_->Send(msg);

Powered by Google App Engine
This is Rietveld 408576698