summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-30 06:17:41 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-30 06:17:41 +0000
commit489ab8a147a5d5c78757f2910e0b598453c61962 (patch)
tree26d27dec1e352b9e812fb981597242dc63a90221 /chrome/common
parent95c0dc4adedaf68ca2e1ce0a3df70e98bc35260b (diff)
downloadchromium_src-489ab8a147a5d5c78757f2910e0b598453c61962.zip
chromium_src-489ab8a147a5d5c78757f2910e0b598453c61962.tar.gz
chromium_src-489ab8a147a5d5c78757f2910e0b598453c61962.tar.bz2
Changed the implementation of the utility process method to render a PDF into a metafile to use a file-backed metafile as opposed to an in-memory metafile.
BUG=None. TEST=Test Cloud Print proxy with Chrome OS generated PDFs. Review URL: http://codereview.chromium.org/3600001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61033 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/utility_messages_internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/utility_messages_internal.h b/chrome/common/utility_messages_internal.h
index 15bd8d6..18ba3c5 100644
--- a/chrome/common/utility_messages_internal.h
+++ b/chrome/common/utility_messages_internal.h
@@ -47,8 +47,9 @@ IPC_BEGIN_MESSAGES(Utility)
std::vector<unsigned char>) // encoded image contents
// Tell the utility process to render the given PDF into a metafile.
- IPC_MESSAGE_CONTROL4(UtilityMsg_RenderPDFPagesToMetafile,
+ IPC_MESSAGE_CONTROL5(UtilityMsg_RenderPDFPagesToMetafile,
base::PlatformFile, // PDF file
+ FilePath, // Location for output metafile
gfx::Rect, // Render Area
int, // DPI
std::vector<printing::PageRange>)
@@ -115,9 +116,8 @@ IPC_BEGIN_MESSAGES(UtilityHost)
IPC_MESSAGE_CONTROL0(UtilityHostMsg_DecodeImage_Failed)
// Reply when the utility process has succeeded in rendering the PDF.
- IPC_MESSAGE_CONTROL2(UtilityHostMsg_RenderPDFPagesToMetafile_Succeeded,
- printing::NativeMetafile, // Output metafile
- int) // Highest rendered page number
+ IPC_MESSAGE_CONTROL1(UtilityHostMsg_RenderPDFPagesToMetafile_Succeeded,
+ int) // Highest rendered page number
// Reply when an error occured rendering the PDF.
IPC_MESSAGE_CONTROL0(UtilityHostMsg_RenderPDFPagesToMetafile_Failed)