Lines Matching refs:platform_handle
70 MojoPlatformHandle platform_handle = { in TakeMojoHandle() local
71 sizeof(platform_handle), MOJO_PLATFORM_HANDLE_TYPE_MACH_PORT, in TakeMojoHandle()
74 if (MojoWrapPlatformHandle(&platform_handle, nullptr, &wrapped_handle) != in TakeMojoHandle()
84 MojoPlatformHandle platform_handle = { in TakeMojoHandle() local
85 sizeof(platform_handle), MOJO_PLATFORM_HANDLE_TYPE_FUCHSIA_HANDLE, in TakeMojoHandle()
88 if (MojoWrapPlatformHandle(&platform_handle, nullptr, &wrapped_handle) != in TakeMojoHandle()
113 MojoPlatformHandle platform_handle = {sizeof(platform_handle), 0, 0}; in CreateFromMojoHandle() local
115 handle.release().value(), nullptr, &platform_handle); in CreateFromMojoHandle()
122 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_FILE_DESCRIPTOR) in CreateFromMojoHandle()
123 file = static_cast<base::PlatformFile>(platform_handle.value); in CreateFromMojoHandle()
131 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_MACH_PORT) in CreateFromMojoHandle()
132 mach_port = static_cast<mach_port_t>(platform_handle.value); in CreateFromMojoHandle()
139 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_FUCHSIA_HANDLE) in CreateFromMojoHandle()
140 handle.reset(static_cast<zx_handle_t>(platform_handle.value)); in CreateFromMojoHandle()
146 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_WINDOWS_HANDLE) in CreateFromMojoHandle()
147 handle = reinterpret_cast<base::PlatformFile>(platform_handle.value); in CreateFromMojoHandle()