| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PRINTING_PWG_RASTER_CONVERTER_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PWG_RASTER_CONVERTER_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PWG_RASTER_CONVERTER_H_ | 6 #define CHROME_BROWSER_PRINTING_PWG_RASTER_CONVERTER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/memory/ref_counted_memory.h" | 11 #include "base/memory/ref_counted_memory.h" |
| 12 #include "printing/pdf_render_settings.h" | 12 #include "printing/pdf_render_settings.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class FilePath; | 15 class FilePath; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace cloud_devices { | 18 namespace cloud_devices { |
| 19 class CloudDeviceDescription; | 19 class CloudDeviceDescription; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace gfx { | 22 namespace gfx { |
| 23 class Size; | 23 class Size; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace printing { | 26 namespace printing { |
| 27 | 27 |
| 28 struct PdfRenderSettings; | |
| 29 struct PwgRasterSettings; | 28 struct PwgRasterSettings; |
| 30 | 29 |
| 31 class PWGRasterConverter { | 30 class PWGRasterConverter { |
| 32 public: | 31 public: |
| 33 // Callback for when the PDF is converted to a PWG raster. | 32 // Callback for when the PDF is converted to a PWG raster. |
| 34 // |success| denotes whether the conversion succeeded. | 33 // |success| denotes whether the conversion succeeded. |
| 35 // |temp_file| is the path to the temp file (owned by the converter) that | 34 // |temp_file| is the path to the temp file (owned by the converter) that |
| 36 // contains the PWG raster data. | 35 // contains the PWG raster data. |
| 37 using ResultCallback = | 36 using ResultCallback = |
| 38 base::Callback<void(bool /*success*/, | 37 base::Callback<void(bool /*success*/, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 57 | 56 |
| 58 virtual void Start(base::RefCountedMemory* data, | 57 virtual void Start(base::RefCountedMemory* data, |
| 59 const PdfRenderSettings& conversion_settings, | 58 const PdfRenderSettings& conversion_settings, |
| 60 const PwgRasterSettings& bitmap_settings, | 59 const PwgRasterSettings& bitmap_settings, |
| 61 const ResultCallback& callback) = 0; | 60 const ResultCallback& callback) = 0; |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace printing | 63 } // namespace printing |
| 65 | 64 |
| 66 #endif // CHROME_BROWSER_PRINTING_PWG_RASTER_CONVERTER_H_ | 65 #endif // CHROME_BROWSER_PRINTING_PWG_RASTER_CONVERTER_H_ |
| OLD | NEW |