| 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 patch the given |input_file| using |patch_file| |  | 
| 144 // and place the output in |output_file|. The patch should use the bsdiff |  | 
| 145 // algorithm (Courgette's version). |  | 
| 146 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, |  | 
| 147                      IPC::PlatformFileForTransit /* input_file */, |  | 
| 148                      IPC::PlatformFileForTransit /* patch_file */, |  | 
| 149                      IPC::PlatformFileForTransit /* output_file */) |  | 
| 150 |  | 
| 151 // Tell the utility process to patch the given |input_file| using |patch_file| |  | 
| 152 // and place the output in |output_file|. The patch should use the Courgette |  | 
| 153 // algorithm. |  | 
| 154 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileCourgette, |  | 
| 155                      IPC::PlatformFileForTransit /* input_file */, |  | 
| 156                      IPC::PlatformFileForTransit /* patch_file */, |  | 
| 157                      IPC::PlatformFileForTransit /* output_file */) |  | 
| 158 |  | 
| 159 #if defined(OS_CHROMEOS) | 143 #if defined(OS_CHROMEOS) | 
| 160 // Tell the utility process to create a zip file on the given list of files. | 144 // Tell the utility process to create a zip file on the given list of files. | 
| 161 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, | 145 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, | 
| 162                      base::FilePath /* src_dir */, | 146                      base::FilePath /* src_dir */, | 
| 163                      std::vector<base::FilePath> /* src_relative_paths */, | 147                      std::vector<base::FilePath> /* src_relative_paths */, | 
| 164                      base::FileDescriptor /* dest_fd */) | 148                      base::FileDescriptor /* dest_fd */) | 
| 165 #endif  // defined(OS_CHROMEOS) | 149 #endif  // defined(OS_CHROMEOS) | 
| 166 | 150 | 
| 167 #if defined(FULL_SAFE_BROWSING) | 151 #if defined(FULL_SAFE_BROWSING) | 
| 168 // Tells the utility process to analyze a zip file for malicious download | 152 // Tells the utility process to analyze a zip file for malicious download | 
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 202 //------------------------------------------------------------------------------ | 186 //------------------------------------------------------------------------------ | 
| 203 // Utility process host messages: | 187 // Utility process host messages: | 
| 204 // These are messages from the utility process to the browser. | 188 // These are messages from the utility process to the browser. | 
| 205 | 189 | 
| 206 // Reply when the utility process has failed while unpacking and parsing a | 190 // Reply when the utility process has failed while unpacking and parsing a | 
| 207 // web resource.  |error_message| is a user-readable explanation of what | 191 // web resource.  |error_message| is a user-readable explanation of what | 
| 208 // went wrong. | 192 // went wrong. | 
| 209 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, | 193 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, | 
| 210                      std::string /* error_message, if any */) | 194                      std::string /* error_message, if any */) | 
| 211 | 195 | 
| 212 // Reply when a file has been patched. |  | 
| 213 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */) |  | 
| 214 |  | 
| 215 #if defined(OS_CHROMEOS) | 196 #if defined(OS_CHROMEOS) | 
| 216 // Reply when the utility process has succeeded in creating the zip file. | 197 // Reply when the utility process has succeeded in creating the zip file. | 
| 217 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) | 198 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) | 
| 218 | 199 | 
| 219 // Reply when an error occured in creating the zip file. | 200 // Reply when an error occured in creating the zip file. | 
| 220 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) | 201 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) | 
| 221 #endif  // defined(OS_CHROMEOS) | 202 #endif  // defined(OS_CHROMEOS) | 
| 222 | 203 | 
| 223 #if defined(FULL_SAFE_BROWSING) | 204 #if defined(FULL_SAFE_BROWSING) | 
| 224 // Reply when a zip file has been analyzed for malicious download protection. | 205 // Reply when a zip file has been analyzed for malicious download protection. | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 237 #if defined(OS_WIN) | 218 #if defined(OS_WIN) | 
| 238 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetOpenFileName_Failed) | 219 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetOpenFileName_Failed) | 
| 239 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, | 220 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, | 
| 240                      base::FilePath /* directory */, | 221                      base::FilePath /* directory */, | 
| 241                      std::vector<base::FilePath> /* filenames */) | 222                      std::vector<base::FilePath> /* filenames */) | 
| 242 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) | 223 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) | 
| 243 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, | 224 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, | 
| 244                      base::FilePath /* path */, | 225                      base::FilePath /* path */, | 
| 245                      int /* one_based_filter_index  */) | 226                      int /* one_based_filter_index  */) | 
| 246 #endif  // defined(OS_WIN) | 227 #endif  // defined(OS_WIN) | 
| OLD | NEW | 
|---|