#ifndef PDF_MOJOM_PDF_MOJOM_H_
#define PDF_MOJOM_PDF_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 "pdf/mojom/pdf.mojom-features.h"
#include "pdf/mojom/pdf.mojom-shared.h"
#include "pdf/mojom/pdf.mojom-forward.h"
#include "services/network/public/mojom/referrer_policy.mojom-forward.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"
namespace pdf::mojom {
class PdfListenerProxy;
template <typename ImplRefTraits>
class PdfListenerStub;
class PdfListenerRequestValidator;
class PdfListener
: public PdfListenerInterfaceBase { … };
class PdfHostProxy;
template <typename ImplRefTraits>
class PdfHostStub;
class PdfHostRequestValidator;
class PdfHost
: public PdfHostInterfaceBase { … };
class PdfListenerProxy
: public PdfListener { … };
class PdfHostProxy
: public PdfHost { … };
class PdfListenerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PdfListener>>
class PdfListenerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PdfListenerStub() = default;
~PdfListenerStub() 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 PdfHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PdfHost>>
class PdfHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PdfHostStub() = default;
~PdfHostStub() 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 PdfListenerRequestValidator : public mojo::MessageReceiver { … };
class PdfHostRequestValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif