Home | History | Annotate | Download | only in ipc

Lines Matching defs:platform_handle

10 #include "mojo/public/cpp/system/platform_handle.h"
70 MojoPlatformHandle platform_handle = {
71 sizeof(platform_handle), MOJO_PLATFORM_HANDLE_TYPE_MACH_PORT,
74 if (MojoWrapPlatformHandle(&platform_handle, nullptr, &wrapped_handle) !=
84 MojoPlatformHandle platform_handle = {
85 sizeof(platform_handle), MOJO_PLATFORM_HANDLE_TYPE_FUCHSIA_HANDLE,
88 if (MojoWrapPlatformHandle(&platform_handle, nullptr, &wrapped_handle) !=
113 MojoPlatformHandle platform_handle = {sizeof(platform_handle), 0, 0};
115 handle.release().value(), nullptr, &platform_handle);
122 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_FILE_DESCRIPTOR)
123 file = static_cast<base::PlatformFile>(platform_handle.value);
131 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_MACH_PORT)
132 mach_port = static_cast<mach_port_t>(platform_handle.value);
139 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_FUCHSIA_HANDLE)
140 handle.reset(static_cast<zx_handle_t>(platform_handle.value));
146 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_WINDOWS_HANDLE)
147 handle = reinterpret_cast<base::PlatformFile>(platform_handle.value);