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

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

Issue 255543006: Printing on Windows via PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove ref to internal_pdf and rebase Created 6 years, 7 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 (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/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 private: 49 private:
50 // IPC message handlers. 50 // IPC message handlers.
51 void OnUnpackExtension(const base::FilePath& extension_path, 51 void OnUnpackExtension(const base::FilePath& extension_path,
52 const std::string& extension_id, 52 const std::string& extension_id,
53 int location, int creation_flags); 53 int location, int creation_flags);
54 void OnUnpackWebResource(const std::string& resource_data); 54 void OnUnpackWebResource(const std::string& resource_data);
55 void OnParseUpdateManifest(const std::string& xml); 55 void OnParseUpdateManifest(const std::string& xml);
56 void OnDecodeImage(const std::vector<unsigned char>& encoded_data); 56 void OnDecodeImage(const std::vector<unsigned char>& encoded_data);
57 void OnDecodeImageBase64(const std::string& encoded_data); 57 void OnDecodeImageBase64(const std::string& encoded_data);
58 void OnRenderPDFPagesToMetafile( 58 void OnRenderPDFPagesToMetafile(
59 base::PlatformFile pdf_file, 59 IPC::PlatformFileForTransit pdf_transit,
60 const base::FilePath& metafile_path, 60 const base::FilePath& metafile_path,
61 const printing::PdfRenderSettings& settings, 61 const printing::PdfRenderSettings& settings,
62 const std::vector<printing::PageRange>& page_ranges); 62 const std::vector<printing::PageRange>& page_ranges);
63 void OnRenderPDFPagesToPWGRaster( 63 void OnRenderPDFPagesToPWGRaster(
64 IPC::PlatformFileForTransit pdf_transit, 64 IPC::PlatformFileForTransit pdf_transit,
65 const printing::PdfRenderSettings& settings, 65 const printing::PdfRenderSettings& settings,
66 const printing::PwgRasterSettings& bitmap_settings, 66 const printing::PwgRasterSettings& bitmap_settings,
67 IPC::PlatformFileForTransit bitmap_transit); 67 IPC::PlatformFileForTransit bitmap_transit);
68 void OnRobustJPEGDecodeImage( 68 void OnRobustJPEGDecodeImage(
69 const std::vector<unsigned char>& encoded_data); 69 const std::vector<unsigned char>& encoded_data);
70 void OnParseJSON(const std::string& json); 70 void OnParseJSON(const std::string& json);
71 71
72 #if defined(OS_CHROMEOS) 72 #if defined(OS_CHROMEOS)
73 void OnCreateZipFile(const base::FilePath& src_dir, 73 void OnCreateZipFile(const base::FilePath& src_dir,
74 const std::vector<base::FilePath>& src_relative_paths, 74 const std::vector<base::FilePath>& src_relative_paths,
75 const base::FileDescriptor& dest_fd); 75 const base::FileDescriptor& dest_fd);
76 #endif // defined(OS_CHROMEOS) 76 #endif // defined(OS_CHROMEOS)
77 77
78 #if defined(OS_WIN) 78 #if defined(OS_WIN)
79 // Helper method for Windows. 79 // Helper method for Windows.
80 // |highest_rendered_page_number| is set to -1 on failure to render any page. 80 // |highest_rendered_page_number| is set to -1 on failure to render any page.
81 // |page_ranges| is both input and output. If supplied as input, only the
82 // specified pages will be rendered. If an empty vector is supplied it will
83 // be filled with a range of all pages that were rendered.
81 bool RenderPDFToWinMetafile( 84 bool RenderPDFToWinMetafile(
82 base::PlatformFile pdf_file, 85 base::PlatformFile pdf_file,
83 const base::FilePath& metafile_path, 86 const base::FilePath& metafile_path,
84 const printing::PdfRenderSettings& settings, 87 const printing::PdfRenderSettings& settings,
85 const std::vector<printing::PageRange>& page_ranges, 88 std::vector<printing::PageRange>* page_ranges,
86 int* highest_rendered_page_number, 89 int* highest_rendered_page_number,
87 double* scale_factor); 90 double* scale_factor);
88 #endif // defined(OS_WIN) 91 #endif // defined(OS_WIN)
89 92
90 bool RenderPDFPagesToPWGRaster( 93 bool RenderPDFPagesToPWGRaster(
91 base::PlatformFile pdf_file, 94 base::PlatformFile pdf_file,
92 const printing::PdfRenderSettings& settings, 95 const printing::PdfRenderSettings& settings,
93 const printing::PwgRasterSettings& bitmap_settings, 96 const printing::PwgRasterSettings& bitmap_settings,
94 base::PlatformFile bitmap_file); 97 base::PlatformFile bitmap_file);
95 98
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 bool filter_messages_; 147 bool filter_messages_;
145 // A list of message_ids to filter. 148 // A list of message_ids to filter.
146 std::set<int> message_id_whitelist_; 149 std::set<int> message_id_whitelist_;
147 150
148 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 151 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
149 }; 152 };
150 153
151 } // namespace chrome 154 } // namespace chrome
152 155
153 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 156 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698