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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, | 156 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, |
155 std::string /* error message, if any*/) | 157 std::string /* error message, if any*/) |
156 | 158 |
157 // Reply when the utility process has failed while unpacking and parsing a | 159 // Reply when the utility process has failed while unpacking and parsing a |
158 // web resource. |error_message| is a user-readable explanation of what | 160 // web resource. |error_message| is a user-readable explanation of what |
159 // went wrong. | 161 // went wrong. |
160 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, | 162 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, |
161 std::string /* error_message, if any */) | 163 std::string /* error_message, if any */) |
162 | 164 |
163 // Reply when the utility process has succeeded in decoding the image. | 165 // Reply when the utility process has succeeded in decoding the image. |
164 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded, | 166 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_DecodeImage_Succeeded, |
165 SkBitmap) // decoded image | 167 SkBitmap /* decoded image */, |
| 168 int /* delegate id */) |
166 | 169 |
167 // Reply when an error occurred decoding the image. | 170 // Reply when an error occurred decoding the image. |
168 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed) | 171 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Failed, |
| 172 int /* delegate id */) |
169 | 173 |
170 // Reply when a file has been patched. | 174 // Reply when a file has been patched. |
171 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */) | 175 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */) |
172 | 176 |
173 #if defined(OS_CHROMEOS) | 177 #if defined(OS_CHROMEOS) |
174 // Reply when the utility process has succeeded in creating the zip file. | 178 // Reply when the utility process has succeeded in creating the zip file. |
175 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) | 179 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) |
176 | 180 |
177 // Reply when an error occured in creating the zip file. | 181 // Reply when an error occured in creating the zip file. |
178 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) | 182 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) |
(...skipping 14 matching lines...) Expand all Loading... |
193 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, | 197 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, |
194 base::FilePath /* directory */, | 198 base::FilePath /* directory */, |
195 std::vector<base::FilePath> /* filenames */) | 199 std::vector<base::FilePath> /* filenames */) |
196 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) | 200 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) |
197 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, | 201 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, |
198 base::FilePath /* path */, | 202 base::FilePath /* path */, |
199 int /* one_based_filter_index */) | 203 int /* one_based_filter_index */) |
200 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_BuildDirectWriteFontCache, | 204 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_BuildDirectWriteFontCache, |
201 base::FilePath /* cache file path */) | 205 base::FilePath /* cache file path */) |
202 #endif // defined(OS_WIN) | 206 #endif // defined(OS_WIN) |
OLD | NEW |