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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Tell the utility process to decode the given image data. | 171 // Tell the utility process to decode the given image data. |
172 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage, | 172 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage, |
173 std::vector<unsigned char>) // encoded image contents | 173 std::vector<unsigned char>) // encoded image contents |
174 | 174 |
175 // Tell the utility process to decode the given image data, which is base64 | 175 // Tell the utility process to decode the given image data, which is base64 |
176 // encoded. | 176 // encoded. |
177 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, | 177 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, |
178 std::string) // base64 encoded image contents | 178 std::string) // base64 encoded image contents |
179 | 179 |
180 // Tell the utility process to render the given PDF into a metafile. | 180 // Tell the utility process to render the given PDF into a metafile. |
181 // TODO(vitalybuka): switch to IPC::PlatformFileForTransit. | 181 // The metafile path will have ".%d" inserted where the %d is the page number. |
182 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile, | 182 // If no page range is specified, all pages will be converted. |
183 base::PlatformFile, // PDF file | 183 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafiles, |
184 base::FilePath, // Location for output metafile | 184 IPC::PlatformFileForTransit, // PDF file |
| 185 base::FilePath, // Base location for output metafile |
185 printing::PdfRenderSettings, // PDF render settings | 186 printing::PdfRenderSettings, // PDF render settings |
186 std::vector<printing::PageRange>) | 187 std::vector<printing::PageRange>) |
187 | 188 |
188 // Tell the utility process to render the given PDF into a PWGRaster. | 189 // Tell the utility process to render the given PDF into a PWGRaster. |
189 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToPWGRaster, | 190 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToPWGRaster, |
190 IPC::PlatformFileForTransit, /* Input PDF file */ | 191 IPC::PlatformFileForTransit, /* Input PDF file */ |
191 printing::PdfRenderSettings, /* PDF render settings */ | 192 printing::PdfRenderSettings, /* PDF render settings */ |
192 // PWG transform settings. | 193 // PWG transform settings. |
193 printing::PwgRasterSettings, | 194 printing::PwgRasterSettings, |
194 IPC::PlatformFileForTransit /* Output PWG file */) | 195 IPC::PlatformFileForTransit /* Output PWG file */) |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 std::string /* error_message, if any */) | 359 std::string /* error_message, if any */) |
359 | 360 |
360 // Reply when the utility process has succeeded in decoding the image. | 361 // Reply when the utility process has succeeded in decoding the image. |
361 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded, | 362 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded, |
362 SkBitmap) // decoded image | 363 SkBitmap) // decoded image |
363 | 364 |
364 // Reply when an error occurred decoding the image. | 365 // Reply when an error occurred decoding the image. |
365 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed) | 366 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed) |
366 | 367 |
367 // Reply when the utility process has succeeded in rendering the PDF. | 368 // Reply when the utility process has succeeded in rendering the PDF. |
368 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Succeeded, | 369 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_Succeeded, |
369 int, // Highest rendered page number | 370 std::vector<printing::PageRange>, // Pages rendered |
370 double) // Scale factor | 371 double) // Scale factor |
371 | 372 |
372 // Reply when an error occurred rendering the PDF. | 373 // Reply when an error occurred rendering the PDF. |
373 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) | 374 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) |
374 | 375 |
375 // Reply when the utility process has succeeded in rendering the PDF to PWG. | 376 // Reply when the utility process has succeeded in rendering the PDF to PWG. |
376 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) | 377 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) |
377 | 378 |
378 // Reply when an error occurred rendering the PDF to PWG. | 379 // Reply when an error occurred rendering the PDF to PWG. |
379 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Failed) | 380 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Failed) |
380 | 381 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, | 512 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, |
512 std::string /* ssid */, | 513 std::string /* ssid */, |
513 std::vector<uint8> /* public_key */) | 514 std::vector<uint8> /* public_key */) |
514 | 515 |
515 // Reply after getting WiFi credentials from the system and encrypting them with | 516 // Reply after getting WiFi credentials from the system and encrypting them with |
516 // caller's public key. |success| is false if error occurred. | 517 // caller's public key. |success| is false if error occurred. |
517 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, | 518 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, |
518 std::vector<uint8> /* encrypted_key_data */, | 519 std::vector<uint8> /* encrypted_key_data */, |
519 bool /* success */) | 520 bool /* success */) |
520 #endif // defined(OS_WIN) | 521 #endif // defined(OS_WIN) |
OLD | NEW |