#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_DEVTOOLS_DEVTOOLS_AGENT_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_DEVTOOLS_DEVTOOLS_AGENT_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 "third_party/blink/public/mojom/devtools/devtools_agent.mojom-features.h"
#include "third_party/blink/public/mojom/devtools/devtools_agent.mojom-shared.h"
#include "third_party/blink/public/mojom/devtools/devtools_agent.mojom-forward.h"
#include "mojo/public/mojom/base/big_buffer.mojom.h"
#include "mojo/public/mojom/base/read_only_buffer.mojom.h"
#include "mojo/public/mojom/base/unguessable_token.mojom.h"
#include "ui/gfx/geometry/mojom/geometry.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 "third_party/blink/public/common/common_export.h"
namespace blink::mojom {
class DevToolsAgentProxy;
template <typename ImplRefTraits>
class DevToolsAgentStub;
class DevToolsAgentRequestValidator;
class DevToolsAgentResponseValidator;
class BLINK_COMMON_EXPORT DevToolsAgent
: public DevToolsAgentInterfaceBase { … };
class DevToolsAgentHostProxy;
template <typename ImplRefTraits>
class DevToolsAgentHostStub;
class DevToolsAgentHostRequestValidator;
class BLINK_COMMON_EXPORT DevToolsAgentHost
: public DevToolsAgentHostInterfaceBase { … };
class DevToolsSessionProxy;
template <typename ImplRefTraits>
class DevToolsSessionStub;
class DevToolsSessionRequestValidator;
class BLINK_COMMON_EXPORT DevToolsSession
: public DevToolsSessionInterfaceBase { … };
class DevToolsSessionHostProxy;
template <typename ImplRefTraits>
class DevToolsSessionHostStub;
class DevToolsSessionHostRequestValidator;
class BLINK_COMMON_EXPORT DevToolsSessionHost
: public DevToolsSessionHostInterfaceBase { … };
class BLINK_COMMON_EXPORT DevToolsAgentProxy
: public DevToolsAgent { … };
class BLINK_COMMON_EXPORT DevToolsAgentHostProxy
: public DevToolsAgentHost { … };
class BLINK_COMMON_EXPORT DevToolsSessionProxy
: public DevToolsSession { … };
class BLINK_COMMON_EXPORT DevToolsSessionHostProxy
: public DevToolsSessionHost { … };
class BLINK_COMMON_EXPORT DevToolsAgentStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<DevToolsAgent>>
class DevToolsAgentStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
DevToolsAgentStub() = default;
~DevToolsAgentStub() 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_COMMON_EXPORT DevToolsAgentHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<DevToolsAgentHost>>
class DevToolsAgentHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
DevToolsAgentHostStub() = default;
~DevToolsAgentHostStub() 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_COMMON_EXPORT DevToolsSessionStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<DevToolsSession>>
class DevToolsSessionStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
DevToolsSessionStub() = default;
~DevToolsSessionStub() 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_COMMON_EXPORT DevToolsSessionHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<DevToolsSessionHost>>
class DevToolsSessionHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
DevToolsSessionHostStub() = default;
~DevToolsSessionHostStub() 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_COMMON_EXPORT DevToolsAgentRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT DevToolsAgentHostRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT DevToolsSessionRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT DevToolsSessionHostRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT DevToolsAgentResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT DevToolsMessage { … };
template <typename T, DevToolsMessage::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, DevToolsMessage::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, DevToolsMessage::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, DevToolsMessage::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT DevToolsSessionState { … };
template <typename T, DevToolsSessionState::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, DevToolsSessionState::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, DevToolsSessionState::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, DevToolsSessionState::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
DevToolsMessagePtr DevToolsMessage::Clone() const { … }
template <typename T, DevToolsMessage::EnableIfSame<T>*>
bool DevToolsMessage::Equals(const T& other_struct) const { … }
template <typename T, DevToolsMessage::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
DevToolsSessionStatePtr DevToolsSessionState::Clone() const { … }
template <typename T, DevToolsSessionState::EnableIfSame<T>*>
bool DevToolsSessionState::Equals(const T& other_struct) const { … }
template <typename T, DevToolsSessionState::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::DevToolsMessage::DataView,
::blink::mojom::DevToolsMessagePtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::DevToolsSessionState::DataView,
::blink::mojom::DevToolsSessionStatePtr> { … };
}
#endif