blob: acb97436e5fe06a6dd26e048d5ef64ad01c032a5 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_SERVICES_PRINTING_PDF_TO_EMF_CONVERTER_FACTORY_H_
#define CHROME_SERVICES_PRINTING_PDF_TO_EMF_CONVERTER_FACTORY_H_
#include "base/macros.h"
#include "chrome/services/printing/public/interfaces/pdf_to_emf_converter.mojom.h"
#include "services/service_manager/public/cpp/service_context_ref.h"
namespace printing {
class PdfToEmfConverterFactory : public mojom::PdfToEmfConverterFactory {
public:
explicit PdfToEmfConverterFactory(
std::unique_ptr<service_manager::ServiceContextRef> service_ref);
~PdfToEmfConverterFactory() override;
// TODO(crbug.com/798782): remove when the Cloud print chrome/service is
// removed.
PdfToEmfConverterFactory();
static void Create(mojom::PdfToEmfConverterFactoryRequest request);
private:
// mojom::PdfToEmfConverterFactory implementation.
void CreateConverter(mojo::ScopedHandle pdf_file_in,
const PdfRenderSettings& render_settings,
mojom::PdfToEmfConverterClientPtr client,
CreateConverterCallback callback) override;
const std::unique_ptr<service_manager::ServiceContextRef> service_ref_;
DISALLOW_COPY_AND_ASSIGN(PdfToEmfConverterFactory);
};
} // namespace printing
#endif // CHROME_SERVICES_PRINTING_PDF_TO_EMF_CONVERTER_FACTORY_H_