#ifndef SERVICES_NETWORK_PUBLIC_MOJOM_NETWORK_SERVICE_TEST_MOJOM_BLINK_H_
#define SERVICES_NETWORK_PUBLIC_MOJOM_NETWORK_SERVICE_TEST_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/network/public/mojom/network_service_test.mojom-features.h"
#include "services/network/public/mojom/network_service_test.mojom-shared.h"
#include "services/network/public/mojom/network_service_test.mojom-blink-forward.h"
#include "mojo/public/mojom/base/file.mojom-blink-forward.h"
#include "mojo/public/mojom/base/file_path.mojom-blink.h"
#include "mojo/public/mojom/base/memory_pressure_level.mojom-blink-forward.h"
#include "mojo/public/mojom/base/time.mojom-blink.h"
#include "services/network/public/mojom/address_list.mojom-blink-forward.h"
#include "services/network/public/mojom/host_resolver.mojom-blink-forward.h"
#include "services/network/public/mojom/network_change_manager.mojom-blink-forward.h"
#include "services/network/public/mojom/network_interface_change_listener.mojom-blink-forward.h"
#include "services/network/public/mojom/network_param.mojom-blink-forward.h"
#include "services/network/public/mojom/network_types.mojom-blink-forward.h"
#include "services/network/public/mojom/http_cache_backend_file_operations.mojom-blink-forward.h"
#include "services/network/public/mojom/ip_endpoint.mojom-blink.h"
#include "services/network/public/mojom/transferable_socket.mojom-blink-forward.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 network::mojom::blink {
class SimpleCacheEntryProxy;
template <typename ImplRefTraits>
class SimpleCacheEntryStub;
class SimpleCacheEntryRequestValidator;
class SimpleCacheEntryResponseValidator;
class BLINK_PLATFORM_EXPORT SimpleCacheEntry
: public SimpleCacheEntryInterfaceBase { … };
class SimpleCacheEntryEnumeratorProxy;
template <typename ImplRefTraits>
class SimpleCacheEntryEnumeratorStub;
class SimpleCacheEntryEnumeratorRequestValidator;
class SimpleCacheEntryEnumeratorResponseValidator;
class BLINK_PLATFORM_EXPORT SimpleCacheEntryEnumerator
: public SimpleCacheEntryEnumeratorInterfaceBase { … };
class SimpleCacheProxy;
template <typename ImplRefTraits>
class SimpleCacheStub;
class SimpleCacheRequestValidator;
class SimpleCacheResponseValidator;
class BLINK_PLATFORM_EXPORT SimpleCache
: public SimpleCacheInterfaceBase { … };
class NetworkServiceTestProxy;
template <typename ImplRefTraits>
class NetworkServiceTestStub;
class NetworkServiceTestRequestValidator;
class NetworkServiceTestResponseValidator;
class BLINK_PLATFORM_EXPORT NetworkServiceTest
: public NetworkServiceTestInterfaceBase { … };
class BLINK_PLATFORM_EXPORT SimpleCacheEntryProxy
: public SimpleCacheEntry { … };
class BLINK_PLATFORM_EXPORT SimpleCacheEntryEnumeratorProxy
: public SimpleCacheEntryEnumerator { … };
class BLINK_PLATFORM_EXPORT SimpleCacheProxy
: public SimpleCache { … };
class BLINK_PLATFORM_EXPORT NetworkServiceTestProxy
: public NetworkServiceTest { … };
class BLINK_PLATFORM_EXPORT SimpleCacheEntryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SimpleCacheEntry>>
class SimpleCacheEntryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SimpleCacheEntryStub() = default;
~SimpleCacheEntryStub() 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 SimpleCacheEntryEnumeratorStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SimpleCacheEntryEnumerator>>
class SimpleCacheEntryEnumeratorStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SimpleCacheEntryEnumeratorStub() = default;
~SimpleCacheEntryEnumeratorStub() 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 SimpleCacheStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SimpleCache>>
class SimpleCacheStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SimpleCacheStub() = default;
~SimpleCacheStub() 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 NetworkServiceTestStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<NetworkServiceTest>>
class NetworkServiceTestStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
NetworkServiceTestStub() = default;
~NetworkServiceTestStub() 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 SimpleCacheEntryRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT SimpleCacheEntryEnumeratorRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT SimpleCacheRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT NetworkServiceTestRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT SimpleCacheEntryResponseValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT SimpleCacheEntryEnumeratorResponseValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT SimpleCacheResponseValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT NetworkServiceTestResponseValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT Rule { … };
template <typename T, Rule::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Rule::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Rule::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Rule::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT SimpleCacheOpenEntryResult { … };
template <typename T, SimpleCacheOpenEntryResult::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SimpleCacheOpenEntryResult::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SimpleCacheOpenEntryResult::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SimpleCacheOpenEntryResult::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
RulePtr Rule::Clone() const { … }
template <typename T, Rule::EnableIfSame<T>*>
bool Rule::Equals(const T& other_struct) const { … }
template <typename T, Rule::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SimpleCacheOpenEntryResultPtr SimpleCacheOpenEntryResult::Clone() const { … }
template <typename T, SimpleCacheOpenEntryResult::EnableIfSame<T>*>
bool SimpleCacheOpenEntryResult::Equals(const T& other_struct) const { … }
template <typename T, SimpleCacheOpenEntryResult::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::network::mojom::blink::Rule::DataView,
::network::mojom::blink::RulePtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::network::mojom::blink::SimpleCacheOpenEntryResult::DataView,
::network::mojom::blink::SimpleCacheOpenEntryResultPtr> { … };
}
#endif