handle_attachment_fuchsia.cc 654 B

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