// services/viz/privileged/mojom/gl/gpu_service.mojom-data-view.h is auto generated by mojom_bindings_generator.py, do not edit

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

// This file defines XDataView for type traits and can be included in
// _mojom_traits.h definitions but otherwise please use .mojom-forward.h,
// .mojom-shared.h or .mojom.h.

// IWYU pragma: private
// IWYU pragma: friend "traits"

#ifndef SERVICES_VIZ_PRIVILEGED_MOJOM_GL_GPU_SERVICE_MOJOM_DATA_VIEW_H_
#define SERVICES_VIZ_PRIVILEGED_MOJOM_GL_GPU_SERVICE_MOJOM_DATA_VIEW_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>

#include "services/viz/privileged/mojom/gl/gpu_service.mojom-shared-internal.h"
#include "components/persistent_cache/mojom/persistent_cache.mojom-shared.h"
#include "gpu/ipc/common/device_perf_info.mojom-shared.h"
#include "gpu/ipc/common/gpu_disk_cache_type.mojom-shared.h"
#include "gpu/ipc/common/gpu_feature_info.mojom-shared.h"
#include "gpu/ipc/common/gpu_info.mojom-shared.h"
#include "gpu/ipc/common/gpu_peak_memory.mojom-shared.h"
#include "gpu/ipc/common/memory_stats.mojom-shared.h"
#include "gpu/ipc/common/shared_image_capabilities.mojom-shared.h"
#include "gpu/ipc/common/surface_handle.mojom-shared.h"
#include "gpu/ipc/common/sync_token.mojom-shared.h"
#include "media/mojo/mojom/video_encode_accelerator.mojom-shared.h"
#include "mojo/public/mojom/base/byte_string.mojom-shared.h"
#include "mojo/public/mojom/base/process_id.mojom-shared.h"
#include "services/webnn/public/mojom/features.mojom-shared.h"
#include "services/webnn/public/mojom/webnn_context_provider.mojom-shared.h"
#include "services/webnn/public/mojom/webnn_service_introspection.mojom-shared.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-shared.h"
#include "ui/gfx/mojom/buffer_types.mojom-shared.h"
#include "ui/gl/mojom/gpu_preference.mojom-shared.h"


namespace viz::mojom {


}  // viz::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace viz::mojom {


enum class MemoryInvalidAccessType : int32_t {
  
  kHeapOverflow = 0,
  
  kHeapUnderflow = 1,
  
  kUseAfterFree = 2,
  
  kMemberDereferenceAfterFree = 3,
  kMinValue = 0,
  kMaxValue = 3,
};

 std::ostream& operator<<(std::ostream& os, MemoryInvalidAccessType value);
inline bool IsKnownEnumValue(MemoryInvalidAccessType value) {
  return internal::MemoryInvalidAccessType_Data::IsKnownValue(
      static_cast<int32_t>(value));
}

// Returns true if the enum has an infallible conversion from the mojom enum.
consteval bool HasInfallibleConversion(MemoryInvalidAccessType) {
  return true;
}
// Interface base classes. They are used for type safety check.
class GpuServiceInterfaceBase {};

using GpuServicePtrDataView =
    mojo::InterfacePtrDataView<GpuServiceInterfaceBase>;
using GpuServiceRequestDataView =
    mojo::InterfaceRequestDataView<GpuServiceInterfaceBase>;
using GpuServiceAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<GpuServiceInterfaceBase>;
using GpuServiceAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<GpuServiceInterfaceBase>;


}  // viz::mojom

#endif  // SERVICES_VIZ_PRIVILEGED_MOJOM_GL_GPU_SERVICE_MOJOM_DATA_VIEW_H_