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

Side by Side 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 unified diff | Download patch
OLDNEW
(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 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_
OLDNEW
« 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