1 // Copyright 2017 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "ipc/handle_attachment_fuchsia.h" 6 7 #include <zircon/syscalls.h> 8 #include <zircon/types.h> 9 10 #include "base/fuchsia/fuchsia_logging.h" 11 12 namespace IPC { 13 namespace internal { 14 HandleAttachmentFuchsia(zx::handle handle)15HandleAttachmentFuchsia::HandleAttachmentFuchsia(zx::handle handle) 16 : handle_(std::move(handle)) {} 17 ~HandleAttachmentFuchsia()18HandleAttachmentFuchsia::~HandleAttachmentFuchsia() {} 19 GetType() const20MessageAttachment::Type HandleAttachmentFuchsia::GetType() const { 21 return Type::FUCHSIA_HANDLE; 22 } 23 24 } // namespace internal 25 } // namespace IPC 26