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

Side by Side Diff: chrome/browser/printing/pwg_raster_converter.h

Issue 2713023005: Fix some nits from r447440. (Closed)
Patch Set: rebase, git cl format Created 3 years, 8 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
« no previous file with comments | « chrome/browser/printing/print_job.cc ('k') | chrome/browser/printing/pwg_raster_converter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job.cc ('k') | chrome/browser/printing/pwg_raster_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698