OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted_memory.h" |
| 10 |
| 11 namespace base { |
| 12 class FilePath; |
| 13 } |
| 14 |
| 15 namespace printing { |
| 16 class PdfRenderSettings; |
| 17 } |
| 18 |
| 19 namespace printing { |
| 20 |
| 21 class PdfToEmfConverter { |
| 22 public: |
| 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*/)> |
| 26 ResultCallback; |
| 27 virtual ~PdfToEmfConverter() {} |
| 28 |
| 29 static scoped_ptr<PdfToEmfConverter> CreateDefault(); |
| 30 |
| 31 virtual void Start(base::RefCountedMemory* data, |
| 32 const printing::PdfRenderSettings& conversion_settings, |
| 33 const ResultCallback& callback) = 0; |
| 34 }; |
| 35 |
| 36 } // namespace printing |
| 37 |
| 38 #endif // CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_ |
OLD | NEW |