blob: 7eac8add2136644d15153627c2b5c86d8aaf5fbf [file]
// 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_PRINTING_SERVICE_H_
#define CHROME_SERVICES_PRINTING_PRINTING_SERVICE_H_
#include "base/macros.h"
#include "build/build_config.h"
#include "chrome/services/printing/public/mojom/printing_service.mojom.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/receiver.h"
namespace printing {
class PrintingService : public mojom::PrintingService {
public:
explicit PrintingService(
mojo::PendingReceiver<mojom::PrintingService> receiver);
~PrintingService() override;
private:
// mojom::PrintingService implementation:
void BindPdfNupConverter(
mojo::PendingReceiver<mojom::PdfNupConverter> receiver) override;
void BindPdfToPwgRasterConverter(
mojo::PendingReceiver<mojom::PdfToPwgRasterConverter> receiver) override;
#if defined(OS_WIN)
void BindPdfToEmfConverterFactory(
mojo::PendingReceiver<mojom::PdfToEmfConverterFactory> receiver) override;
#endif
mojo::Receiver<mojom::PrintingService> receiver_;
DISALLOW_COPY_AND_ASSIGN(PrintingService);
};
} // namespace printing
#endif // CHROME_SERVICES_PRINTING_PRINTING_SERVICE_H_