Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: components/printing/service/pdf_compositor_impl.h

Issue 2832633002: Add PDF compositor service (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/printing/service/README.md ('k') | components/printing/service/pdf_compositor_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/service/pdf_compositor_impl.h
diff --git a/components/printing/service/pdf_compositor_impl.h b/components/printing/service/pdf_compositor_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..b7890fa10ee2e73758dbcb2402a976b4e9aec778
--- /dev/null
+++ b/components/printing/service/pdf_compositor_impl.h
@@ -0,0 +1,38 @@
+// 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 COMPONENTS_PRINTING_SERVICE_PDF_COMPOSITOR_IMPL_H_
+#define COMPONENTS_PRINTING_SERVICE_PDF_COMPOSITOR_IMPL_H_
+
+#include <memory>
+#include <string>
+
+#include "base/macros.h"
+#include "components/printing/service/public/interfaces/pdf_compositor.mojom.h"
+#include "mojo/public/cpp/system/buffer.h"
+#include "services/service_manager/public/cpp/service_context_ref.h"
+
+namespace printing {
+
+class PdfCompositorImpl : public mojom::PdfCompositor {
+ public:
+ PdfCompositorImpl(
+ const std::string& creator,
+ std::unique_ptr<service_manager::ServiceContextRef> service_ref);
+ ~PdfCompositorImpl() override;
+
+ void CompositePdf(
+ mojo::ScopedSharedBufferHandle sk_handle,
+ mojom::PdfCompositor::CompositePdfCallback callback) override;
+
+ private:
+ const std::unique_ptr<service_manager::ServiceContextRef> service_ref_;
+ const std::string creator_;
+
+ DISALLOW_COPY_AND_ASSIGN(PdfCompositorImpl);
+};
+
+} // namespace printing
+
+#endif // COMPONENTS_PRINTING_SERVICE_PDF_COMPOSITOR_IMPL_H_
« no previous file with comments | « components/printing/service/README.md ('k') | components/printing/service/pdf_compositor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698