#ifndef CONTENT_COMMON_PEPPER_PLUGIN_MOJOM_H_
#define CONTENT_COMMON_PEPPER_PLUGIN_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 "content/common/pepper_plugin.mojom-features.h"
#include "content/common/pepper_plugin.mojom-shared.h"
#include "content/common/pepper_plugin.mojom-forward.h"
#include "content/public/common/webplugininfo.mojom.h"
#include "mojo/public/mojom/base/file_path.mojom.h"
#include "mojo/public/mojom/base/process_id.mojom.h"
#include "url/mojom/origin.mojom.h"
#include "url/mojom/url.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 "content/common/content_export.h"
namespace content::mojom {
class PepperHostProxy;
template <typename ImplRefTraits>
class PepperHostStub;
class PepperHostRequestValidator;
class PepperHostResponseValidator;
class CONTENT_EXPORT PepperHost
: public PepperHostInterfaceBase { … };
class PepperHungDetectorHostProxy;
template <typename ImplRefTraits>
class PepperHungDetectorHostStub;
class PepperHungDetectorHostRequestValidator;
class CONTENT_EXPORT PepperHungDetectorHost
: public PepperHungDetectorHostInterfaceBase { … };
class PepperPluginInstanceHostProxy;
template <typename ImplRefTraits>
class PepperPluginInstanceHostStub;
class PepperPluginInstanceHostRequestValidator;
class CONTENT_EXPORT PepperPluginInstanceHost
: public PepperPluginInstanceHostInterfaceBase { … };
class PepperPluginInstanceProxy;
template <typename ImplRefTraits>
class PepperPluginInstanceStub;
class PepperPluginInstanceRequestValidator;
class CONTENT_EXPORT PepperPluginInstance
: public PepperPluginInstanceInterfaceBase { … };
class CONTENT_EXPORT PepperHostProxy
: public PepperHost { … };
class CONTENT_EXPORT PepperHungDetectorHostProxy
: public PepperHungDetectorHost { … };
class CONTENT_EXPORT PepperPluginInstanceHostProxy
: public PepperPluginInstanceHost { … };
class CONTENT_EXPORT PepperPluginInstanceProxy
: public PepperPluginInstance { … };
class CONTENT_EXPORT PepperHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PepperHost>>
class PepperHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PepperHostStub() = default;
~PepperHostStub() 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 CONTENT_EXPORT PepperHungDetectorHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PepperHungDetectorHost>>
class PepperHungDetectorHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PepperHungDetectorHostStub() = default;
~PepperHungDetectorHostStub() 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 CONTENT_EXPORT PepperPluginInstanceHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PepperPluginInstanceHost>>
class PepperPluginInstanceHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PepperPluginInstanceHostStub() = default;
~PepperPluginInstanceHostStub() 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 CONTENT_EXPORT PepperPluginInstanceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PepperPluginInstance>>
class PepperPluginInstanceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PepperPluginInstanceStub() = default;
~PepperPluginInstanceStub() 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 CONTENT_EXPORT PepperHostRequestValidator : public mojo::MessageReceiver { … };
class CONTENT_EXPORT PepperHungDetectorHostRequestValidator : public mojo::MessageReceiver { … };
class CONTENT_EXPORT PepperPluginInstanceHostRequestValidator : public mojo::MessageReceiver { … };
class CONTENT_EXPORT PepperPluginInstanceRequestValidator : public mojo::MessageReceiver { … };
class CONTENT_EXPORT PepperHostResponseValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif