// components/media_router/common/mojom/route_request_result_code.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 COMPONENTS_MEDIA_ROUTER_COMMON_MOJOM_ROUTE_REQUEST_RESULT_CODE_MOJOM_DATA_VIEW_H_
#define COMPONENTS_MEDIA_ROUTER_COMMON_MOJOM_ROUTE_REQUEST_RESULT_CODE_MOJOM_DATA_VIEW_H_

#include <stdint.h>

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

#include "components/media_router/common/mojom/route_request_result_code.mojom-shared-internal.h"


namespace media_router::mojom {


}  // media_router::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace media_router::mojom {


enum class RouteRequestResultCode : int32_t {
  
  UNKNOWN_ERROR = 0,
  
  OK = 1,
  
  TIMED_OUT = 2,
  
  ROUTE_NOT_FOUND = 3,
  
  SINK_NOT_FOUND = 4,
  
  INVALID_ORIGIN = 5,
  
  DEPRECATED_OFF_THE_RECORD_MISMATCH = 6,
  
  NO_SUPPORTED_PROVIDER = 7,
  
  CANCELLED = 8,
  
  ROUTE_ALREADY_EXISTS = 9,
  
  DESKTOP_PICKER_FAILED = 10,
  
  ROUTE_ALREADY_TERMINATED = 11,
  
  REDUNDANT_REQUEST = 12,
  
  USER_NOT_ALLOWED = 13,
  
  NOTIFICATION_DISABLED = 14,
  kMinValue = 0,
  kMaxValue = 14,
};

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

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


}  // media_router::mojom

#endif  // COMPONENTS_MEDIA_ROUTER_COMMON_MOJOM_ROUTE_REQUEST_RESULT_CODE_MOJOM_DATA_VIEW_H_