#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "chrome/services/printing/public/mojom/pdf_nup_converter.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 "chrome/services/printing/public/mojom/pdf_nup_converter.mojom-params-data.h"
#include "chrome/services/printing/public/mojom/pdf_nup_converter.mojom-shared-message-ids.h"
#include "chrome/services/printing/public/mojom/pdf_nup_converter.mojom-import-headers.h"
#include "chrome/services/printing/public/mojom/pdf_nup_converter.mojom-test-utils.h"
namespace printing::mojom {
const char PdfNupConverter::Name_[] = …;
PdfNupConverter::IPCStableHashFunction PdfNupConverter::MessageToMethodInfo_(mojo::Message& message) { … }
const char* PdfNupConverter::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PdfNupConverter::NupPageConvert_Sym::IPCStableHash() { … }
uint32_t PdfNupConverter::NupDocumentConvert_Sym::IPCStableHash() { … }
uint32_t PdfNupConverter::SetWebContentsURL_Sym::IPCStableHash() { … }
uint32_t PdfNupConverter::SetUseSkiaRendererPolicy_Sym::IPCStableHash() { … }
# endif
class PdfNupConverter_NupPageConvert_ForwardToCallback
: public mojo::MessageReceiver { … };
class PdfNupConverter_NupDocumentConvert_ForwardToCallback
: public mojo::MessageReceiver { … };
PdfNupConverterProxy::PdfNupConverterProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void PdfNupConverterProxy::NupPageConvert(
uint32_t in_pages_per_sheet, const ::gfx::Size& in_page_size, const ::gfx::Rect& in_printable_area, std::vector<::base::ReadOnlySharedMemoryRegion> in_pdf_page_regions, NupPageConvertCallback callback) { … }
void PdfNupConverterProxy::NupDocumentConvert(
uint32_t in_pages_per_sheet, const ::gfx::Size& in_page_size, const ::gfx::Rect& in_printable_area, ::base::ReadOnlySharedMemoryRegion in_src_pdf_region, NupDocumentConvertCallback callback) { … }
void PdfNupConverterProxy::SetWebContentsURL(
const ::GURL& in_url) { … }
void PdfNupConverterProxy::SetUseSkiaRendererPolicy(
bool in_use_skia) { … }
class PdfNupConverter_NupPageConvert_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool PdfNupConverter_NupPageConvert_ForwardToCallback::Accept(
mojo::Message* message) { … }
void PdfNupConverter_NupPageConvert_ProxyToResponder::Run(
PdfNupConverter::Status in_status, ::base::ReadOnlySharedMemoryRegion in_pdf_region) { … }
class PdfNupConverter_NupDocumentConvert_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool PdfNupConverter_NupDocumentConvert_ForwardToCallback::Accept(
mojo::Message* message) { … }
void PdfNupConverter_NupDocumentConvert_ProxyToResponder::Run(
PdfNupConverter::Status in_status, ::base::ReadOnlySharedMemoryRegion in_pdf_region) { … }
bool PdfNupConverterStubDispatch::Accept(
PdfNupConverter* impl,
mojo::Message* message) { … }
bool PdfNupConverterStubDispatch::AcceptWithResponder(
PdfNupConverter* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kPdfNupConverterValidationInfo[] = …;
bool PdfNupConverterRequestValidator::Accept(mojo::Message* message) { … }
bool PdfNupConverterResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace printing::mojom {
void PdfNupConverterInterceptorForTesting::NupPageConvert(uint32_t pages_per_sheet, const ::gfx::Size& page_size, const ::gfx::Rect& printable_area, std::vector<::base::ReadOnlySharedMemoryRegion> pdf_page_regions, NupPageConvertCallback callback) { … }
void PdfNupConverterInterceptorForTesting::NupDocumentConvert(uint32_t pages_per_sheet, const ::gfx::Size& page_size, const ::gfx::Rect& printable_area, ::base::ReadOnlySharedMemoryRegion src_pdf_region, NupDocumentConvertCallback callback) { … }
void PdfNupConverterInterceptorForTesting::SetWebContentsURL(const ::GURL& url) { … }
void PdfNupConverterInterceptorForTesting::SetUseSkiaRendererPolicy(bool use_skia) { … }
PdfNupConverterAsyncWaiter::PdfNupConverterAsyncWaiter(
PdfNupConverter* proxy) : … { … }
PdfNupConverterAsyncWaiter::~PdfNupConverterAsyncWaiter() = default;
void PdfNupConverterAsyncWaiter::NupPageConvert(
uint32_t pages_per_sheet, const ::gfx::Size& page_size, const ::gfx::Rect& printable_area, std::vector<::base::ReadOnlySharedMemoryRegion> pdf_page_regions, PdfNupConverter::Status* out_status, ::base::ReadOnlySharedMemoryRegion* out_pdf_region) { … }
void PdfNupConverterAsyncWaiter::NupDocumentConvert(
uint32_t pages_per_sheet, const ::gfx::Size& page_size, const ::gfx::Rect& printable_area, ::base::ReadOnlySharedMemoryRegion src_pdf_region, PdfNupConverter::Status* out_status, ::base::ReadOnlySharedMemoryRegion* out_pdf_region) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif