DescriptionMake PlatformFileForTransit a class on Windows.
This is required to transition consumers of PlatformFileForTransit into using
attachment brokering. Alias PlatformFileForTransit to base::SharedMemoryHandle,
since that class has the exact semantics required for brokering a HANDLE.
I tried to avoid unnecessary functionality changes, but couldn't avoid changing
some logic in NaclHostMessageFilter and DesktopSessionProxy. Both classes
receive an IPC message that contain a HANDLE from the sender process, and try to
copy the HANDLE into the current process. By switching to an
attachment-brokerable class, PlatformFileForTransit is automatically brokered,
so the duplication logic is no longer required.
Expect future CLs to convert the remaining consumers of PlatformFileForTransit
into using attachment brokering.
BUG=493414
Committed: https://crrev.com/19e5f6905203ecd6adbbc4bfe57e086eb61028c6
Cr-Commit-Position: refs/heads/master@{#383849}
Patch Set 1 #Patch Set 2 : Fix bug. #Patch Set 3 : Fix bug. #Patch Set 4 : Fix runtime error. Clang format. #Patch Set 5 : Fix tests. #
Total comments: 6
Patch Set 6 : Comments from mseaborn. #Messages
Total messages: 40 (20 generated)
|