Scott Graham | 3eebff0 | 2017-06-30 01:07:10 | [diff] [blame] | 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 | |
| 5 | #include "ipc/handle_attachment_fuchsia.h" |
| 6 | |
Scott Graham | fe0e9f46 | 2017-09-18 21:25:04 | [diff] [blame] | 7 | #include <zircon/syscalls.h> |
| 8 | #include <zircon/types.h> |
Scott Graham | 3eebff0 | 2017-06-30 01:07:10 | [diff] [blame] | 9 | |
Wez | bfbca08 | 2018-06-15 02:52:07 | [diff] [blame] | 10 | #include "base/fuchsia/fuchsia_logging.h" |
| 11 | |
Scott Graham | 3eebff0 | 2017-06-30 01:07:10 | [diff] [blame] | 12 | namespace IPC { |
| 13 | namespace internal { |
| 14 | |
Wez | 157707d6 | 2018-07-10 22:48:47 | [diff] [blame] | 15 | HandleAttachmentFuchsia::HandleAttachmentFuchsia(zx::handle handle) |
Wez | 71a6a8e | 2017-08-28 19:38:05 | [diff] [blame] | 16 | : handle_(std::move(handle)) {} |
Scott Graham | 3eebff0 | 2017-06-30 01:07:10 | [diff] [blame] | 17 | |
Wez | 8c49ebc9 | 2017-08-10 17:11:13 | [diff] [blame] | 18 | HandleAttachmentFuchsia::~HandleAttachmentFuchsia() {} |
Scott Graham | 3eebff0 | 2017-06-30 01:07:10 | [diff] [blame] | 19 | |
| 20 | MessageAttachment::Type HandleAttachmentFuchsia::GetType() const { |
| 21 | return Type::FUCHSIA_HANDLE; |
| 22 | } |
| 23 | |
| 24 | } // namespace internal |
| 25 | } // namespace IPC |