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& src_dir, |
| 66 const std::vector<FilePath>& src_relative_paths, |
| 67 const FilePath& dest_file); |
65 | 68 |
66 #if defined(OS_WIN) | 69 #if defined(OS_WIN) |
67 // Helper method for Windows. | 70 // Helper method for Windows. |
68 // |highest_rendered_page_number| is set to -1 on failure to render any page. | 71 // |highest_rendered_page_number| is set to -1 on failure to render any page. |
69 bool RenderPDFToWinMetafile( | 72 bool RenderPDFToWinMetafile( |
70 base::PlatformFile pdf_file, | 73 base::PlatformFile pdf_file, |
71 const FilePath& metafile_path, | 74 const FilePath& metafile_path, |
72 const gfx::Rect& render_area, | 75 const gfx::Rect& render_area, |
73 int render_dpi, | 76 int render_dpi, |
74 bool autorotate, | 77 bool autorotate, |
75 const std::vector<printing::PageRange>& page_ranges, | 78 const std::vector<printing::PageRange>& page_ranges, |
76 int* highest_rendered_page_number, | 79 int* highest_rendered_page_number, |
77 double* scale_factor); | 80 double* scale_factor); |
78 #endif // defined(OS_WIN) | 81 #endif // defined(OS_WIN) |
79 | 82 |
80 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); | 83 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); |
81 | 84 |
82 scoped_ptr<ProfileImportHandler> import_handler_; | 85 scoped_ptr<ProfileImportHandler> import_handler_; |
83 }; | 86 }; |
84 | 87 |
85 } // namespace chrome | 88 } // namespace chrome |
86 | 89 |
87 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 90 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
OLD | NEW |