OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/common/extensions/update_manifest.h" | 14 #include "chrome/common/extensions/update_manifest.h" |
15 #include "content/common/common_param_traits.h" | 15 #include "content/common/common_param_traits.h" |
16 #include "content/common/serialized_script_value.h" | 16 #include "content/common/serialized_script_value.h" |
17 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
18 #include "printing/backend/print_backend.h" | 18 #include "printing/backend/print_backend.h" |
19 #include "printing/page_range.h" | 19 #include "printing/page_range.h" |
| 20 #include "printing/pdf_render_settings.h" |
20 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
21 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
22 | 23 |
23 #define IPC_MESSAGE_START ChromeUtilityMsgStart | 24 #define IPC_MESSAGE_START ChromeUtilityMsgStart |
24 | 25 |
25 IPC_STRUCT_TRAITS_BEGIN(printing::PageRange) | 26 IPC_STRUCT_TRAITS_BEGIN(printing::PageRange) |
26 IPC_STRUCT_TRAITS_MEMBER(from) | 27 IPC_STRUCT_TRAITS_MEMBER(from) |
27 IPC_STRUCT_TRAITS_MEMBER(to) | 28 IPC_STRUCT_TRAITS_MEMBER(to) |
28 IPC_STRUCT_TRAITS_END() | 29 IPC_STRUCT_TRAITS_END() |
29 | 30 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Tell the utility process to decode the given image data. | 68 // Tell the utility process to decode the given image data. |
68 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage, | 69 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage, |
69 std::vector<unsigned char>) // encoded image contents | 70 std::vector<unsigned char>) // encoded image contents |
70 | 71 |
71 // Tell the utility process to decode the given image data, which is base64 | 72 // Tell the utility process to decode the given image data, which is base64 |
72 // encoded. | 73 // encoded. |
73 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, | 74 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, |
74 std::string) // base64 encoded image contents | 75 std::string) // base64 encoded image contents |
75 | 76 |
76 // Tell the utility process to render the given PDF into a metafile. | 77 // Tell the utility process to render the given PDF into a metafile. |
77 IPC_MESSAGE_CONTROL5(ChromeUtilityMsg_RenderPDFPagesToMetafile, | 78 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile, |
78 base::PlatformFile, // PDF file | 79 base::PlatformFile, // PDF file |
79 FilePath, // Location for output metafile | 80 FilePath, // Location for output metafile |
80 gfx::Rect, // Render Area | 81 printing::PdfRenderSettings, // PDF render settitngs |
81 int, // DPI | |
82 std::vector<printing::PageRange>) | 82 std::vector<printing::PageRange>) |
83 | 83 |
84 // Tell the utility process to parse a JSON string into a Value object. | 84 // Tell the utility process to parse a JSON string into a Value object. |
85 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, | 85 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, |
86 std::string /* JSON to parse */) | 86 std::string /* JSON to parse */) |
87 | 87 |
88 // Tells the utility process to get capabilities and defaults for the specified | 88 // Tells the utility process to get capabilities and defaults for the specified |
89 // printer. Used on Windows to isolate the service process from printer driver | 89 // printer. Used on Windows to isolate the service process from printer driver |
90 // crashes by executing this in a separate process. This does not run in a | 90 // crashes by executing this in a separate process. This does not run in a |
91 // sandbox. | 91 // sandbox. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // Reply when the utility process has succeeded in obtaining the printer | 159 // Reply when the utility process has succeeded in obtaining the printer |
160 // capabilities and defaults. | 160 // capabilities and defaults. |
161 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, | 161 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, |
162 std::string /* printer name */, | 162 std::string /* printer name */, |
163 printing::PrinterCapsAndDefaults) | 163 printing::PrinterCapsAndDefaults) |
164 | 164 |
165 // Reply when the utility process has failed to obtain the printer | 165 // Reply when the utility process has failed to obtain the printer |
166 // capabilities and defaults. | 166 // capabilities and defaults. |
167 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 167 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
168 std::string /* printer name */) | 168 std::string /* printer name */) |
OLD | NEW |