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

Unified Diff: content/public/renderer/renderer_ppapi_host.h

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/public/renderer/renderer_ppapi_host.h
diff --git a/content/public/renderer/renderer_ppapi_host.h b/content/public/renderer/renderer_ppapi_host.h
index e13c31371ca490dff39d849306249038d19e19ec..00f23c0c7b38aae663d68f6e2f68ea4eb9068779 100644
--- a/content/public/renderer/renderer_ppapi_host.h
+++ b/content/public/renderer/renderer_ppapi_host.h
@@ -10,6 +10,7 @@
#include "base/callback_forward.h"
#include "base/files/file.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/shared_memory.h"
#include "base/process/process.h"
#include "content/common/content_export.h"
#include "ipc/ipc_platform_file.h"
@@ -120,6 +121,13 @@ class RendererPpapiHost {
base::PlatformFile handle,
bool should_close_source) = 0;
+ // Shares a shared memory handle with the remote side. It
+ // returns a handle that should be sent in exactly one IPC message. Upon
+ // receipt, the remote side then owns that handle. Note: if sending the
+ // message fails, the returned handle is properly closed by the IPC system.
+ virtual base::SharedMemoryHandle ShareSharedMemoryHandleWithRemote(
+ const base::SharedMemoryHandle& handle) = 0;
+
// Returns true if the plugin is running in process.
virtual bool IsRunningInProcess() const = 0;

Powered by Google App Engine
This is Rietveld 408576698