xref: /aosp_15_r20/external/cronet/ipc/handle_attachment_fuchsia.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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)15 HandleAttachmentFuchsia::HandleAttachmentFuchsia(zx::handle handle)
16     : handle_(std::move(handle)) {}
17 
~HandleAttachmentFuchsia()18 HandleAttachmentFuchsia::~HandleAttachmentFuchsia() {}
19 
GetType() const20 MessageAttachment::Type HandleAttachmentFuchsia::GetType() const {
21   return Type::FUCHSIA_HANDLE;
22 }
23 
24 }  // namespace internal
25 }  // namespace IPC
26