#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "pdf/mojom/pdf.mojom.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "pdf/mojom/pdf.mojom-params-data.h"
#include "pdf/mojom/pdf.mojom-shared-message-ids.h"
#include "pdf/mojom/pdf.mojom-import-headers.h"
#include "pdf/mojom/pdf.mojom-test-utils.h"
namespace pdf::mojom {
const char PdfListener::Name_[] = …;
PdfListener::IPCStableHashFunction PdfListener::MessageToMethodInfo_(mojo::Message& message) { … }
const char* PdfListener::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PdfListener::SetCaretPosition_Sym::IPCStableHash() { … }
uint32_t PdfListener::MoveRangeSelectionExtent_Sym::IPCStableHash() { … }
uint32_t PdfListener::SetSelectionBounds_Sym::IPCStableHash() { … }
# endif
PdfListenerProxy::PdfListenerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void PdfListenerProxy::SetCaretPosition(
const ::gfx::PointF& in_position) { … }
void PdfListenerProxy::MoveRangeSelectionExtent(
const ::gfx::PointF& in_extent) { … }
void PdfListenerProxy::SetSelectionBounds(
const ::gfx::PointF& in_base, const ::gfx::PointF& in_extent) { … }
bool PdfListenerStubDispatch::Accept(
PdfListener* impl,
mojo::Message* message) { … }
bool PdfListenerStubDispatch::AcceptWithResponder(
PdfListener* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kPdfListenerValidationInfo[] = …;
bool PdfListenerRequestValidator::Accept(mojo::Message* message) { … }
const char PdfHost::Name_[] = …;
PdfHost::IPCStableHashFunction PdfHost::MessageToMethodInfo_(mojo::Message& message) { … }
const char* PdfHost::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PdfHost::SetListener_Sym::IPCStableHash() { … }
uint32_t PdfHost::UpdateContentRestrictions_Sym::IPCStableHash() { … }
uint32_t PdfHost::HasUnsupportedFeature_Sym::IPCStableHash() { … }
uint32_t PdfHost::SaveUrlAs_Sym::IPCStableHash() { … }
uint32_t PdfHost::SelectionChanged_Sym::IPCStableHash() { … }
uint32_t PdfHost::SetPluginCanSave_Sym::IPCStableHash() { … }
# endif
PdfHostProxy::PdfHostProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void PdfHostProxy::SetListener(
::mojo::PendingRemote<PdfListener> in_client) { … }
void PdfHostProxy::UpdateContentRestrictions(
int32_t in_restrictions) { … }
void PdfHostProxy::HasUnsupportedFeature(
) { … }
void PdfHostProxy::SaveUrlAs(
const ::GURL& in_url, ::network::mojom::ReferrerPolicy in_policy) { … }
void PdfHostProxy::SelectionChanged(
const ::gfx::PointF& in_left, int32_t in_left_height, const ::gfx::PointF& in_right, int32_t in_right_height) { … }
void PdfHostProxy::SetPluginCanSave(
bool in_can_save) { … }
bool PdfHostStubDispatch::Accept(
PdfHost* impl,
mojo::Message* message) { … }
bool PdfHostStubDispatch::AcceptWithResponder(
PdfHost* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kPdfHostValidationInfo[] = …;
bool PdfHostRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace pdf::mojom {
void PdfListenerInterceptorForTesting::SetCaretPosition(const ::gfx::PointF& position) { … }
void PdfListenerInterceptorForTesting::MoveRangeSelectionExtent(const ::gfx::PointF& extent) { … }
void PdfListenerInterceptorForTesting::SetSelectionBounds(const ::gfx::PointF& base, const ::gfx::PointF& extent) { … }
PdfListenerAsyncWaiter::PdfListenerAsyncWaiter(
PdfListener* proxy) : … { … }
PdfListenerAsyncWaiter::~PdfListenerAsyncWaiter() = default;
void PdfHostInterceptorForTesting::SetListener(::mojo::PendingRemote<PdfListener> client) { … }
void PdfHostInterceptorForTesting::UpdateContentRestrictions(int32_t restrictions) { … }
void PdfHostInterceptorForTesting::HasUnsupportedFeature() { … }
void PdfHostInterceptorForTesting::SaveUrlAs(const ::GURL& url, ::network::mojom::ReferrerPolicy policy) { … }
void PdfHostInterceptorForTesting::SelectionChanged(const ::gfx::PointF& left, int32_t left_height, const ::gfx::PointF& right, int32_t right_height) { … }
void PdfHostInterceptorForTesting::SetPluginCanSave(bool can_save) { … }
PdfHostAsyncWaiter::PdfHostAsyncWaiter(
PdfHost* proxy) : … { … }
PdfHostAsyncWaiter::~PdfHostAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif