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

Unified Diff: base/memory/shared_memory.h

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. 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
« no previous file with comments | « base/memory/discardable_shared_memory_unittest.cc ('k') | base/memory/shared_memory_handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/shared_memory.h
diff --git a/base/memory/shared_memory.h b/base/memory/shared_memory.h
index d1be55b8cb9d3246fc7d0c76ae07f3459036140b..154d808cc8cd71bbd13ba531e9a6643ecd5b6f89 100644
--- a/base/memory/shared_memory.h
+++ b/base/memory/shared_memory.h
@@ -215,17 +215,6 @@ class BASE_EXPORT SharedMemory {
// failure.
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>;
@@ -247,13 +236,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.
« no previous file with comments | « base/memory/discardable_shared_memory_unittest.cc ('k') | base/memory/shared_memory_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698