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

// services/webnn/public/mojom/webnn_graph_builder.mojom-blink.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_BLINK_H_
#define SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_GRAPH_BUILDER_MOJOM_BLINK_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-blink-forward.h"  // IWYU pragma: export
#include "services/webnn/public/mojom/webnn_error.mojom-blink.h"
#include "services/webnn/public/mojom/webnn_graph.mojom-blink-forward.h"

#include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h"
#include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
#include "third_party/blink/renderer/platform/wtf/hash_functions.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

#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::blink {

class WebNNGraphBuilderProxy;

template <typename ImplRefTraits>
class WebNNGraphBuilderStub;

class WebNNGraphBuilderRequestValidator;
class WebNNGraphBuilderResponseValidator;


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



class COMPONENT_EXPORT(WEBNN_MOJOM_BLINK) WebNNGraphBuilderProxy
    : public WebNNGraphBuilder {};
class COMPONENT_EXPORT(WEBNN_MOJOM_BLINK) 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_BLINK) WebNNGraphBuilderRequestValidator : public mojo::MessageReceiver {};
class COMPONENT_EXPORT(WEBNN_MOJOM_BLINK) WebNNGraphBuilderResponseValidator : public mojo::MessageReceiver {};





class COMPONENT_EXPORT(WEBNN_MOJOM_BLINK) 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::blink

namespace mojo {


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

}  // namespace mojo

#endif  // SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_GRAPH_BUILDER_MOJOM_BLINK_H_