#ifndef CHROME_COMMON_CHROME_RENDER_FRAME_MOJOM_H_
#define CHROME_COMMON_CHROME_RENDER_FRAME_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/common/chrome_render_frame.mojom-features.h"
#include "chrome/common/chrome_render_frame.mojom-shared.h"
#include "chrome/common/chrome_render_frame.mojom-forward.h"
#include "components/lens/lens_metadata.mojom-forward.h"
#include "mojo/public/mojom/base/string16.mojom.h"
#include "skia/public/mojom/bitmap.mojom.h"
#include "third_party/blink/public/mojom/window_features/window_features.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 chrome::mojom {
class ChromeRenderFrameProxy;
template <typename ImplRefTraits>
class ChromeRenderFrameStub;
class ChromeRenderFrameRequestValidator;
class ChromeRenderFrameResponseValidator;
class ChromeRenderFrame
: public ChromeRenderFrameInterfaceBase { … };
class ChromeRenderFrameProxy
: public ChromeRenderFrame { … };
class ChromeRenderFrameStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ChromeRenderFrame>>
class ChromeRenderFrameStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ChromeRenderFrameStub() = default;
~ChromeRenderFrameStub() 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 ChromeRenderFrameRequestValidator : public mojo::MessageReceiver { … };
class ChromeRenderFrameResponseValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif