chromium/components/printing/browser/print_to_pdf/pdf_print_job.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/printing/browser/print_to_pdf/pdf_print_job.h"

#include "base/functional/bind.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "components/printing/browser/print_composite_client.h"
#include "components/printing/browser/print_to_pdf/pdf_print_utils.h"
#include "components/printing/common/print.mojom.h"
#include "printing/mojom/print.mojom.h"
#include "printing/page_range.h"
#include "printing/printing_utils.h"
#include "third_party/abseil-cpp/absl/types/variant.h"

namespace print_to_pdf {

PdfPrintJob::PdfPrintJob(content::WebContents* contents,
                         content::RenderFrameHost* rfh,
                         PrintToPdfCallback callback)
    :{}

PdfPrintJob::~PdfPrintJob() {}

void PdfPrintJob::StartJob(
    content::WebContents* contents,
    content::RenderFrameHost* rfh,
    const mojo::AssociatedRemote<printing::mojom::PrintRenderFrame>& remote,
    const std::string& page_ranges,
    printing::mojom::PrintPagesParamsPtr print_pages_params,
    PrintToPdfCallback callback) {}

void PdfPrintJob::OnDidPrintWithParams(
    printing::mojom::PrintWithParamsResultPtr result) {}

void PdfPrintJob::OnCompositeDocumentToPdfDone(
    printing::mojom::PrintCompositor::Status status,
    base::ReadOnlySharedMemoryRegion region) {}

void PdfPrintJob::ReportMemoryRegion(
    const base::ReadOnlySharedMemoryRegion& region) {}

void PdfPrintJob::FailJob(PdfPrintResult result) {}

void PdfPrintJob::RenderFrameDeleted(
    content::RenderFrameHost* render_frame_host) {}

}  // namespace print_to_pdf