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

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

Issue 211843004: Tunnel PWGRasterConfig capability to the ticket and to the utility process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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_LOCAL_DISCOVERY_PWG_RASTER_CONVERTER_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PWG_RASTER_CONVERTER_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PWG_RASTER_CONVERTER_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PWG_RASTER_CONVERTER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted_memory.h" 9 #include "base/memory/ref_counted_memory.h"
10 10
11 namespace base { 11 namespace base {
12 class FilePath; 12 class FilePath;
13 } 13 }
14 14
15 namespace gfx { 15 namespace gfx {
16 class Size; 16 class Size;
17 } 17 }
18 18
19 namespace printing { 19 namespace printing {
20 class PdfRenderSettings; 20 class PdfRenderSettings;
21 struct PwgRasterSettings;
21 } 22 }
22 23
23 namespace local_discovery { 24 namespace local_discovery {
24 25
25 class PWGRasterConverter { 26 class PWGRasterConverter {
26 public: 27 public:
27 // Callback for when the PDF is converted to a PWG raster. 28 // Callback for when the PDF is converted to a PWG raster.
28 // |success| denotes whether the conversion succeeded. 29 // |success| denotes whether the conversion succeeded.
29 // |temp_file| is the path to the temp file (owned by the converter) that 30 // |temp_file| is the path to the temp file (owned by the converter) that
30 // contains the PWG raster data. 31 // contains the PWG raster data.
31 typedef base::Callback<void(bool /*success*/, 32 typedef base::Callback<void(bool /*success*/,
32 const base::FilePath& /*temp_file*/)> 33 const base::FilePath& /*temp_file*/)>
33 ResultCallback; 34 ResultCallback;
34 virtual ~PWGRasterConverter() {} 35 virtual ~PWGRasterConverter() {}
35 36
36 static scoped_ptr<PWGRasterConverter> CreateDefault(); 37 static scoped_ptr<PWGRasterConverter> CreateDefault();
37 38
38 virtual void Start(base::RefCountedMemory* data, 39 virtual void Start(base::RefCountedMemory* data,
39 const printing::PdfRenderSettings& conversion_settings, 40 const printing::PdfRenderSettings& conversion_settings,
41 const printing::PwgRasterSettings& bitmap_settings,
40 const ResultCallback& callback) = 0; 42 const ResultCallback& callback) = 0;
41 }; 43 };
42 44
43 } // namespace local_discovery 45 } // namespace local_discovery
44 46
45 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PWG_RASTER_CONVERTER_H_ 47 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PWG_RASTER_CONVERTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/privet_http_unittest.cc ('k') | chrome/browser/local_discovery/pwg_raster_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698