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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 // TODO(vitalybuka): switch to IPC::PlatformFileForTransit. |
182 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile, | 182 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile, |
183 base::PlatformFile, // PDF file | 183 base::PlatformFile, // PDF file |
184 base::FilePath, // Location for output metafile | 184 base::FilePath, // Location for output metafile |
185 printing::PdfRenderSettings, // PDF render settings | 185 printing::PdfRenderSettings, // PDF render settings |
186 std::vector<printing::PageRange>) | 186 std::vector<printing::PageRange>) |
187 | 187 |
188 // Tell the utility process to render the given PDF into a metafile. | |
189 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_RenderPDFToMetafile, | |
190 IPC::PlatformFileForTransit, // PDF file | |
Vitaly Buka (NO REVIEWS)
2014/05/13 23:54:33
Why not just ChromeUtilityMsg_RenderPDFPagesToMeta
scottmg
2014/05/14 00:34:48
A few (not great) reasons:
- I don't know how many
Vitaly Buka (NO REVIEWS)
2014/05/14 03:51:18
Cloud you please put TODO on me, and I'll merge th
scottmg
2014/05/15 18:01:30
I took a try at merging, ptal.
| |
191 base::FilePath, // Location for output metafile | |
192 printing::PdfRenderSettings) // PDF render settings | |
193 | |
188 // Tell the utility process to render the given PDF into a PWGRaster. | 194 // Tell the utility process to render the given PDF into a PWGRaster. |
189 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToPWGRaster, | 195 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToPWGRaster, |
190 IPC::PlatformFileForTransit, /* Input PDF file */ | 196 IPC::PlatformFileForTransit, /* Input PDF file */ |
191 printing::PdfRenderSettings, /* PDF render settings */ | 197 printing::PdfRenderSettings, /* PDF render settings */ |
192 // PWG transform settings. | 198 // PWG transform settings. |
193 printing::PwgRasterSettings, | 199 printing::PwgRasterSettings, |
194 IPC::PlatformFileForTransit /* Output PWG file */) | 200 IPC::PlatformFileForTransit /* Output PWG file */) |
195 | 201 |
196 // Tell the utility process to decode the given JPEG image data with a robust | 202 // Tell the utility process to decode the given JPEG image data with a robust |
197 // libjpeg codec. | 203 // libjpeg codec. |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
511 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, | 517 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, |
512 std::string /* ssid */, | 518 std::string /* ssid */, |
513 std::vector<uint8> /* public_key */) | 519 std::vector<uint8> /* public_key */) |
514 | 520 |
515 // Reply after getting WiFi credentials from the system and encrypting them with | 521 // Reply after getting WiFi credentials from the system and encrypting them with |
516 // caller's public key. |success| is false if error occurred. | 522 // caller's public key. |success| is false if error occurred. |
517 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, | 523 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, |
518 std::vector<uint8> /* encrypted_key_data */, | 524 std::vector<uint8> /* encrypted_key_data */, |
519 bool /* success */) | 525 bool /* success */) |
520 #endif // defined(OS_WIN) | 526 #endif // defined(OS_WIN) |
OLD | NEW |