| Index: chrome/common/chrome_utility_messages.h
|
| diff --git a/chrome/common/chrome_utility_messages.h b/chrome/common/chrome_utility_messages.h
|
| index ec7a91436f158d4b7552ecc20f176aa3e1594ce4..1e63b12f46e0f0e78580f857d1c29bb993564df0 100644
|
| --- a/chrome/common/chrome_utility_messages.h
|
| +++ b/chrome/common/chrome_utility_messages.h
|
| @@ -140,12 +140,19 @@ IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64,
|
| std::string) // base64 encoded image contents
|
|
|
| // Tell the utility process to render the given PDF into a metafile.
|
| +// TODO(vitalybuka): switch to IPC::PlatformFileForTransit.
|
| IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile,
|
| base::PlatformFile, // PDF file
|
| base::FilePath, // Location for output metafile
|
| - printing::PdfRenderSettings, // PDF render settitngs
|
| + printing::PdfRenderSettings, // PDF render settings
|
| std::vector<printing::PageRange>)
|
|
|
| +// Tell the utility process to render the given PDF into a PWGRaster.
|
| +IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_RenderPDFPagesToPWGRaster,
|
| + IPC::PlatformFileForTransit, /* Input PDF file */
|
| + printing::PdfRenderSettings, /* PDF render settings */
|
| + IPC::PlatformFileForTransit /* Output PWG file */)
|
| +
|
| // Tell the utility process to decode the given JPEG image data with a robust
|
| // libjpeg codec.
|
| IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_RobustJPEGDecodeImage,
|
| @@ -257,7 +264,7 @@ IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed,
|
| IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Succeeded,
|
| UpdateManifest::Results /* updates */)
|
|
|
| -// Reply when an error occured parsing the update manifest. |error_message|
|
| +// Reply when an error occurred parsing the update manifest. |error_message|
|
| // is a description of what went wrong suitable for logging.
|
| IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Failed,
|
| std::string /* error_message, if any */)
|
| @@ -266,7 +273,7 @@ IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Failed,
|
| IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded,
|
| SkBitmap) // decoded image
|
|
|
| -// Reply when an error occured decoding the image.
|
| +// Reply when an error occurred decoding the image.
|
| IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed)
|
|
|
| // Reply when the utility process has succeeded in rendering the PDF.
|
| @@ -274,9 +281,15 @@ IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Succeeded,
|
| int, // Highest rendered page number
|
| double) // Scale factor
|
|
|
| -// Reply when an error occured rendering the PDF.
|
| +// Reply when an error occurred rendering the PDF.
|
| IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed)
|
|
|
| +// Reply when the utility process has succeeded in rendering the PDF to PWG.
|
| +IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded)
|
| +
|
| +// Reply when an error occurred rendering the PDF to PWG.
|
| +IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Failed)
|
| +
|
| // Reply when the utility process successfully parsed a JSON string.
|
| //
|
| // WARNING: The result can be of any Value subclass type, but we can't easily
|
|
|