Index: chrome/utility/chrome_content_utility_client.h |
diff --git a/chrome/utility/chrome_content_utility_client.h b/chrome/utility/chrome_content_utility_client.h |
index 8e6ba9747fcfd3ab7fa1f50e01cc8ce86fdd8bc7..96e467f265d7abd777b72e75294fd4f92a5b402f 100644 |
--- a/chrome/utility/chrome_content_utility_client.h |
+++ b/chrome/utility/chrome_content_utility_client.h |
@@ -56,7 +56,7 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient { |
void OnDecodeImage(const std::vector<unsigned char>& encoded_data); |
void OnDecodeImageBase64(const std::string& encoded_data); |
void OnRenderPDFPagesToMetafile( |
- base::PlatformFile pdf_file, |
+ IPC::PlatformFileForTransit pdf_transit, |
const base::FilePath& metafile_path, |
const printing::PdfRenderSettings& settings, |
const std::vector<printing::PageRange>& page_ranges); |
@@ -78,11 +78,14 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient { |
#if defined(OS_WIN) |
// Helper method for Windows. |
// |highest_rendered_page_number| is set to -1 on failure to render any page. |
+ // |page_ranges| is both input and output. If supplied as input, only the |
+ // specified pages will be rendered. If an empty vector is supplied it will |
+ // be filled with a range of all pages that were rendered. |
bool RenderPDFToWinMetafile( |
base::PlatformFile pdf_file, |
const base::FilePath& metafile_path, |
const printing::PdfRenderSettings& settings, |
- const std::vector<printing::PageRange>& page_ranges, |
+ std::vector<printing::PageRange>* page_ranges, |
int* highest_rendered_page_number, |
double* scale_factor); |
#endif // defined(OS_WIN) |