chromium/components/device_signals/core/common/mojom/system_signals_mojom_traits_common.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 "components/device_signals/core/common/mojom/system_signals_mojom_traits_common.h"

#include "base/notreached.h"
#include "mojo/public/cpp/base/byte_string_mojom_traits.h"
#include "mojo/public/cpp/base/file_path_mojom_traits.h"

namespace mojo {

// static
device_signals::mojom::PresenceValue
EnumTraits<device_signals::mojom::PresenceValue,
           device_signals::PresenceValue>::ToMojom(device_signals::PresenceValue
                                                       input) {}

// static
bool EnumTraits<device_signals::mojom::PresenceValue,
                device_signals::PresenceValue>::
    FromMojom(device_signals::mojom::PresenceValue input,
              device_signals::PresenceValue* output) {}

// static
bool StructTraits<device_signals::mojom::ExecutableMetadataDataView,
                  device_signals::ExecutableMetadata>::
    Read(device_signals::mojom::ExecutableMetadataDataView data,
         device_signals::ExecutableMetadata* output) {}

// static
bool StructTraits<device_signals::mojom::FileSystemItemDataView,
                  device_signals::FileSystemItem>::
    Read(device_signals::mojom::FileSystemItemDataView data,
         device_signals::FileSystemItem* output) {}

// static
bool StructTraits<device_signals::mojom::FileSystemItemRequestDataView,
                  device_signals::GetFileSystemInfoOptions>::
    Read(device_signals::mojom::FileSystemItemRequestDataView data,
         device_signals::GetFileSystemInfoOptions* output) {}

}  // namespace mojo