Add GCMChannelStatusSyncer to schedule requests and enable/disable GCM
[chromium-blink-merge.git] / chrome / browser / local_discovery / pwg_raster_converter.h
blobf31c59b9b7cdc79e3b307da42222dd444d33e40d
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PWG_RASTER_CONVERTER_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PWG_RASTER_CONVERTER_H_
8 #include "base/callback.h"
9 #include "base/memory/ref_counted_memory.h"
11 namespace base {
12 class FilePath;
15 namespace gfx {
16 class Size;
19 namespace printing {
20 class PdfRenderSettings;
21 struct PwgRasterSettings;
24 namespace local_discovery {
26 class PWGRasterConverter {
27 public:
28 // Callback for when the PDF is converted to a PWG raster.
29 // |success| denotes whether the conversion succeeded.
30 // |temp_file| is the path to the temp file (owned by the converter) that
31 // contains the PWG raster data.
32 typedef base::Callback<void(bool /*success*/,
33 const base::FilePath& /*temp_file*/)>
34 ResultCallback;
35 virtual ~PWGRasterConverter() {}
37 static scoped_ptr<PWGRasterConverter> CreateDefault();
39 virtual void Start(base::RefCountedMemory* data,
40 const printing::PdfRenderSettings& conversion_settings,
41 const printing::PwgRasterSettings& bitmap_settings,
42 const ResultCallback& callback) = 0;
45 } // namespace local_discovery
47 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PWG_RASTER_CONVERTER_H_