chromium/out/Default/gen/services/webnn/public/mojom/webnn_buffer.mojom-shared.h

// services/webnn/public/mojom/webnn_buffer.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit

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

#ifndef SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_BUFFER_MOJOM_SHARED_H_
#define SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_BUFFER_MOJOM_SHARED_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"

#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"

#include "services/webnn/public/mojom/webnn_buffer.mojom-shared-internal.h"
#include "mojo/public/mojom/base/big_buffer.mojom-shared.h"
#include "services/webnn/public/mojom/webnn_graph.mojom-shared.h"
#include "services/webnn/public/mojom/webnn_error.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"


#include "base/component_export.h"




namespace webnn::mojom {
class BufferUsageDataView;

class BufferInfoDataView;

class ReadBufferResultDataView;


}  // webnn::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::webnn::mojom::BufferUsageDataView> {};

template <>
struct MojomTypeTraits<::webnn::mojom::BufferInfoDataView> {};

template <>
struct MojomTypeTraits<::webnn::mojom::ReadBufferResultDataView> {};

}  // namespace internal
}  // namespace mojo


namespace webnn::mojom {
// Interface base classes. They are used for type safety check.
class WebNNBufferInterfaceBase {};

WebNNBufferPtrDataView;
WebNNBufferRequestDataView;
WebNNBufferAssociatedPtrInfoDataView;
WebNNBufferAssociatedRequestDataView;


class BufferUsageDataView {};


class BufferInfoDataView {};


class ReadBufferResultDataView {};



}  // webnn::mojom

namespace std {

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::webnn::mojom::BufferUsageDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::webnn::mojom::BufferInfoDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::webnn::mojom::ReadBufferResultDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace webnn::mojom {



inline void BufferInfoDataView::GetDescriptorDataView(
    ::webnn::mojom::OperandDescriptorDataView* output) {}
inline void BufferInfoDataView::GetUsageDataView(
    BufferUsageDataView* output) {}


inline void ReadBufferResultDataView::GetBufferDataView(
    ::mojo_base::mojom::BigBufferDataView* output) const {}
inline void ReadBufferResultDataView::GetErrorDataView(
    ::webnn::mojom::ErrorDataView* output) const {}


}  // webnn::mojom

// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.

#endif  // SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_BUFFER_MOJOM_SHARED_H_