#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_PICTURE_IN_PICTURE_PICTURE_IN_PICTURE_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_PICTURE_IN_PICTURE_PICTURE_IN_PICTURE_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 "third_party/blink/public/mojom/picture_in_picture/picture_in_picture.mojom-features.h"
#include "third_party/blink/public/mojom/picture_in_picture/picture_in_picture.mojom-shared.h"
#include "third_party/blink/public/mojom/picture_in_picture/picture_in_picture.mojom-forward.h"
#include "media/mojo/mojom/media_player.mojom-forward.h"
#include "services/viz/public/mojom/compositing/surface_id.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 "third_party/blink/public/common/common_export.h"
namespace blink::mojom {
class PictureInPictureSessionObserverProxy;
template <typename ImplRefTraits>
class PictureInPictureSessionObserverStub;
class PictureInPictureSessionObserverRequestValidator;
class BLINK_COMMON_EXPORT PictureInPictureSessionObserver
: public PictureInPictureSessionObserverInterfaceBase { … };
class PictureInPictureSessionProxy;
template <typename ImplRefTraits>
class PictureInPictureSessionStub;
class PictureInPictureSessionRequestValidator;
class PictureInPictureSessionResponseValidator;
class BLINK_COMMON_EXPORT PictureInPictureSession
: public PictureInPictureSessionInterfaceBase { … };
class PictureInPictureServiceProxy;
template <typename ImplRefTraits>
class PictureInPictureServiceStub;
class PictureInPictureServiceRequestValidator;
class PictureInPictureServiceResponseValidator;
class BLINK_COMMON_EXPORT PictureInPictureService
: public PictureInPictureServiceInterfaceBase { … };
class BLINK_COMMON_EXPORT PictureInPictureSessionObserverProxy
: public PictureInPictureSessionObserver { … };
class BLINK_COMMON_EXPORT PictureInPictureSessionProxy
: public PictureInPictureSession { … };
class BLINK_COMMON_EXPORT PictureInPictureServiceProxy
: public PictureInPictureService { … };
class BLINK_COMMON_EXPORT PictureInPictureSessionObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PictureInPictureSessionObserver>>
class PictureInPictureSessionObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PictureInPictureSessionObserverStub() = default;
~PictureInPictureSessionObserverStub() 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 BLINK_COMMON_EXPORT PictureInPictureSessionStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PictureInPictureSession>>
class PictureInPictureSessionStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PictureInPictureSessionStub() = default;
~PictureInPictureSessionStub() 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 BLINK_COMMON_EXPORT PictureInPictureServiceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PictureInPictureService>>
class PictureInPictureServiceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PictureInPictureServiceStub() = default;
~PictureInPictureServiceStub() 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 BLINK_COMMON_EXPORT PictureInPictureSessionObserverRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT PictureInPictureSessionRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT PictureInPictureServiceRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT PictureInPictureSessionResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT PictureInPictureServiceResponseValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif