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 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <Windows.h> | 8 #include <Windows.h> |
9 #endif // defined(OS_WIN) | 9 #endif // defined(OS_WIN) |
10 | 10 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 //------------------------------------------------------------------------------ | 123 //------------------------------------------------------------------------------ |
124 // Utility process messages: | 124 // Utility process messages: |
125 // These are messages from the browser to the utility process. | 125 // These are messages from the browser to the utility process. |
126 | 126 |
127 // Tell the utility process to parse a JSON string into a Value object. | 127 // Tell the utility process to parse a JSON string into a Value object. |
128 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, | 128 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, |
129 std::string /* JSON to parse */) | 129 std::string /* JSON to parse */) |
130 | 130 |
131 // Tell the utility process to decode the given image data. | 131 // Tell the utility process to decode the given image data. |
132 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_DecodeImage, | 132 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_DecodeImage, |
133 std::vector<unsigned char> /* encoded image contents */, | 133 std::vector<unsigned char> /* encoded image contents */, |
134 bool /* shrink image if needed for IPC msg limit */) | 134 bool /* shrink image if needed for IPC msg limit */, |
| 135 int /* delegate id */) |
135 | 136 |
136 // Tell the utility process to decode the given JPEG image data with a robust | 137 // Tell the utility process to decode the given JPEG image data with a robust |
137 // libjpeg codec. | 138 // libjpeg codec. |
138 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_RobustJPEGDecodeImage, | 139 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RobustJPEGDecodeImage, |
139 std::vector<unsigned char>) // encoded image contents | 140 std::vector<unsigned char> /* encoded image contents*/, |
| 141 int /* delegate id */) |
140 | 142 |
141 // Tell the utility process to patch the given |input_file| using |patch_file| | 143 // Tell the utility process to patch the given |input_file| using |patch_file| |
142 // and place the output in |output_file|. The patch should use the bsdiff | 144 // and place the output in |output_file|. The patch should use the bsdiff |
143 // algorithm (Courgette's version). | 145 // algorithm (Courgette's version). |
144 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, | 146 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, |
145 base::FilePath /* input_file */, | 147 base::FilePath /* input_file */, |
146 base::FilePath /* patch_file */, | 148 base::FilePath /* patch_file */, |
147 base::FilePath /* output_file */) | 149 base::FilePath /* output_file */) |
148 | 150 |
149 // Tell the utility process to patch the given |input_file| using |patch_file| | 151 // Tell the utility process to patch the given |input_file| using |patch_file| |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, | 229 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, |
228 std::string /* error message, if any*/) | 230 std::string /* error message, if any*/) |
229 | 231 |
230 // Reply when the utility process has failed while unpacking and parsing a | 232 // Reply when the utility process has failed while unpacking and parsing a |
231 // web resource. |error_message| is a user-readable explanation of what | 233 // web resource. |error_message| is a user-readable explanation of what |
232 // went wrong. | 234 // went wrong. |
233 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, | 235 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, |
234 std::string /* error_message, if any */) | 236 std::string /* error_message, if any */) |
235 | 237 |
236 // Reply when the utility process has succeeded in decoding the image. | 238 // Reply when the utility process has succeeded in decoding the image. |
237 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded, | 239 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_DecodeImage_Succeeded, |
238 SkBitmap) // decoded image | 240 SkBitmap /* decoded image */, |
| 241 int /* delegate id */) |
239 | 242 |
240 // Reply when an error occurred decoding the image. | 243 // Reply when an error occurred decoding the image. |
241 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed) | 244 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Failed, |
| 245 int /* delegate id */) |
242 | 246 |
243 // Reply when a file has been patched. | 247 // Reply when a file has been patched. |
244 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */) | 248 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */) |
245 | 249 |
246 #if defined(OS_CHROMEOS) | 250 #if defined(OS_CHROMEOS) |
247 // Reply when the utility process has succeeded in creating the zip file. | 251 // Reply when the utility process has succeeded in creating the zip file. |
248 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) | 252 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) |
249 | 253 |
250 // Reply when an error occured in creating the zip file. | 254 // Reply when an error occured in creating the zip file. |
251 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) | 255 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) |
(...skipping 23 matching lines...) Expand all Loading... |
275 #endif // defined(OS_WIN) | 279 #endif // defined(OS_WIN) |
276 | 280 |
277 #if defined(OS_ANDROID) | 281 #if defined(OS_ANDROID) |
278 // Reply to ChromeUtilityMsg_DetectSeccompSupport to report the level | 282 // Reply to ChromeUtilityMsg_DetectSeccompSupport to report the level |
279 // of kernel support for seccomp-bpf. | 283 // of kernel support for seccomp-bpf. |
280 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DetectSeccompSupport_ResultPrctl, | 284 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DetectSeccompSupport_ResultPrctl, |
281 bool /* seccomp prctl supported */) | 285 bool /* seccomp prctl supported */) |
282 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DetectSeccompSupport_ResultSyscall, | 286 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DetectSeccompSupport_ResultSyscall, |
283 bool /* seccomp syscall supported */) | 287 bool /* seccomp syscall supported */) |
284 #endif | 288 #endif |
OLD | NEW |