| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 //------------------------------------------------------------------------------ | 59 //------------------------------------------------------------------------------ |
| 60 // Utility process messages: | 60 // Utility process messages: |
| 61 // These are messages from the browser to the utility process. | 61 // These are messages from the browser to the utility process. |
| 62 | 62 |
| 63 // Tell the utility process to parse a JSON string into a Value object. | 63 // Tell the utility process to parse a JSON string into a Value object. |
| 64 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, | 64 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, |
| 65 std::string /* JSON to parse */) | 65 std::string /* JSON to parse */) |
| 66 | 66 |
| 67 // Tell the utility process to decode the given image data. | 67 // Tell the utility process to decode the given image data. |
| 68 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_DecodeImage, | 68 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_DecodeImage, |
| 69 std::vector<unsigned char> /* encoded image contents */, | 69 std::vector<unsigned char> /* encoded image contents */, |
| 70 bool /* shrink image if needed for IPC msg limit */) | 70 bool /* shrink image if needed for IPC msg limit */, |
| 71 int /* delegate id */) |
| 71 | 72 |
| 72 // Tell the utility process to decode the given JPEG image data with a robust | 73 // Tell the utility process to decode the given JPEG image data with a robust |
| 73 // libjpeg codec. | 74 // libjpeg codec. |
| 74 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_RobustJPEGDecodeImage, | 75 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RobustJPEGDecodeImage, |
| 75 std::vector<unsigned char>) // encoded image contents | 76 std::vector<unsigned char> /* encoded image contents*/, |
| 77 int /* delegate id */) |
| 76 | 78 |
| 77 // Tell the utility process to patch the given |input_file| using |patch_file| | 79 // Tell the utility process to patch the given |input_file| using |patch_file| |
| 78 // and place the output in |output_file|. The patch should use the bsdiff | 80 // and place the output in |output_file|. The patch should use the bsdiff |
| 79 // algorithm (Courgette's version). | 81 // algorithm (Courgette's version). |
| 80 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, | 82 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, |
| 81 base::FilePath /* input_file */, | 83 base::FilePath /* input_file */, |
| 82 base::FilePath /* patch_file */, | 84 base::FilePath /* patch_file */, |
| 83 base::FilePath /* output_file */) | 85 base::FilePath /* output_file */) |
| 84 | 86 |
| 85 // Tell the utility process to patch the given |input_file| using |patch_file| | 87 // Tell the utility process to patch the given |input_file| using |patch_file| |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, | 163 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, |
| 162 std::string /* error message, if any*/) | 164 std::string /* error message, if any*/) |
| 163 | 165 |
| 164 // Reply when the utility process has failed while unpacking and parsing a | 166 // Reply when the utility process has failed while unpacking and parsing a |
| 165 // web resource. |error_message| is a user-readable explanation of what | 167 // web resource. |error_message| is a user-readable explanation of what |
| 166 // went wrong. | 168 // went wrong. |
| 167 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, | 169 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, |
| 168 std::string /* error_message, if any */) | 170 std::string /* error_message, if any */) |
| 169 | 171 |
| 170 // Reply when the utility process has succeeded in decoding the image. | 172 // Reply when the utility process has succeeded in decoding the image. |
| 171 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded, | 173 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_DecodeImage_Succeeded, |
| 172 SkBitmap) // decoded image | 174 SkBitmap /* decoded image */, |
| 175 int /* delegate id */) |
| 173 | 176 |
| 174 // Reply when an error occurred decoding the image. | 177 // Reply when an error occurred decoding the image. |
| 175 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed) | 178 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Failed, |
| 179 int /* delegate id */) |
| 176 | 180 |
| 177 // Reply when a file has been patched. | 181 // Reply when a file has been patched. |
| 178 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */) | 182 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */) |
| 179 | 183 |
| 180 #if defined(OS_CHROMEOS) | 184 #if defined(OS_CHROMEOS) |
| 181 // Reply when the utility process has succeeded in creating the zip file. | 185 // Reply when the utility process has succeeded in creating the zip file. |
| 182 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) | 186 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) |
| 183 | 187 |
| 184 // Reply when an error occured in creating the zip file. | 188 // Reply when an error occured in creating the zip file. |
| 185 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) | 189 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 209 #endif // defined(OS_WIN) | 213 #endif // defined(OS_WIN) |
| 210 | 214 |
| 211 #if defined(OS_ANDROID) | 215 #if defined(OS_ANDROID) |
| 212 // Reply to ChromeUtilityMsg_DetectSeccompSupport to report the level | 216 // Reply to ChromeUtilityMsg_DetectSeccompSupport to report the level |
| 213 // of kernel support for seccomp-bpf. | 217 // of kernel support for seccomp-bpf. |
| 214 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DetectSeccompSupport_ResultPrctl, | 218 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DetectSeccompSupport_ResultPrctl, |
| 215 bool /* seccomp prctl supported */) | 219 bool /* seccomp prctl supported */) |
| 216 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DetectSeccompSupport_ResultSyscall, | 220 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DetectSeccompSupport_ResultSyscall, |
| 217 bool /* seccomp syscall supported */) | 221 bool /* seccomp syscall supported */) |
| 218 #endif | 222 #endif |
| OLD | NEW |