// mojo/public/mojom/base/absl_status.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 MOJO_PUBLIC_MOJOM_BASE_ABSL_STATUS_MOJOM_DATA_VIEW_H_
#define MOJO_PUBLIC_MOJOM_BASE_ABSL_STATUS_MOJOM_DATA_VIEW_H_

#include <stdint.h>

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

#include "mojo/public/mojom/base/absl_status.mojom-shared-internal.h"


namespace mojo_base::mojom {


}  // mojo_base::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace mojo_base::mojom {


enum class AbslStatusCode : int32_t {
  
  kOk = 0,
  
  kCancelled = 1,
  
  kUnknown = 2,
  
  kInvalidArgument = 3,
  
  kDeadlineExceeded = 4,
  
  kNotFound = 5,
  
  kAlreadyExists = 6,
  
  kPermissionDenied = 7,
  
  kResourceExhausted = 8,
  
  kFailedPrecondition = 9,
  
  kAborted = 10,
  
  kOutOfRange = 11,
  
  kUnimplemented = 12,
  
  kInternal = 13,
  
  kUnavailable = 14,
  
  kDataLoss = 15,
  
  kUnauthenticated = 16,
  kMinValue = 0,
  kMaxValue = 16,
};

COMPONENT_EXPORT(MOJO_BASE_MOJOM_SHARED) std::ostream& operator<<(std::ostream& os, AbslStatusCode value);
inline bool IsKnownEnumValue(AbslStatusCode value) {
  return internal::AbslStatusCode_Data::IsKnownValue(
      static_cast<int32_t>(value));
}

// Returns true if the enum has an infallible conversion from the mojom enum.
consteval bool HasInfallibleConversion(AbslStatusCode) {
  return true;
}


}  // mojo_base::mojom

#endif  // MOJO_PUBLIC_MOJOM_BASE_ABSL_STATUS_MOJOM_DATA_VIEW_H_