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

Side by Side Diff: chrome/utility/chrome_content_utility_client.h

Issue 11309014: File manager: support for zipping selected files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compiler warning: declare base::FileDescriptor a struct, not a class. The struct is put after t… Created 8 years 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 (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"
11 #include "content/public/utility/content_utility_client.h" 11 #include "content/public/utility/content_utility_client.h"
12 #include "printing/pdf_render_settings.h" 12 #include "printing/pdf_render_settings.h"
13 13
14 class FilePath; 14 class FilePath;
15 class Importer; 15 class Importer;
16 16
17 namespace base { 17 namespace base {
18 class DictionaryValue; 18 class DictionaryValue;
19 class Thread; 19 class Thread;
20 struct FileDescriptor;
20 } 21 }
21 22
22 namespace gfx { 23 namespace gfx {
23 class Rect; 24 class Rect;
24 } 25 }
25 26
26 namespace importer { 27 namespace importer {
27 struct SourceProfile; 28 struct SourceProfile;
28 } 29 }
29 30
(...skipping 26 matching lines...) Expand all
56 void OnDecodeImageBase64(const std::string& encoded_data); 57 void OnDecodeImageBase64(const std::string& encoded_data);
57 void OnRenderPDFPagesToMetafile( 58 void OnRenderPDFPagesToMetafile(
58 base::PlatformFile pdf_file, 59 base::PlatformFile pdf_file,
59 const FilePath& metafile_path, 60 const FilePath& metafile_path,
60 const printing::PdfRenderSettings& pdf_render_settings, 61 const printing::PdfRenderSettings& pdf_render_settings,
61 const std::vector<printing::PageRange>& page_ranges); 62 const std::vector<printing::PageRange>& page_ranges);
62 void OnRobustJPEGDecodeImage( 63 void OnRobustJPEGDecodeImage(
63 const std::vector<unsigned char>& encoded_data); 64 const std::vector<unsigned char>& encoded_data);
64 void OnParseJSON(const std::string& json); 65 void OnParseJSON(const std::string& json);
65 66
67 #if defined(OS_CHROMEOS)
68 void OnCreateZipFile(const FilePath& src_dir,
69 const std::vector<FilePath>& src_relative_paths,
70 const base::FileDescriptor& dest_fd);
71 #endif // defined(OS_CHROMEOS)
72
66 #if defined(OS_WIN) 73 #if defined(OS_WIN)
67 // Helper method for Windows. 74 // Helper method for Windows.
68 // |highest_rendered_page_number| is set to -1 on failure to render any page. 75 // |highest_rendered_page_number| is set to -1 on failure to render any page.
69 bool RenderPDFToWinMetafile( 76 bool RenderPDFToWinMetafile(
70 base::PlatformFile pdf_file, 77 base::PlatformFile pdf_file,
71 const FilePath& metafile_path, 78 const FilePath& metafile_path,
72 const gfx::Rect& render_area, 79 const gfx::Rect& render_area,
73 int render_dpi, 80 int render_dpi,
74 bool autorotate, 81 bool autorotate,
75 const std::vector<printing::PageRange>& page_ranges, 82 const std::vector<printing::PageRange>& page_ranges,
76 int* highest_rendered_page_number, 83 int* highest_rendered_page_number,
77 double* scale_factor); 84 double* scale_factor);
78 #endif // defined(OS_WIN) 85 #endif // defined(OS_WIN)
79 86
80 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); 87 void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
81 88
82 scoped_ptr<ProfileImportHandler> import_handler_; 89 scoped_ptr<ProfileImportHandler> import_handler_;
83 }; 90 };
84 91
85 } // namespace chrome 92 } // namespace chrome
86 93
87 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 94 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/file_browser_private.json ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698