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

Unified Diff: content/renderer/pepper/pepper_proxy_channel_delegate_impl.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/renderer/pepper/pepper_proxy_channel_delegate_impl.cc
diff --git a/content/renderer/pepper/pepper_proxy_channel_delegate_impl.cc b/content/renderer/pepper/pepper_proxy_channel_delegate_impl.cc
index 3cada305cd0f276a65237e7cc0df50a8d64c1820..aa0cac403b1bffa742bc32cd6d7584ce67b2caf1 100644
--- a/content/renderer/pepper/pepper_proxy_channel_delegate_impl.cc
+++ b/content/renderer/pepper/pepper_proxy_channel_delegate_impl.cc
@@ -31,4 +31,19 @@ PepperProxyChannelDelegateImpl::ShareHandleWithRemote(
return BrokerGetFileHandleForProcess(handle, remote_pid, should_close_source);
}
+base::SharedMemoryHandle
+PepperProxyChannelDelegateImpl::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 ShareHandleWithRemote(local_platform_file, remote_pid, false);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698