#ifndef SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_CONTEXT_PROVIDER_MOJOM_SHARED_H_
#define SERVICES_WEBNN_PUBLIC_MOJOM_WEBNN_CONTEXT_PROVIDER_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_context_provider.mojom-shared-internal.h"
#include "services/webnn/public/mojom/features.mojom-shared.h"
#include "services/webnn/public/mojom/webnn_context.mojom-shared.h"
#include "services/webnn/public/mojom/webnn_context_properties.mojom-shared.h"
#include "services/webnn/public/mojom/webnn_error.mojom-shared.h"
#include "third_party/blink/public/mojom/tokens/tokens.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 CreateContextOptionsDataView;
class CreateContextSuccessDataView;
class CreateContextResultDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::webnn::mojom::CreateContextOptionsDataView> { … };
template <>
struct MojomTypeTraits<::webnn::mojom::CreateContextSuccessDataView> { … };
template <>
struct MojomTypeTraits<::webnn::mojom::CreateContextResultDataView> { … };
}
}
namespace webnnmojom
namespace std {
template <>
struct hash<::webnn::mojom::CreateContextOptions_Device>
: public mojo::internal::EnumHashImpl<::webnn::mojom::CreateContextOptions_Device> { … };
template <>
struct hash<::webnn::mojom::CreateContextOptions_PowerPreference>
: public mojo::internal::EnumHashImpl<::webnn::mojom::CreateContextOptions_PowerPreference> { … };
}
namespace mojo {
namespace internal {
Serializer< ::webnn::mojom::CreateContextOptions_Device, MaybeConstUserType>;
}
namespace internal {
Serializer< ::webnn::mojom::CreateContextOptions_PowerPreference, MaybeConstUserType>;
}
namespace internal {
Serializer< ::webnn::mojom::CreateContextOptionsDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::webnn::mojom::CreateContextSuccessDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::webnn::mojom::CreateContextResultDataView, MaybeConstUserType>;
}
}
namespace webnn::mojom {
inline void CreateContextSuccessDataView::GetContextPropertiesDataView(
::webnn::mojom::ContextPropertiesDataView* output) { … }
inline void CreateContextSuccessDataView::GetContextHandleDataView(
::blink::mojom::WebNNContextTokenDataView* output) { … }
inline void CreateContextResultDataView::GetSuccessDataView(
CreateContextSuccessDataView* output) const { … }
inline void CreateContextResultDataView::GetErrorDataView(
::webnn::mojom::ErrorDataView* output) const { … }
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(WEBNN_MOJOM_SHARED) TraceFormatTraits<::webnn::mojom::CreateContextOptions_Device> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(WEBNN_MOJOM_SHARED) TraceFormatTraits<::webnn::mojom::CreateContextOptions_PowerPreference> { … };
}
#endif