OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void OnDecodeImage(const std::vector<unsigned char>& encoded_data); | 55 void OnDecodeImage(const std::vector<unsigned char>& encoded_data); |
56 void OnDecodeImageBase64(const std::string& encoded_data); | 56 void OnDecodeImageBase64(const std::string& encoded_data); |
57 void OnRenderPDFPagesToMetafile( | 57 void OnRenderPDFPagesToMetafile( |
58 base::PlatformFile pdf_file, | 58 base::PlatformFile pdf_file, |
59 const FilePath& metafile_path, | 59 const FilePath& metafile_path, |
60 const printing::PdfRenderSettings& pdf_render_settings, | 60 const printing::PdfRenderSettings& pdf_render_settings, |
61 const std::vector<printing::PageRange>& page_ranges); | 61 const std::vector<printing::PageRange>& page_ranges); |
62 void OnRobustJPEGDecodeImage( | 62 void OnRobustJPEGDecodeImage( |
63 const std::vector<unsigned char>& encoded_data); | 63 const std::vector<unsigned char>& encoded_data); |
64 void OnParseJSON(const std::string& json); | 64 void OnParseJSON(const std::string& json); |
| 65 void OnCreateZipFile(const FilePath& dir_path, const FilePath& dest_path, |
| 66 const std::vector<FilePath>& file_paths); |
65 | 67 |
66 #if defined(OS_WIN) | 68 #if defined(OS_WIN) |
67 // Helper method for Windows. | 69 // Helper method for Windows. |
68 // |highest_rendered_page_number| is set to -1 on failure to render any page. | 70 // |highest_rendered_page_number| is set to -1 on failure to render any page. |
69 bool RenderPDFToWinMetafile( | 71 bool RenderPDFToWinMetafile( |
70 base::PlatformFile pdf_file, | 72 base::PlatformFile pdf_file, |
71 const FilePath& metafile_path, | 73 const FilePath& metafile_path, |
72 const gfx::Rect& render_area, | 74 const gfx::Rect& render_area, |
73 int render_dpi, | 75 int render_dpi, |
74 bool autorotate, | 76 bool autorotate, |
75 const std::vector<printing::PageRange>& page_ranges, | 77 const std::vector<printing::PageRange>& page_ranges, |
76 int* highest_rendered_page_number, | 78 int* highest_rendered_page_number, |
77 double* scale_factor); | 79 double* scale_factor); |
78 #endif // defined(OS_WIN) | 80 #endif // defined(OS_WIN) |
79 | 81 |
80 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); | 82 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); |
81 | 83 |
82 scoped_ptr<ProfileImportHandler> import_handler_; | 84 scoped_ptr<ProfileImportHandler> import_handler_; |
83 }; | 85 }; |
84 | 86 |
85 } // namespace chrome | 87 } // namespace chrome |
86 | 88 |
87 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 89 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
OLD | NEW |