#ifndef CHROME_COMMON_PLUGIN_MOJOM_H_
#define CHROME_COMMON_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 "chrome/common/plugin.mojom-features.h"
#include "chrome/common/plugin.mojom-shared.h"
#include "chrome/common/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/string16.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 "mojo/public/cpp/bindings/lib/native_enum_serialization.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
namespace chrome::mojom {
class PluginHostProxy;
template <typename ImplRefTraits>
class PluginHostStub;
class PluginHostRequestValidator;
class PluginHost
: public PluginHostInterfaceBase { … };
class PluginAuthHostProxy;
template <typename ImplRefTraits>
class PluginAuthHostStub;
class PluginAuthHostRequestValidator;
class PluginAuthHost
: public PluginAuthHostInterfaceBase { … };
class PluginInfoHostProxy;
template <typename ImplRefTraits>
class PluginInfoHostStub;
class PluginInfoHostRequestValidator;
class PluginInfoHostResponseValidator;
class PluginInfoHost
: public PluginInfoHostInterfaceBase { … };
class PluginHostProxy
: public PluginHost { … };
class PluginAuthHostProxy
: public PluginAuthHost { … };
class PluginInfoHostProxy
: public PluginInfoHost { … };
class PluginHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PluginHost>>
class PluginHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PluginHostStub() = default;
~PluginHostStub() 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 PluginAuthHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PluginAuthHost>>
class PluginAuthHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PluginAuthHostStub() = default;
~PluginAuthHostStub() 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 PluginInfoHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PluginInfoHost>>
class PluginInfoHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PluginInfoHostStub() = default;
~PluginInfoHostStub() 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 PluginHostRequestValidator : public mojo::MessageReceiver { … };
class PluginAuthHostRequestValidator : public mojo::MessageReceiver { … };
class PluginInfoHostRequestValidator : public mojo::MessageReceiver { … };
class PluginInfoHostResponseValidator : public mojo::MessageReceiver { … };
class PluginInfo { … };
template <typename T, PluginInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PluginInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PluginInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PluginInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PluginParam { … };
template <typename T, PluginParam::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PluginParam::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PluginParam::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PluginParam::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PluginInfoPtr PluginInfo::Clone() const { … }
template <typename T, PluginInfo::EnableIfSame<T>*>
bool PluginInfo::Equals(const T& other_struct) const { … }
template <typename T, PluginInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PluginParamPtr PluginParam::Clone() const { … }
template <typename T, PluginParam::EnableIfSame<T>*>
bool PluginParam::Equals(const T& other_struct) const { … }
template <typename T, PluginParam::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::chrome::mojom::PluginInfo::DataView,
::chrome::mojom::PluginInfoPtr> { … };
template <>
struct StructTraits<::chrome::mojom::PluginParam::DataView,
::chrome::mojom::PluginParamPtr> { … };
}
#endif