#ifndef CHROME_COMMON_RENDERER_CONFIGURATION_MOJOM_H_
#define CHROME_COMMON_RENDERER_CONFIGURATION_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/renderer_configuration.mojom-features.h"
#include "chrome/common/renderer_configuration.mojom-shared.h"
#include "chrome/common/renderer_configuration.mojom-forward.h"
#include "components/content_settings/common/content_settings_manager.mojom-forward.h"
#include "components/content_settings/core/common/content_settings.mojom-forward.h"
#include "mojo/public/mojom/base/time.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"
namespace chrome::mojom {
class BoundSessionRequestThrottledHandlerProxy;
template <typename ImplRefTraits>
class BoundSessionRequestThrottledHandlerStub;
class BoundSessionRequestThrottledHandlerRequestValidator;
class BoundSessionRequestThrottledHandlerResponseValidator;
class BoundSessionRequestThrottledHandler
: public BoundSessionRequestThrottledHandlerInterfaceBase { … };
class ChromeOSListenerProxy;
template <typename ImplRefTraits>
class ChromeOSListenerStub;
class ChromeOSListenerRequestValidator;
class ChromeOSListener
: public ChromeOSListenerInterfaceBase { … };
class RendererConfigurationProxy;
template <typename ImplRefTraits>
class RendererConfigurationStub;
class RendererConfigurationRequestValidator;
class RendererConfiguration
: public RendererConfigurationInterfaceBase { … };
class BoundSessionRequestThrottledHandlerProxy
: public BoundSessionRequestThrottledHandler { … };
class ChromeOSListenerProxy
: public ChromeOSListener { … };
class RendererConfigurationProxy
: public RendererConfiguration { … };
class BoundSessionRequestThrottledHandlerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<BoundSessionRequestThrottledHandler>>
class BoundSessionRequestThrottledHandlerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
BoundSessionRequestThrottledHandlerStub() = default;
~BoundSessionRequestThrottledHandlerStub() 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 ChromeOSListenerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ChromeOSListener>>
class ChromeOSListenerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ChromeOSListenerStub() = default;
~ChromeOSListenerStub() 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 RendererConfigurationStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<RendererConfiguration>>
class RendererConfigurationStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
RendererConfigurationStub() = default;
~RendererConfigurationStub() 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 BoundSessionRequestThrottledHandlerRequestValidator : public mojo::MessageReceiver { … };
class ChromeOSListenerRequestValidator : public mojo::MessageReceiver { … };
class RendererConfigurationRequestValidator : public mojo::MessageReceiver { … };
class BoundSessionRequestThrottledHandlerResponseValidator : public mojo::MessageReceiver { … };
class BoundSessionThrottlerParams { … };
template <typename T, BoundSessionThrottlerParams::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BoundSessionThrottlerParams::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BoundSessionThrottlerParams::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BoundSessionThrottlerParams::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class DynamicParams { … };
template <typename T, DynamicParams::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, DynamicParams::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, DynamicParams::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, DynamicParams::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BoundSessionThrottlerParamsPtr BoundSessionThrottlerParams::Clone() const { … }
template <typename T, BoundSessionThrottlerParams::EnableIfSame<T>*>
bool BoundSessionThrottlerParams::Equals(const T& other_struct) const { … }
template <typename T, BoundSessionThrottlerParams::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
DynamicParamsPtr DynamicParams::Clone() const { … }
template <typename T, DynamicParams::EnableIfSame<T>*>
bool DynamicParams::Equals(const T& other_struct) const { … }
template <typename T, DynamicParams::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::chrome::mojom::BoundSessionThrottlerParams::DataView,
::chrome::mojom::BoundSessionThrottlerParamsPtr> { … };
template <>
struct StructTraits<::chrome::mojom::DynamicParams::DataView,
::chrome::mojom::DynamicParamsPtr> { … };
}
#endif