#ifndef MEDIA_MOJO_MOJOM_STABLE_STABLE_VIDEO_DECODER_MOJOM_H_
#define MEDIA_MOJO_MOJOM_STABLE_STABLE_VIDEO_DECODER_MOJOM_H_
#include <stdint.h>
#include <limits>
#include <optional>
#include <type_traits>
#include <utility>
#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "media/mojo/mojom/stable/stable_video_decoder.mojom-features.h"
#include "media/mojo/mojom/stable/stable_video_decoder.mojom-shared.h"
#include "media/mojo/mojom/stable/stable_video_decoder.mojom-forward.h"
#include "gpu/ipc/common/gpu_feature_info.mojom.h"
#include "media/mojo/mojom/stable/stable_video_decoder_types.mojom.h"
#include "mojo/public/mojom/base/unguessable_token.mojom.h"
#include "sandbox/policy/mojom/sandbox.mojom.h"
#include "ui/gfx/geometry/mojom/geometry.mojom.h"
#include <string>
#include <vector>
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#include "base/token.h"
constexpr ::sandbox::mojom::Sandbox kStableVideoDecoderFactoryServiceSandbox = …;
namespace media::stable::mojom {
class MediaLogProxy;
template <typename ImplRefTraits>
class MediaLogStub;
class MediaLogRequestValidator;
class MediaLog
: public MediaLogInterfaceBase { … };
class VideoFrameHandleReleaserProxy;
template <typename ImplRefTraits>
class VideoFrameHandleReleaserStub;
class VideoFrameHandleReleaserRequestValidator;
class VideoFrameHandleReleaser
: public VideoFrameHandleReleaserInterfaceBase { … };
class VideoDecoderClientProxy;
template <typename ImplRefTraits>
class VideoDecoderClientStub;
class VideoDecoderClientRequestValidator;
class VideoDecoderClient
: public VideoDecoderClientInterfaceBase { … };
class CdmContextEventCallbackProxy;
template <typename ImplRefTraits>
class CdmContextEventCallbackStub;
class CdmContextEventCallbackRequestValidator;
class CdmContextEventCallback
: public CdmContextEventCallbackInterfaceBase { … };
class StableCdmContextProxy;
template <typename ImplRefTraits>
class StableCdmContextStub;
class StableCdmContextRequestValidator;
class StableCdmContextResponseValidator;
class StableCdmContext
: public StableCdmContextInterfaceBase { … };
class StableVideoDecoderProxy;
template <typename ImplRefTraits>
class StableVideoDecoderStub;
class StableVideoDecoderRequestValidator;
class StableVideoDecoderResponseValidator;
class StableVideoDecoder
: public StableVideoDecoderInterfaceBase { … };
class StableVideoDecoderTrackerProxy;
template <typename ImplRefTraits>
class StableVideoDecoderTrackerStub;
class StableVideoDecoderTrackerRequestValidator;
class StableVideoDecoderTracker
: public StableVideoDecoderTrackerInterfaceBase { … };
class StableVideoDecoderFactoryProxy;
template <typename ImplRefTraits>
class StableVideoDecoderFactoryStub;
class StableVideoDecoderFactoryRequestValidator;
class StableVideoDecoderFactory
: public StableVideoDecoderFactoryInterfaceBase { … };
class StableVideoDecoderFactoryProcessProxy;
template <typename ImplRefTraits>
class StableVideoDecoderFactoryProcessStub;
class StableVideoDecoderFactoryProcessRequestValidator;
class StableVideoDecoderFactoryProcess
: public StableVideoDecoderFactoryProcessInterfaceBase { … };
class MediaLogProxy
: public MediaLog { … };
class VideoFrameHandleReleaserProxy
: public VideoFrameHandleReleaser { … };
class VideoDecoderClientProxy
: public VideoDecoderClient { … };
class CdmContextEventCallbackProxy
: public CdmContextEventCallback { … };
class StableCdmContextProxy
: public StableCdmContext { … };
class StableVideoDecoderProxy
: public StableVideoDecoder { … };
class StableVideoDecoderTrackerProxy
: public StableVideoDecoderTracker { … };
class StableVideoDecoderFactoryProxy
: public StableVideoDecoderFactory { … };
class StableVideoDecoderFactoryProcessProxy
: public StableVideoDecoderFactoryProcess { … };
class MediaLogStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<MediaLog>>
class MediaLogStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
MediaLogStub() = default;
~MediaLogStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class VideoFrameHandleReleaserStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<VideoFrameHandleReleaser>>
class VideoFrameHandleReleaserStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
VideoFrameHandleReleaserStub() = default;
~VideoFrameHandleReleaserStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class VideoDecoderClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<VideoDecoderClient>>
class VideoDecoderClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
VideoDecoderClientStub() = default;
~VideoDecoderClientStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class CdmContextEventCallbackStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<CdmContextEventCallback>>
class CdmContextEventCallbackStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
CdmContextEventCallbackStub() = default;
~CdmContextEventCallbackStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class StableCdmContextStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<StableCdmContext>>
class StableCdmContextStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
StableCdmContextStub() = default;
~StableCdmContextStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class StableVideoDecoderStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<StableVideoDecoder>>
class StableVideoDecoderStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
StableVideoDecoderStub() = default;
~StableVideoDecoderStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class StableVideoDecoderTrackerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<StableVideoDecoderTracker>>
class StableVideoDecoderTrackerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
StableVideoDecoderTrackerStub() = default;
~StableVideoDecoderTrackerStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class StableVideoDecoderFactoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<StableVideoDecoderFactory>>
class StableVideoDecoderFactoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
StableVideoDecoderFactoryStub() = default;
~StableVideoDecoderFactoryStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class StableVideoDecoderFactoryProcessStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<StableVideoDecoderFactoryProcess>>
class StableVideoDecoderFactoryProcessStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
StableVideoDecoderFactoryProcessStub() = default;
~StableVideoDecoderFactoryProcessStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class MediaLogRequestValidator : public mojo::MessageReceiver { … };
class VideoFrameHandleReleaserRequestValidator : public mojo::MessageReceiver { … };
class VideoDecoderClientRequestValidator : public mojo::MessageReceiver { … };
class CdmContextEventCallbackRequestValidator : public mojo::MessageReceiver { … };
class StableCdmContextRequestValidator : public mojo::MessageReceiver { … };
class StableVideoDecoderRequestValidator : public mojo::MessageReceiver { … };
class StableVideoDecoderTrackerRequestValidator : public mojo::MessageReceiver { … };
class StableVideoDecoderFactoryRequestValidator : public mojo::MessageReceiver { … };
class StableVideoDecoderFactoryProcessRequestValidator : public mojo::MessageReceiver { … };
class StableCdmContextResponseValidator : public mojo::MessageReceiver { … };
class StableVideoDecoderResponseValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif