OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // Tell the utility process to decode the given image data. | 133 // Tell the utility process to decode the given image data. |
134 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage, | 134 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage, |
135 std::vector<unsigned char>) // encoded image contents | 135 std::vector<unsigned char>) // encoded image contents |
136 | 136 |
137 // Tell the utility process to decode the given image data, which is base64 | 137 // Tell the utility process to decode the given image data, which is base64 |
138 // encoded. | 138 // encoded. |
139 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, | 139 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, |
140 std::string) // base64 encoded image contents | 140 std::string) // base64 encoded image contents |
141 | 141 |
142 // Tell the utility process to render the given PDF into a metafile. | 142 // Tell the utility process to render the given PDF into a metafile. |
| 143 // TODO(vitalybuka): switch to IPC::PlatformFileForTransit. |
143 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile, | 144 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile, |
144 base::PlatformFile, // PDF file | 145 base::PlatformFile, // PDF file |
145 base::FilePath, // Location for output metafile | 146 base::FilePath, // Location for output metafile |
146 printing::PdfRenderSettings, // PDF render settitngs | 147 printing::PdfRenderSettings, // PDF render settings |
147 std::vector<printing::PageRange>) | 148 std::vector<printing::PageRange>) |
148 | 149 |
| 150 // Tell the utility process to render the given PDF into a PWGRaster. |
| 151 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_RenderPDFPagesToPWGRaster, |
| 152 IPC::PlatformFileForTransit, /* Input PDF file */ |
| 153 printing::PdfRenderSettings, /* PDF render settings */ |
| 154 IPC::PlatformFileForTransit /* Output PWG file */) |
| 155 |
149 // Tell the utility process to decode the given JPEG image data with a robust | 156 // Tell the utility process to decode the given JPEG image data with a robust |
150 // libjpeg codec. | 157 // libjpeg codec. |
151 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_RobustJPEGDecodeImage, | 158 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_RobustJPEGDecodeImage, |
152 std::vector<unsigned char>) // encoded image contents | 159 std::vector<unsigned char>) // encoded image contents |
153 | 160 |
154 // Tell the utility process to parse a JSON string into a Value object. | 161 // Tell the utility process to parse a JSON string into a Value object. |
155 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, | 162 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, |
156 std::string /* JSON to parse */) | 163 std::string /* JSON to parse */) |
157 | 164 |
158 // Tells the utility process to get capabilities and defaults for the specified | 165 // Tells the utility process to get capabilities and defaults for the specified |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 // web resource. |error_message| is a user-readable explanation of what | 257 // web resource. |error_message| is a user-readable explanation of what |
251 // went wrong. | 258 // went wrong. |
252 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, | 259 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, |
253 std::string /* error_message, if any */) | 260 std::string /* error_message, if any */) |
254 | 261 |
255 // Reply when the utility process has succeeded in parsing an update manifest | 262 // Reply when the utility process has succeeded in parsing an update manifest |
256 // xml document. | 263 // xml document. |
257 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Succeeded, | 264 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Succeeded, |
258 UpdateManifest::Results /* updates */) | 265 UpdateManifest::Results /* updates */) |
259 | 266 |
260 // Reply when an error occured parsing the update manifest. |error_message| | 267 // Reply when an error occurred parsing the update manifest. |error_message| |
261 // is a description of what went wrong suitable for logging. | 268 // is a description of what went wrong suitable for logging. |
262 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Failed, | 269 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Failed, |
263 std::string /* error_message, if any */) | 270 std::string /* error_message, if any */) |
264 | 271 |
265 // Reply when the utility process has succeeded in decoding the image. | 272 // Reply when the utility process has succeeded in decoding the image. |
266 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded, | 273 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded, |
267 SkBitmap) // decoded image | 274 SkBitmap) // decoded image |
268 | 275 |
269 // Reply when an error occured decoding the image. | 276 // Reply when an error occurred decoding the image. |
270 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed) | 277 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed) |
271 | 278 |
272 // Reply when the utility process has succeeded in rendering the PDF. | 279 // Reply when the utility process has succeeded in rendering the PDF. |
273 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Succeeded, | 280 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Succeeded, |
274 int, // Highest rendered page number | 281 int, // Highest rendered page number |
275 double) // Scale factor | 282 double) // Scale factor |
276 | 283 |
277 // Reply when an error occured rendering the PDF. | 284 // Reply when an error occurred rendering the PDF. |
278 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) | 285 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) |
279 | 286 |
| 287 // Reply when the utility process has succeeded in rendering the PDF to PWG. |
| 288 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) |
| 289 |
| 290 // Reply when an error occurred rendering the PDF to PWG. |
| 291 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Failed) |
| 292 |
280 // Reply when the utility process successfully parsed a JSON string. | 293 // Reply when the utility process successfully parsed a JSON string. |
281 // | 294 // |
282 // WARNING: The result can be of any Value subclass type, but we can't easily | 295 // WARNING: The result can be of any Value subclass type, but we can't easily |
283 // pass indeterminate value types by const object reference with our IPC macros, | 296 // pass indeterminate value types by const object reference with our IPC macros, |
284 // so we put the result Value into a ListValue. Handlers should examine the | 297 // so we put the result Value into a ListValue. Handlers should examine the |
285 // first (and only) element of the ListValue for the actual result. | 298 // first (and only) element of the ListValue for the actual result. |
286 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded, | 299 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded, |
287 base::ListValue) | 300 base::ListValue) |
288 | 301 |
289 // Reply when the utility process failed in parsing a JSON string. | 302 // Reply when the utility process failed in parsing a JSON string. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, | 366 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, |
354 picasa::AlbumImagesMap /* albums_images */) | 367 picasa::AlbumImagesMap /* albums_images */) |
355 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 368 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
356 | 369 |
357 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 370 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
358 // Reply after checking the passed media file. A true result indicates that | 371 // Reply after checking the passed media file. A true result indicates that |
359 // the file appears to be a well formed media file. | 372 // the file appears to be a well formed media file. |
360 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, | 373 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, |
361 bool /* passed_checks */) | 374 bool /* passed_checks */) |
362 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 375 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
OLD | NEW |