| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 IPC_STRUCT_MEMBER(base::FilePath, suggested_filename) | 133 IPC_STRUCT_MEMBER(base::FilePath, suggested_filename) |
| 134 IPC_STRUCT_MEMBER(base::FilePath, initial_directory) | 134 IPC_STRUCT_MEMBER(base::FilePath, initial_directory) |
| 135 IPC_STRUCT_MEMBER(base::string16, default_extension) | 135 IPC_STRUCT_MEMBER(base::string16, default_extension) |
| 136 IPC_STRUCT_END() | 136 IPC_STRUCT_END() |
| 137 #endif // OS_WIN | 137 #endif // OS_WIN |
| 138 | 138 |
| 139 //------------------------------------------------------------------------------ | 139 //------------------------------------------------------------------------------ |
| 140 // Utility process messages: | 140 // Utility process messages: |
| 141 // These are messages from the browser to the utility process. | 141 // These are messages from the browser to the utility process. |
| 142 | 142 |
| 143 // Tell the utility process to decode the given image data. | |
| 144 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_DecodeImage, | |
| 145 std::vector<unsigned char> /* encoded image contents */, | |
| 146 bool /* shrink image if needed for IPC msg limit */, | |
| 147 int /* delegate id */) | |
| 148 | |
| 149 #if defined(OS_CHROMEOS) | |
| 150 // Tell the utility process to decode the given JPEG image data with a robust | |
| 151 // libjpeg codec. | |
| 152 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RobustJPEGDecodeImage, | |
| 153 std::vector<unsigned char> /* encoded image contents*/, | |
| 154 int /* delegate id */) | |
| 155 // Tell the utility process to decode the given PNG image data with a robust | |
| 156 // libpng codec. | |
| 157 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RobustPNGDecodeImage, | |
| 158 std::vector<unsigned char> /* encoded image contents*/, | |
| 159 int /* delegate id */) | |
| 160 #endif // defined(OS_CHROMEOS) | |
| 161 | |
| 162 // 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| |
| 163 // 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 |
| 164 // algorithm (Courgette's version). | 145 // algorithm (Courgette's version). |
| 165 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, | 146 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, |
| 166 base::FilePath /* input_file */, | 147 base::FilePath /* input_file */, |
| 167 base::FilePath /* patch_file */, | 148 base::FilePath /* patch_file */, |
| 168 base::FilePath /* output_file */) | 149 base::FilePath /* output_file */) |
| 169 | 150 |
| 170 // 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| |
| 171 // and place the output in |output_file|. The patch should use the Courgette | 152 // and place the output in |output_file|. The patch should use the Courgette |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 //------------------------------------------------------------------------------ | 215 //------------------------------------------------------------------------------ |
| 235 // Utility process host messages: | 216 // Utility process host messages: |
| 236 // These are messages from the utility process to the browser. | 217 // These are messages from the utility process to the browser. |
| 237 | 218 |
| 238 // Reply when the utility process has failed while unpacking and parsing a | 219 // Reply when the utility process has failed while unpacking and parsing a |
| 239 // web resource. |error_message| is a user-readable explanation of what | 220 // web resource. |error_message| is a user-readable explanation of what |
| 240 // went wrong. | 221 // went wrong. |
| 241 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, | 222 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, |
| 242 std::string /* error_message, if any */) | 223 std::string /* error_message, if any */) |
| 243 | 224 |
| 244 // Reply when the utility process has succeeded in decoding the image. | |
| 245 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_DecodeImage_Succeeded, | |
| 246 SkBitmap /* decoded image */, | |
| 247 int /* delegate id */) | |
| 248 | |
| 249 // Reply when an error occurred decoding the image. | |
| 250 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Failed, | |
| 251 int /* delegate id */) | |
| 252 | |
| 253 // Reply when a file has been patched. | 225 // Reply when a file has been patched. |
| 254 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */) | 226 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */) |
| 255 | 227 |
| 256 #if defined(OS_CHROMEOS) | 228 #if defined(OS_CHROMEOS) |
| 257 // Reply when the utility process has succeeded in creating the zip file. | 229 // Reply when the utility process has succeeded in creating the zip file. |
| 258 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) | 230 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) |
| 259 | 231 |
| 260 // Reply when an error occured in creating the zip file. | 232 // Reply when an error occured in creating the zip file. |
| 261 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) | 233 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) |
| 262 #endif // defined(OS_CHROMEOS) | 234 #endif // defined(OS_CHROMEOS) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 283 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, | 255 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, |
| 284 base::FilePath /* directory */, | 256 base::FilePath /* directory */, |
| 285 std::vector<base::FilePath> /* filenames */) | 257 std::vector<base::FilePath> /* filenames */) |
| 286 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) | 258 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) |
| 287 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, | 259 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, |
| 288 base::FilePath /* path */, | 260 base::FilePath /* path */, |
| 289 int /* one_based_filter_index */) | 261 int /* one_based_filter_index */) |
| 290 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_BuildDirectWriteFontCache, | 262 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_BuildDirectWriteFontCache, |
| 291 base::FilePath /* cache file path */) | 263 base::FilePath /* cache file path */) |
| 292 #endif // defined(OS_WIN) | 264 #endif // defined(OS_WIN) |
| OLD | NEW |