1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_
6 #define CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_
8 #include "base/callback.h"
9 #include "base/memory/ref_counted_memory.h"
16 class PdfRenderSettings;
21 class PdfToEmfConverter {
23 // Callback for when the PDF is converted to an EMF.
24 typedef base::Callback<void(double /*scale_factor*/,
25 const std::vector<base::FilePath>& /*emf_files*/)>
27 virtual ~PdfToEmfConverter() {}
29 static scoped_ptr<PdfToEmfConverter> CreateDefault();
31 virtual void Start(base::RefCountedMemory* data,
32 const printing::PdfRenderSettings& conversion_settings,
33 const ResultCallback& callback) = 0;
36 } // namespace printing
38 #endif // CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_