// components/mirroring/mojom/session_observer.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_MIRRORING_MOJOM_SESSION_OBSERVER_MOJOM_DATA_VIEW_H_
#define COMPONENTS_MIRRORING_MOJOM_SESSION_OBSERVER_MOJOM_DATA_VIEW_H_

#include <stdint.h>

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

#include "components/mirroring/mojom/session_observer.mojom-shared-internal.h"


namespace mirroring::mojom {


}  // mirroring::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace mirroring::mojom {


enum class SessionError : int32_t {
  
  ANSWER_TIME_OUT = 0,
  
  ANSWER_NOT_OK = 1,
  
  ANSWER_MISMATCHED_CAST_MODE = 2,
  
  ANSWER_MISMATCHED_SSRC_LENGTH = 3,
  
  ANSWER_SELECT_MULTIPLE_AUDIO = 4,
  
  ANSWER_SELECT_MULTIPLE_VIDEO = 5,
  
  ANSWER_SELECT_INVALID_INDEX = 6,
  
  ANSWER_NO_AUDIO_OR_VIDEO = 7,
  
  AUDIO_CAPTURE_ERROR = 8,
  
  VIDEO_CAPTURE_ERROR = 9,
  
  RTP_STREAM_ERROR = 10,
  
  ENCODING_ERROR = 11,
  
  CAST_TRANSPORT_ERROR = 12,
  
  OPENSCREEN_SESSION_ERROR = 13,
  kMinValue = 0,
  kMaxValue = 13,
};

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

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

using SessionObserverPtrDataView =
    mojo::InterfacePtrDataView<SessionObserverInterfaceBase>;
using SessionObserverRequestDataView =
    mojo::InterfaceRequestDataView<SessionObserverInterfaceBase>;
using SessionObserverAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<SessionObserverInterfaceBase>;
using SessionObserverAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<SessionObserverInterfaceBase>;


}  // mirroring::mojom

#endif  // COMPONENTS_MIRRORING_MOJOM_SESSION_OBSERVER_MOJOM_DATA_VIEW_H_