chromium/mojo/public/cpp/base/shared_memory_mojom_traits.cc

// Copyright 2018 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/public/cpp/base/shared_memory_mojom_traits.h"

#include "mojo/public/cpp/system/platform_handle.h"

namespace mojo {

// static
bool StructTraits<mojo_base::mojom::ReadOnlySharedMemoryRegionDataView,
                  base::ReadOnlySharedMemoryRegion>::
    IsNull(const base::ReadOnlySharedMemoryRegion& region) {}

// static
void StructTraits<mojo_base::mojom::ReadOnlySharedMemoryRegionDataView,
                  base::ReadOnlySharedMemoryRegion>::
    SetToNull(base::ReadOnlySharedMemoryRegion* region) {}

// static
mojo::ScopedSharedBufferHandle StructTraits<
    mojo_base::mojom::ReadOnlySharedMemoryRegionDataView,
    base::ReadOnlySharedMemoryRegion>::buffer(base::ReadOnlySharedMemoryRegion&
                                                  in_region) {}

// static
bool StructTraits<mojo_base::mojom::ReadOnlySharedMemoryRegionDataView,
                  base::ReadOnlySharedMemoryRegion>::
    Read(mojo_base::mojom::ReadOnlySharedMemoryRegionDataView data,
         base::ReadOnlySharedMemoryRegion* out) {}

// static
bool StructTraits<mojo_base::mojom::UnsafeSharedMemoryRegionDataView,
                  base::UnsafeSharedMemoryRegion>::
    IsNull(const base::UnsafeSharedMemoryRegion& region) {}

// static
void StructTraits<mojo_base::mojom::UnsafeSharedMemoryRegionDataView,
                  base::UnsafeSharedMemoryRegion>::
    SetToNull(base::UnsafeSharedMemoryRegion* region) {}

// static
mojo::ScopedSharedBufferHandle StructTraits<
    mojo_base::mojom::UnsafeSharedMemoryRegionDataView,
    base::UnsafeSharedMemoryRegion>::buffer(base::UnsafeSharedMemoryRegion&
                                                in_region) {}

// static
bool StructTraits<mojo_base::mojom::UnsafeSharedMemoryRegionDataView,
                  base::UnsafeSharedMemoryRegion>::
    Read(mojo_base::mojom::UnsafeSharedMemoryRegionDataView data,
         base::UnsafeSharedMemoryRegion* out) {}

// static
bool StructTraits<mojo_base::mojom::WritableSharedMemoryRegionDataView,
                  base::WritableSharedMemoryRegion>::
    IsNull(const base::WritableSharedMemoryRegion& region) {}

// static
void StructTraits<mojo_base::mojom::WritableSharedMemoryRegionDataView,
                  base::WritableSharedMemoryRegion>::
    SetToNull(base::WritableSharedMemoryRegion* region) {}

// static
mojo::ScopedSharedBufferHandle StructTraits<
    mojo_base::mojom::WritableSharedMemoryRegionDataView,
    base::WritableSharedMemoryRegion>::buffer(base::WritableSharedMemoryRegion&
                                                  in_region) {}

// static
bool StructTraits<mojo_base::mojom::WritableSharedMemoryRegionDataView,
                  base::WritableSharedMemoryRegion>::
    Read(mojo_base::mojom::WritableSharedMemoryRegionDataView data,
         base::WritableSharedMemoryRegion* out) {}

}  // namespace mojo