DescriptionAdd methods to base::SharedMemory to replace common SharedMemoryHandle operations.
Existing Chrome code assumes that base::SharedMemoryHandle is typedefed to
"int", and that base::SharedMemoryHandle is backed by an fd on POSIX. This CL
adds the static methods ShallowCopyOfHandle() and DeepCopyOfHandle(), which will
replace existing "int" copies and calls to dup().
BUG=466437
Committed: https://crrev.com/8539d85a060f79993354ba68b1fb3c5a66b119ad
Cr-Commit-Position: refs/heads/master@{#332098}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Rebase against top of tree. #Patch Set 3 : Comments from thakis. #Patch Set 4 : Comments from thakis. #Patch Set 5 : Add relevant methods to shared_memory_win. #
Messages
Total messages: 16 (4 generated)
|