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

Unified Diff: content/common/sandbox_init_win.cc

Issue 1166473003: Add a method BrokerDuplicateSharedMemoryHandle() to the sandbox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shared_memory_add_helper_methods
Patch Set: Pass SharedMemoryHandle by const ref. 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
« no previous file with comments | « content/common/sandbox_init_mac.cc ('k') | content/public/common/sandbox_init.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_init_win.cc
diff --git a/content/common/sandbox_init_win.cc b/content/common/sandbox_init_win.cc
index 16e3e4afbd4a66e9ecf75903fcb2209820119d8d..3f80f33700973c7f25c4e590212987628d3195c2 100644
--- a/content/common/sandbox_init_win.cc
+++ b/content/common/sandbox_init_win.cc
@@ -42,4 +42,12 @@ bool InitializeSandbox(sandbox::SandboxInterfaceInfo* sandbox_info) {
return InitTargetServices(target_services);
}
+bool BrokerDuplicateSharedMemoryHandle(
+ const base::SharedMemoryHandle& source_handle,
+ base::ProcessId target_process_id,
+ base::SharedMemoryHandle* target_handle) {
+ return BrokerDuplicateHandle(source_handle, target_process_id, target_handle,
+ 0, DUPLICATE_SAME_ACCESS);
+}
+
} // namespace content
« no previous file with comments | « content/common/sandbox_init_mac.cc ('k') | content/public/common/sandbox_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698