#ifndef COMPONENTS_MIRRORING_MOJOM_RESOURCE_PROVIDER_MOJOM_H_
#define COMPONENTS_MIRRORING_MOJOM_RESOURCE_PROVIDER_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 "components/mirroring/mojom/resource_provider.mojom-features.h"
#include "components/mirroring/mojom/resource_provider.mojom-shared.h"
#include "components/mirroring/mojom/resource_provider.mojom-forward.h"
#include "media/capture/mojom/video_capture.mojom-forward.h"
#include "services/network/public/mojom/network_context.mojom-forward.h"
#include "media/mojo/mojom/remoting.mojom-forward.h"
#include "media/mojo/mojom/audio_data_pipe.mojom-forward.h"
#include "media/mojo/mojom/audio_input_stream.mojom-forward.h"
#include "media/mojo/mojom/audio_parameters.mojom.h"
#include "media/mojo/mojom/video_encoder_metrics_provider.mojom-forward.h"
#include "sandbox/policy/mojom/context.mojom-forward.h"
#include "services/viz/public/mojom/gpu.mojom-forward.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"
namespace mirroring::mojom {
class AudioStreamCreatorClientProxy;
template <typename ImplRefTraits>
class AudioStreamCreatorClientStub;
class AudioStreamCreatorClientRequestValidator;
class AudioStreamCreatorClient
: public AudioStreamCreatorClientInterfaceBase { … };
class ResourceProviderProxy;
template <typename ImplRefTraits>
class ResourceProviderStub;
class ResourceProviderRequestValidator;
class ResourceProvider
: public ResourceProviderInterfaceBase { … };
class AudioStreamCreatorClientProxy
: public AudioStreamCreatorClient { … };
class ResourceProviderProxy
: public ResourceProvider { … };
class AudioStreamCreatorClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioStreamCreatorClient>>
class AudioStreamCreatorClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioStreamCreatorClientStub() = default;
~AudioStreamCreatorClientStub() 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 ResourceProviderStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ResourceProvider>>
class ResourceProviderStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ResourceProviderStub() = default;
~ResourceProviderStub() 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 AudioStreamCreatorClientRequestValidator : public mojo::MessageReceiver { … };
class ResourceProviderRequestValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif