chromium/mojo/core/ipcz_driver/transmissible_platform_handle.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "mojo/core/ipcz_driver/transmissible_platform_handle.h"

#include <utility>

#include "base/check.h"
#include "base/notreached.h"
#include "build/build_config.h"

namespace mojo::core::ipcz_driver {

TransmissiblePlatformHandle::TransmissiblePlatformHandle() = default;

TransmissiblePlatformHandle::TransmissiblePlatformHandle(PlatformHandle handle)
    :{}

TransmissiblePlatformHandle::~TransmissiblePlatformHandle() = default;

void TransmissiblePlatformHandle::Close() {}

bool TransmissiblePlatformHandle::IsSerializable() const {}

bool TransmissiblePlatformHandle::GetSerializedDimensions(
    Transport& transmitter,
    size_t& num_bytes,
    size_t& num_handles) {}

bool TransmissiblePlatformHandle::Serialize(
    Transport& transmitter,
    base::span<uint8_t> data,
    base::span<PlatformHandle> handles) {}

// static
scoped_refptr<TransmissiblePlatformHandle>
TransmissiblePlatformHandle::Deserialize(base::span<const uint8_t> data,
                                         base::span<PlatformHandle> handles) {}

}  // namespace mojo::core::ipcz_driver