// services/network/public/mojom/shared_dictionary_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 SERVICES_NETWORK_PUBLIC_MOJOM_SHARED_DICTIONARY_ERROR_MOJOM_DATA_VIEW_H_
#define SERVICES_NETWORK_PUBLIC_MOJOM_SHARED_DICTIONARY_ERROR_MOJOM_DATA_VIEW_H_

#include <stdint.h>

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

#include "services/network/public/mojom/shared_dictionary_error.mojom-shared-internal.h"


namespace network::mojom {


}  // network::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace network::mojom {


enum class SharedDictionaryError : int32_t {
  
  kUseErrorDictionaryLoadFailure = 0,
  
  kUseErrorMatchingDictionaryNotUsed = 1,
  
  kUseErrorUnexpectedContentDictionaryHeader = 2,
  
  kWriteErrorAlreadyRegistered = 3,
  
  kWriteErrorCossOriginNoCorsRequest = 4,
  
  kWriteErrorDisallowedBySettings = 5,
  
  kWriteErrorExpiredResponse = 6,
  
  kWriteErrorFeatureDisabled = 7,
  
  kWriteErrorInsufficientResources = 8,
  
  kWriteErrorInvalidMatchField = 9,
  
  kWriteErrorInvalidStructuredHeader = 10,
  
  kWriteErrorInvalidTTLField = 11,
  
  kWriteErrorNavigationRequest = 12,
  
  kWriteErrorNoMatchField = 13,
  
  kWriteErrorNonIntegerTTLField = 14,
  
  kWriteErrorNonListMatchDestField = 15,
  
  kWriteErrorNonSecureContext = 16,
  
  kWriteErrorNonStringIdField = 17,
  
  kWriteErrorNonStringInMatchDestList = 18,
  
  kWriteErrorInvalidMatchDestList = 19,
  
  kWriteErrorNonStringMatchField = 20,
  
  kWriteErrorNonTokenTypeField = 21,
  
  kWriteErrorRequestAborted = 22,
  
  kWriteErrorShuttingDown = 23,
  
  kWriteErrorTooLongIdField = 24,
  
  kWriteErrorUnsupportedType = 25,
  kMinValue = 0,
  kMaxValue = 25,
};

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

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


}  // network::mojom

#endif  // SERVICES_NETWORK_PUBLIC_MOJOM_SHARED_DICTIONARY_ERROR_MOJOM_DATA_VIEW_H_