Index: chrome/common/chrome_utility_printing_messages.h |
diff --git a/chrome/common/chrome_utility_printing_messages.h b/chrome/common/chrome_utility_printing_messages.h |
index f1a8ad7f0fa5f82b6e1a06609fe3aaa8e0772279..e84d4deea655433038f910c83fae2299a1c45b13 100644 |
--- a/chrome/common/chrome_utility_printing_messages.h |
+++ b/chrome/common/chrome_utility_printing_messages.h |
@@ -99,10 +99,9 @@ IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults, |
// Tell the utility process to start rendering the given PDF into a metafile. |
// Utility process would be alive until |
// ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop message. |
-IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_RenderPDFPagesToMetafiles, |
+IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles, |
IPC::PlatformFileForTransit /* input_file */, |
- printing::PdfRenderSettings /* settings */, |
- bool /* print_text_with_gdi */) |
+ printing::PdfRenderSettings /* settings */) |
// Requests conversion of the next page. |
IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage, |
@@ -111,7 +110,22 @@ IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage, |
// Requests utility process to stop conversion and exit. |
IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop) |
-#endif // ENABLE_PRINTING && OS_WIN |
+ |
+// Tell the utility process to start rendering the given PDF into PS. |
+// Utility process would be alive until |
+// ChromeUtilityMsg_RenderPDFPagesToPostScript_Stop message. |
+IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToPostScript_Start, |
+ IPC::PlatformFileForTransit /* input_file */, |
+ printing::PdfRenderSettings /* settings */) |
+ |
+// Requests conversion of the next page. |
+IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToPostScript_GetPage, |
+ int /* page_number */, |
+ IPC::PlatformFileForTransit /* output_file */) |
+ |
+// Requests utility process to stop conversion and exit. |
+IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToPostScript_Stop) |
+#endif // BUILDFLAG(ENABLE_PRINTING) && defined(OS_WIN) |
//------------------------------------------------------------------------------ |
// Utility process host messages: |
@@ -160,6 +174,15 @@ IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone, |
bool /* success */, |
float /* scale_factor */) |
+// Reply when the utility process loaded PDF. |page_count| is 0, if loading |
+// failed. |
+IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToPostScript_PageCount, |
+ int /* page_count */) |
+ |
+// Reply when the utility process rendered the PDF page. |
+IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToPostScript_PageDone, |
+ bool /* success */) |
+ |
// Request that the given font characters be loaded by the browser so it's |
// cached by the OS. Please see |
// PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details. |