chromium/out/Default/gen/services/webnn/public/mojom/webnn_graph_builder.mojom.h

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

// Copyright 2013 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_GRAPH_BUILDER_MOJOM_H_
#define SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_GRAPH_BUILDER_MOJOM_H_

#include <stdint.h>

#include <limits>
#include <optional>
#include <type_traits>
#include <utility>

#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"

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

#include "services/webnn/public/mojom/webnn_graph_builder.mojom-features.h"  // IWYU pragma: export
#include "services/webnn/public/mojom/webnn_graph_builder.mojom-shared.h"  // IWYU pragma: export
#include "services/webnn/public/mojom/webnn_graph_builder.mojom-forward.h"  // IWYU pragma: export
#include "services/webnn/public/mojom/webnn_error.mojom.h"
#include "services/webnn/public/mojom/webnn_graph.mojom-forward.h"
#include <string>
#include <vector>

#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"


#include "base/component_export.h"




namespace webnn::mojom {

class WebNNGraphBuilderProxy;

template <typename ImplRefTraits>
class WebNNGraphBuilderStub;

class WebNNGraphBuilderRequestValidator;
class WebNNGraphBuilderResponseValidator;


class COMPONENT_EXPORT(WEBNN_MOJOM) WebNNGraphBuilder
    : public WebNNGraphBuilderInterfaceBase {};



class COMPONENT_EXPORT(WEBNN_MOJOM) WebNNGraphBuilderProxy
    : public WebNNGraphBuilder {};
class COMPONENT_EXPORT(WEBNN_MOJOM) WebNNGraphBuilderStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<WebNNGraphBuilder>>
class WebNNGraphBuilderStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  WebNNGraphBuilderStub() = default;
  ~WebNNGraphBuilderStub() override = default;

  void set_sink(ImplPointerType sink) {}
  ImplPointerType& sink() {}

  bool Accept(mojo::Message* message) override {}

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {}

 private:
  ImplPointerType sink_;
};
class COMPONENT_EXPORT(WEBNN_MOJOM) WebNNGraphBuilderRequestValidator : public mojo::MessageReceiver {};
class COMPONENT_EXPORT(WEBNN_MOJOM) WebNNGraphBuilderResponseValidator : public mojo::MessageReceiver {};





class COMPONENT_EXPORT(WEBNN_MOJOM) CreateGraphResult {};

template <typename UnionPtrType>
CreateGraphResultPtr CreateGraphResult::Clone() const {}

template <typename T,
          typename std::enable_if<std::is_same<
              T, CreateGraphResult>::value>::type*>
bool CreateGraphResult::Equals(const T& other) const {}


}  // webnn::mojom

namespace mojo {


template <>
struct COMPONENT_EXPORT(WEBNN_MOJOM) UnionTraits<::webnn::mojom::CreateGraphResult::DataView,
                                        ::webnn::mojom::CreateGraphResultPtr> {};

}  // namespace mojo

#endif  // SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_GRAPH_BUILDER_MOJOM_H_