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

Unified Diff: base/memory/shared_memory.h

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Rebase. Created 3 years, 8 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: base/memory/shared_memory.h
diff --git a/base/memory/shared_memory.h b/base/memory/shared_memory.h
index 17dd60fa512fc241d24e4769a9f8cd1dd4eed8cc..445cc715508bef8bd8574a0bfb6a7dca465199dc 100644
--- a/base/memory/shared_memory.h
+++ b/base/memory/shared_memory.h
@@ -213,17 +213,6 @@ class BASE_EXPORT SharedMemory {
// pass the sample handle to the IPC subsystem twice.
SharedMemoryHandle GetReadOnlyHandle();
- // Shares the shared memory to another process. Attempts
- // to create a platform-specific new_handle which can be
- // used in a remote process to access the shared memory
- // file. new_handle is an output parameter to receive
- // the handle for use in the remote process.
- // Returns true on success, false otherwise.
- bool ShareToProcess(ProcessHandle process,
- SharedMemoryHandle* new_handle) {
- return ShareToProcessCommon(process, new_handle);
- }
-
#if defined(OS_POSIX) && (!defined(OS_MACOSX) || defined(OS_IOS)) && \
!defined(OS_NACL)
using UniqueId = std::pair<dev_t, ino_t>;
@@ -245,13 +234,6 @@ class BASE_EXPORT SharedMemory {
bool FilePathForMemoryName(const std::string& mem_name, FilePath* path);
#endif
-#if defined(OS_MACOSX)
- bool Share(SharedMemoryHandle* new_handle);
-#endif
-
- bool ShareToProcessCommon(ProcessHandle process,
- SharedMemoryHandle* new_handle);
-
#if defined(OS_WIN)
// If true indicates this came from an external source so needs extra checks
// before being mapped.

Powered by Google App Engine
This is Rietveld 408576698