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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Tell the utility process to decode the given image data. | 179 // Tell the utility process to decode the given image data. |
180 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage, | 180 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage, |
181 std::vector<unsigned char>) // encoded image contents | 181 std::vector<unsigned char>) // encoded image contents |
182 | 182 |
183 // Tell the utility process to decode the given image data, which is base64 | 183 // Tell the utility process to decode the given image data, which is base64 |
184 // encoded. | 184 // encoded. |
185 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, | 185 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, |
186 std::string) // base64 encoded image contents | 186 std::string) // base64 encoded image contents |
187 | 187 |
188 // Tell the utility process to render the given PDF into a metafile. | 188 // Tell the utility process to render the given PDF into a metafile. |
189 // TODO(vitalybuka): switch to IPC::PlatformFileForTransit. | 189 // The metafile path will have ".%d" inserted where the %d is the page number. |
190 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile, | 190 // If no page range is specified, all pages will be converted. |
191 base::PlatformFile, // PDF file | 191 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafiles, |
192 base::FilePath, // Location for output metafile | 192 IPC::PlatformFileForTransit, // PDF file |
| 193 base::FilePath, // Base location for output metafile |
193 printing::PdfRenderSettings, // PDF render settings | 194 printing::PdfRenderSettings, // PDF render settings |
194 std::vector<printing::PageRange>) | 195 std::vector<printing::PageRange>) |
195 | 196 |
196 // Tell the utility process to render the given PDF into a PWGRaster. | 197 // Tell the utility process to render the given PDF into a PWGRaster. |
197 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToPWGRaster, | 198 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToPWGRaster, |
198 IPC::PlatformFileForTransit, /* Input PDF file */ | 199 IPC::PlatformFileForTransit, /* Input PDF file */ |
199 printing::PdfRenderSettings, /* PDF render settings */ | 200 printing::PdfRenderSettings, /* PDF render settings */ |
200 // PWG transform settings. | 201 // PWG transform settings. |
201 printing::PwgRasterSettings, | 202 printing::PwgRasterSettings, |
202 IPC::PlatformFileForTransit /* Output PWG file */) | 203 IPC::PlatformFileForTransit /* Output PWG file */) |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 std::string /* error_message, if any */) | 368 std::string /* error_message, if any */) |
368 | 369 |
369 // Reply when the utility process has succeeded in decoding the image. | 370 // Reply when the utility process has succeeded in decoding the image. |
370 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded, | 371 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded, |
371 SkBitmap) // decoded image | 372 SkBitmap) // decoded image |
372 | 373 |
373 // Reply when an error occurred decoding the image. | 374 // Reply when an error occurred decoding the image. |
374 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed) | 375 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed) |
375 | 376 |
376 // Reply when the utility process has succeeded in rendering the PDF. | 377 // Reply when the utility process has succeeded in rendering the PDF. |
377 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Succeeded, | 378 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_Succeeded, |
378 int, // Highest rendered page number | 379 std::vector<printing::PageRange>, // Pages rendered |
379 double) // Scale factor | 380 double) // Scale factor |
380 | 381 |
381 // Reply when an error occurred rendering the PDF. | 382 // Reply when an error occurred rendering the PDF. |
382 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) | 383 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) |
383 | 384 |
384 // Reply when the utility process has succeeded in rendering the PDF to PWG. | 385 // Reply when the utility process has succeeded in rendering the PDF to PWG. |
385 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) | 386 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) |
386 | 387 |
387 // Reply when an error occurred rendering the PDF to PWG. | 388 // Reply when an error occurred rendering the PDF to PWG. |
388 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Failed) | 389 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Failed) |
389 | 390 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, | 523 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, |
523 std::string /* ssid */, | 524 std::string /* ssid */, |
524 std::vector<uint8> /* public_key */) | 525 std::vector<uint8> /* public_key */) |
525 | 526 |
526 // Reply after getting WiFi credentials from the system and encrypting them with | 527 // Reply after getting WiFi credentials from the system and encrypting them with |
527 // caller's public key. |success| is false if error occurred. | 528 // caller's public key. |success| is false if error occurred. |
528 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, | 529 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, |
529 std::vector<uint8> /* encrypted_key_data */, | 530 std::vector<uint8> /* encrypted_key_data */, |
530 bool /* success */) | 531 bool /* success */) |
531 #endif // defined(OS_WIN) | 532 #endif // defined(OS_WIN) |
OLD | NEW |