#ifndef CHROME_BROWSER_UI_WEBUI_DISCARDS_DISCARDS_MOJOM_H_
#define CHROME_BROWSER_UI_WEBUI_DISCARDS_DISCARDS_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/browser/ui/webui/discards/discards.mojom-features.h"
#include "chrome/browser/ui/webui/discards/discards.mojom-shared.h"
#include "chrome/browser/ui/webui/discards/discards.mojom-forward.h"
#include "chrome/browser/resource_coordinator/lifecycle_unit_state.mojom-forward.h"
#include "mojo/public/mojom/base/process_id.mojom.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 discards::mojom {
class DetailsProviderProxy;
template <typename ImplRefTraits>
class DetailsProviderStub;
class DetailsProviderRequestValidator;
class DetailsProviderResponseValidator;
class DetailsProvider
: public DetailsProviderInterfaceBase { … };
class GraphChangeStreamProxy;
template <typename ImplRefTraits>
class GraphChangeStreamStub;
class GraphChangeStreamRequestValidator;
class GraphChangeStream
: public GraphChangeStreamInterfaceBase { … };
class GraphDumpProxy;
template <typename ImplRefTraits>
class GraphDumpStub;
class GraphDumpRequestValidator;
class GraphDumpResponseValidator;
class GraphDump
: public GraphDumpInterfaceBase { … };
class DetailsProviderProxy
: public DetailsProvider { … };
class GraphChangeStreamProxy
: public GraphChangeStream { … };
class GraphDumpProxy
: public GraphDump { … };
class DetailsProviderStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<DetailsProvider>>
class DetailsProviderStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
DetailsProviderStub() = default;
~DetailsProviderStub() 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 GraphChangeStreamStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<GraphChangeStream>>
class GraphChangeStreamStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
GraphChangeStreamStub() = default;
~GraphChangeStreamStub() 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 GraphDumpStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<GraphDump>>
class GraphDumpStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
GraphDumpStub() = default;
~GraphDumpStub() 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 DetailsProviderRequestValidator : public mojo::MessageReceiver { … };
class GraphChangeStreamRequestValidator : public mojo::MessageReceiver { … };
class GraphDumpRequestValidator : public mojo::MessageReceiver { … };
class DetailsProviderResponseValidator : public mojo::MessageReceiver { … };
class GraphDumpResponseValidator : public mojo::MessageReceiver { … };
class FavIconInfo { … };
template <typename T, FavIconInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FavIconInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FavIconInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FavIconInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class TabDiscardsInfo { … };
template <typename T, TabDiscardsInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, TabDiscardsInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, TabDiscardsInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, TabDiscardsInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PageInfo { … };
template <typename T, PageInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PageInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PageInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PageInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class FrameInfo { … };
template <typename T, FrameInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FrameInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FrameInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FrameInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class ProcessInfo { … };
template <typename T, ProcessInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ProcessInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ProcessInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ProcessInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class WorkerInfo { … };
template <typename T, WorkerInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WorkerInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WorkerInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WorkerInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
TabDiscardsInfoPtr TabDiscardsInfo::Clone() const { … }
template <typename T, TabDiscardsInfo::EnableIfSame<T>*>
bool TabDiscardsInfo::Equals(const T& other_struct) const { … }
template <typename T, TabDiscardsInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PageInfoPtr PageInfo::Clone() const { … }
template <typename T, PageInfo::EnableIfSame<T>*>
bool PageInfo::Equals(const T& other_struct) const { … }
template <typename T, PageInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FrameInfoPtr FrameInfo::Clone() const { … }
template <typename T, FrameInfo::EnableIfSame<T>*>
bool FrameInfo::Equals(const T& other_struct) const { … }
template <typename T, FrameInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ProcessInfoPtr ProcessInfo::Clone() const { … }
template <typename T, ProcessInfo::EnableIfSame<T>*>
bool ProcessInfo::Equals(const T& other_struct) const { … }
template <typename T, ProcessInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WorkerInfoPtr WorkerInfo::Clone() const { … }
template <typename T, WorkerInfo::EnableIfSame<T>*>
bool WorkerInfo::Equals(const T& other_struct) const { … }
template <typename T, WorkerInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FavIconInfoPtr FavIconInfo::Clone() const { … }
template <typename T, FavIconInfo::EnableIfSame<T>*>
bool FavIconInfo::Equals(const T& other_struct) const { … }
template <typename T, FavIconInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::discards::mojom::TabDiscardsInfo::DataView,
::discards::mojom::TabDiscardsInfoPtr> { … };
template <>
struct StructTraits<::discards::mojom::PageInfo::DataView,
::discards::mojom::PageInfoPtr> { … };
template <>
struct StructTraits<::discards::mojom::FrameInfo::DataView,
::discards::mojom::FrameInfoPtr> { … };
template <>
struct StructTraits<::discards::mojom::ProcessInfo::DataView,
::discards::mojom::ProcessInfoPtr> { … };
template <>
struct StructTraits<::discards::mojom::WorkerInfo::DataView,
::discards::mojom::WorkerInfoPtr> { … };
template <>
struct StructTraits<::discards::mojom::FavIconInfo::DataView,
::discards::mojom::FavIconInfoPtr> { … };
}
#endif