| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Multiply-included message file, so no include guard. | 5 // Multiply-included message file, so no include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterCapsAndDefaults, | 78 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterCapsAndDefaults, |
| 79 std::string /* printer name */) | 79 std::string /* printer name */) |
| 80 | 80 |
| 81 // Tells the utility process to get capabilities and defaults for the specified | 81 // Tells the utility process to get capabilities and defaults for the specified |
| 82 // printer. Used on Windows to isolate the service process from printer driver | 82 // printer. Used on Windows to isolate the service process from printer driver |
| 83 // crashes by executing this in a separate process. This does not run in a | 83 // crashes by executing this in a separate process. This does not run in a |
| 84 // sandbox. Returns result as printing::PrinterSemanticCapsAndDefaults. | 84 // sandbox. Returns result as printing::PrinterSemanticCapsAndDefaults. |
| 85 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults, | 85 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults, |
| 86 std::string /* printer name */) | 86 std::string /* printer name */) |
| 87 | 87 |
| 88 | 88 #if defined(OS_WIN) |
| 89 #if defined(WIN_PDF_METAFILE_FOR_PRINTING) | |
| 90 // Tell the utility process to render the given PDF into a metafile. | 89 // Tell the utility process to render the given PDF into a metafile. |
| 91 // The metafile path will have ".%d" inserted where the %d is the page number. | 90 // The metafile path will have ".%d" inserted where the %d is the page number. |
| 92 // If no page range is specified, all pages will be converted. | 91 // If no page range is specified, all pages will be converted. |
| 93 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafiles, | 92 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafiles, |
| 94 IPC::PlatformFileForTransit, // PDF file | 93 IPC::PlatformFileForTransit, // PDF file |
| 95 base::FilePath, // Base location for output metafile | 94 base::FilePath, // Base location for output metafile |
| 96 printing::PdfRenderSettings, // PDF render settings | 95 printing::PdfRenderSettings, // PDF render settings |
| 97 std::vector<printing::PageRange>) | 96 std::vector<printing::PageRange>) |
| 98 #endif | 97 #endif // OS_WIN |
| 99 | 98 |
| 100 //------------------------------------------------------------------------------ | 99 //------------------------------------------------------------------------------ |
| 101 // Utility process host messages: | 100 // Utility process host messages: |
| 102 // These are messages from the utility process to the browser. | 101 // These are messages from the utility process to the browser. |
| 103 | 102 |
| 104 // Reply when the utility process has succeeded in rendering the PDF to PWG. | 103 // Reply when the utility process has succeeded in rendering the PDF to PWG. |
| 105 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) | 104 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) |
| 106 | 105 |
| 107 // Reply when an error occurred rendering the PDF to PWG. | 106 // Reply when an error occurred rendering the PDF to PWG. |
| 108 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Failed) | 107 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Failed) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 124 // capabilities and defaults. | 123 // capabilities and defaults. |
| 125 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 124 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
| 126 std::string /* printer name */) | 125 std::string /* printer name */) |
| 127 | 126 |
| 128 // Reply when the utility process has failed to obtain the printer | 127 // Reply when the utility process has failed to obtain the printer |
| 129 // semantic capabilities and defaults. | 128 // semantic capabilities and defaults. |
| 130 IPC_MESSAGE_CONTROL1( | 129 IPC_MESSAGE_CONTROL1( |
| 131 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed, | 130 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed, |
| 132 std::string /* printer name */) | 131 std::string /* printer name */) |
| 133 | 132 |
| 134 #if defined(WIN_PDF_METAFILE_FOR_PRINTING) | 133 #if defined(OS_WIN) |
| 135 // Reply when the utility process has succeeded in rendering the PDF. | 134 // Reply when the utility process has succeeded in rendering the PDF. |
| 136 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_Succeeded, | 135 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_Succeeded, |
| 137 std::vector<printing::PageRange>, // Pages rendered | 136 std::vector<printing::PageRange>, // Pages rendered |
| 138 double) // Scale factor | 137 double) // Scale factor |
| 139 | 138 |
| 140 // Reply when an error occurred rendering the PDF. | 139 // Reply when an error occurred rendering the PDF. |
| 141 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) | 140 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) |
| 142 #endif | 141 #endif // OS_WIN |
| OLD | NEW |