// mojo/public/mojom/base/file_error.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_FILE_ERROR_MOJOM_DATA_VIEW_H_
#define MOJO_PUBLIC_MOJOM_BASE_FILE_ERROR_MOJOM_DATA_VIEW_H_

#include <stdint.h>

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

#include "mojo/public/mojom/base/file_error.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 FileError : int32_t {
  
  OK = 0,
  
  FAILED = -1,
  
  IN_USE = -2,
  
  EXISTS = -3,
  
  NOT_FOUND = -4,
  
  ACCESS_DENIED = -5,
  
  TOO_MANY_OPENED = -6,
  
  NO_MEMORY = -7,
  
  NO_SPACE = -8,
  
  NOT_A_DIRECTORY = -9,
  
  INVALID_OPERATION = -10,
  
  SECURITY = -11,
  
  ABORT = -12,
  
  NOT_A_FILE = -13,
  
  NOT_EMPTY = -14,
  
  INVALID_URL = -15,
  
  IO = -16,
  kMinValue = -16,
  kMaxValue = 0,
};

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

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


}  // mojo_base::mojom

#endif  // MOJO_PUBLIC_MOJOM_BASE_FILE_ERROR_MOJOM_DATA_VIEW_H_