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

// services/webnn/public/mojom/webnn_context_provider.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_CONTEXT_PROVIDER_MOJOM_H_
#define SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_CONTEXT_PROVIDER_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_context_provider.mojom-features.h"  // IWYU pragma: export
#include "services/webnn/public/mojom/webnn_context_provider.mojom-shared.h"  // IWYU pragma: export
#include "services/webnn/public/mojom/webnn_context_provider.mojom-forward.h"  // IWYU pragma: export
#include "services/webnn/public/mojom/features.mojom-forward.h"
#include "services/webnn/public/mojom/webnn_context.mojom-forward.h"
#include "services/webnn/public/mojom/webnn_context_properties.mojom.h"
#include "services/webnn/public/mojom/webnn_error.mojom.h"
#include "third_party/blink/public/mojom/tokens/tokens.mojom.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 WebNNContextProviderProxy;

template <typename ImplRefTraits>
class WebNNContextProviderStub;

class WebNNContextProviderRequestValidator;
class WebNNContextProviderResponseValidator;


class COMPONENT_EXPORT(WEBNN_MOJOM) WebNNContextProvider
    : public WebNNContextProviderInterfaceBase {};



class COMPONENT_EXPORT(WEBNN_MOJOM) WebNNContextProviderProxy
    : public WebNNContextProvider {};
class COMPONENT_EXPORT(WEBNN_MOJOM) WebNNContextProviderStubDispatch {};

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

  WebNNContextProviderStub() = default;
  ~WebNNContextProviderStub() 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) WebNNContextProviderRequestValidator : public mojo::MessageReceiver {};
class COMPONENT_EXPORT(WEBNN_MOJOM) WebNNContextProviderResponseValidator : public mojo::MessageReceiver {};





class COMPONENT_EXPORT(WEBNN_MOJOM) CreateContextOptions {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, CreateContextOptions::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, CreateContextOptions::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, CreateContextOptions::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, CreateContextOptions::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}






class COMPONENT_EXPORT(WEBNN_MOJOM) CreateContextResult {};






class COMPONENT_EXPORT(WEBNN_MOJOM) CreateContextSuccess {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, CreateContextSuccess::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, CreateContextSuccess::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, CreateContextSuccess::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, CreateContextSuccess::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}

template <typename UnionPtrType>
CreateContextResultPtr CreateContextResult::Clone() const {}

template <typename T,
          typename std::enable_if<std::is_same<
              T, CreateContextResult>::value>::type*>
bool CreateContextResult::Equals(const T& other) const {}
template <typename StructPtrType>
CreateContextOptionsPtr CreateContextOptions::Clone() const {}

template <typename T, CreateContextOptions::EnableIfSame<T>*>
bool CreateContextOptions::Equals(const T& other_struct) const {}

template <typename T, CreateContextOptions::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
CreateContextSuccessPtr CreateContextSuccess::Clone() const {}

template <typename T, CreateContextSuccess::EnableIfSame<T>*>
bool CreateContextSuccess::Equals(const T& other_struct) const {}

template <typename T, CreateContextSuccess::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}


}  // webnn::mojom

namespace mojo {


template <>
struct COMPONENT_EXPORT(WEBNN_MOJOM) StructTraits<::webnn::mojom::CreateContextOptions::DataView,
                                         ::webnn::mojom::CreateContextOptionsPtr> {};


template <>
struct COMPONENT_EXPORT(WEBNN_MOJOM) StructTraits<::webnn::mojom::CreateContextSuccess::DataView,
                                         ::webnn::mojom::CreateContextSuccessPtr> {};


template <>
struct COMPONENT_EXPORT(WEBNN_MOJOM) UnionTraits<::webnn::mojom::CreateContextResult::DataView,
                                        ::webnn::mojom::CreateContextResultPtr> {};
namespace internal {
template <>
inline bool GetRuntimeFeature_IsEnabled<::webnn::mojom::WebNNContextProvider>() {}
template <>
inline bool GetRuntimeFeature_ExpectEnabled<::webnn::mojom::WebNNContextProvider>() {
  return ::webnn::mojom::WebNNContextProvider::RuntimeFeature_IsEnabled_(true);
}kIsRuntimeFeatureGuarded;
}  // namespace internal

}  // namespace mojo

#endif  // SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_CONTEXT_PROVIDER_MOJOM_H_