#ifndef SERVICES_PROXY_RESOLVER_PUBLIC_MOJOM_PROXY_RESOLVER_MOJOM_BLINK_H_
#define SERVICES_PROXY_RESOLVER_PUBLIC_MOJOM_PROXY_RESOLVER_MOJOM_BLINK_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 "services/proxy_resolver/public/mojom/proxy_resolver.mojom-features.h"
#include "services/proxy_resolver/public/mojom/proxy_resolver.mojom-shared.h"
#include "services/proxy_resolver/public/mojom/proxy_resolver.mojom-blink-forward.h"
#include "sandbox/policy/mojom/sandbox.mojom-blink-forward.h"
#include "services/network/public/mojom/ip_address.mojom-blink.h"
#include "services/network/public/mojom/network_anonymization_key.mojom-blink-forward.h"
#include "services/network/public/mojom/network_param.mojom-blink.h"
#include "url/mojom/url.mojom-blink.h"
#include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h"
#include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
#include "third_party/blink/renderer/platform/wtf/hash_functions.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#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/platform/web_common.h"
namespace proxy_resolver::mojom::blink {
class HostResolverRequestClientProxy;
template <typename ImplRefTraits>
class HostResolverRequestClientStub;
class HostResolverRequestClientRequestValidator;
class BLINK_PLATFORM_EXPORT HostResolverRequestClient
: public HostResolverRequestClientInterfaceBase { … };
class ProxyResolverProxy;
template <typename ImplRefTraits>
class ProxyResolverStub;
class ProxyResolverRequestValidator;
class BLINK_PLATFORM_EXPORT ProxyResolver
: public ProxyResolverInterfaceBase { … };
class ProxyResolverRequestClientProxy;
template <typename ImplRefTraits>
class ProxyResolverRequestClientStub;
class ProxyResolverRequestClientRequestValidator;
class BLINK_PLATFORM_EXPORT ProxyResolverRequestClient
: public ProxyResolverRequestClientInterfaceBase { … };
class ProxyResolverFactoryProxy;
template <typename ImplRefTraits>
class ProxyResolverFactoryStub;
class ProxyResolverFactoryRequestValidator;
class BLINK_PLATFORM_EXPORT ProxyResolverFactory
: public ProxyResolverFactoryInterfaceBase { … };
class ProxyResolverFactoryRequestClientProxy;
template <typename ImplRefTraits>
class ProxyResolverFactoryRequestClientStub;
class ProxyResolverFactoryRequestClientRequestValidator;
class BLINK_PLATFORM_EXPORT ProxyResolverFactoryRequestClient
: public ProxyResolverFactoryRequestClientInterfaceBase { … };
class BLINK_PLATFORM_EXPORT HostResolverRequestClientProxy
: public HostResolverRequestClient { … };
class BLINK_PLATFORM_EXPORT ProxyResolverProxy
: public ProxyResolver { … };
class BLINK_PLATFORM_EXPORT ProxyResolverRequestClientProxy
: public ProxyResolverRequestClient { … };
class BLINK_PLATFORM_EXPORT ProxyResolverFactoryProxy
: public ProxyResolverFactory { … };
class BLINK_PLATFORM_EXPORT ProxyResolverFactoryRequestClientProxy
: public ProxyResolverFactoryRequestClient { … };
class BLINK_PLATFORM_EXPORT HostResolverRequestClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<HostResolverRequestClient>>
class HostResolverRequestClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
HostResolverRequestClientStub() = default;
~HostResolverRequestClientStub() 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_PLATFORM_EXPORT ProxyResolverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ProxyResolver>>
class ProxyResolverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ProxyResolverStub() = default;
~ProxyResolverStub() 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_PLATFORM_EXPORT ProxyResolverRequestClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ProxyResolverRequestClient>>
class ProxyResolverRequestClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ProxyResolverRequestClientStub() = default;
~ProxyResolverRequestClientStub() 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_PLATFORM_EXPORT ProxyResolverFactoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ProxyResolverFactory>>
class ProxyResolverFactoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ProxyResolverFactoryStub() = default;
~ProxyResolverFactoryStub() 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_PLATFORM_EXPORT ProxyResolverFactoryRequestClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ProxyResolverFactoryRequestClient>>
class ProxyResolverFactoryRequestClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ProxyResolverFactoryRequestClientStub() = default;
~ProxyResolverFactoryRequestClientStub() 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_PLATFORM_EXPORT HostResolverRequestClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT ProxyResolverRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT ProxyResolverRequestClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT ProxyResolverFactoryRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT ProxyResolverFactoryRequestClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT ProxyInfo { … };
template <typename T, ProxyInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ProxyInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ProxyInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ProxyInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ProxyInfoPtr ProxyInfo::Clone() const { … }
template <typename T, ProxyInfo::EnableIfSame<T>*>
bool ProxyInfo::Equals(const T& other_struct) const { … }
template <typename T, ProxyInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::proxy_resolver::mojom::blink::ProxyInfo::DataView,
::proxy_resolver::mojom::blink::ProxyInfoPtr> { … };
}
#endif