OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_PRINTING_SERVICE_PDF_COMPOSITOR_IMPL_H_ |
| 6 #define COMPONENTS_PRINTING_SERVICE_PDF_COMPOSITOR_IMPL_H_ |
| 7 |
| 8 #include <memory> |
| 9 #include <string> |
| 10 |
| 11 #include "base/macros.h" |
| 12 #include "components/printing/service/public/interfaces/pdf_compositor.mojom.h" |
| 13 #include "mojo/public/cpp/system/buffer.h" |
| 14 #include "services/service_manager/public/cpp/service_context_ref.h" |
| 15 |
| 16 namespace printing { |
| 17 |
| 18 class PdfCompositorImpl : public mojom::PdfCompositor { |
| 19 public: |
| 20 PdfCompositorImpl( |
| 21 const std::string& creator, |
| 22 std::unique_ptr<service_manager::ServiceContextRef> service_ref); |
| 23 ~PdfCompositorImpl() override; |
| 24 |
| 25 void CompositePdf( |
| 26 mojo::ScopedSharedBufferHandle sk_handle, |
| 27 const mojom::PdfCompositor::CompositePdfCallback& callback) override; |
| 28 |
| 29 private: |
| 30 const std::unique_ptr<service_manager::ServiceContextRef> service_ref_; |
| 31 const std::string creator_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(PdfCompositorImpl); |
| 34 }; |
| 35 |
| 36 } // namespace printing |
| 37 |
| 38 #endif // COMPONENTS_PRINTING_SERVICE_PDF_COMPOSITOR_IMPL_H_ |
OLD | NEW |