Chromium Code Reviews| 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 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 162 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, | 162 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, |
| 163 std::string /* JSON to parse */) | 163 std::string /* JSON to parse */) |
| 164 | 164 |
| 165 // Tells the utility process to get capabilities and defaults for the specified | 165 // Tells the utility process to get capabilities and defaults for the specified |
| 166 // printer. Used on Windows to isolate the service process from printer driver | 166 // printer. Used on Windows to isolate the service process from printer driver |
| 167 // crashes by executing this in a separate process. This does not run in a | 167 // crashes by executing this in a separate process. This does not run in a |
| 168 // sandbox. | 168 // sandbox. |
| 169 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterCapsAndDefaults, | 169 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterCapsAndDefaults, |
| 170 std::string /* printer name */) | 170 std::string /* printer name */) |
| 171 | 171 |
| 172 // Tell the utility process to patch the given |input_file| using |patch_file| | |
|
Sorin Jianu
2014/02/03 20:57:57
Tells
waffles
2014/02/07 01:00:59
Done.
| |
| 173 // and place the output in |output_file|. The patch should use the bsdiff | |
| 174 // algorithm (Courgette's version). | |
| 175 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, | |
| 176 base::FilePath /* input_file */, | |
| 177 base::FilePath /* patch_file */, | |
| 178 base::FilePath /* output_file */) | |
| 179 | |
| 180 // Tell the utility process to patch the given |input_file| using |patch_file| | |
| 181 // and place the output in |output_file|. The patch should use the Courgette | |
| 182 // algorithm. | |
| 183 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileCourgette, | |
| 184 base::FilePath /* input_file */, | |
| 185 base::FilePath /* patch_file */, | |
| 186 base::FilePath /* output_file */) | |
| 187 | |
| 172 #if defined(OS_CHROMEOS) | 188 #if defined(OS_CHROMEOS) |
| 173 // Tell the utility process to create a zip file on the given list of files. | 189 // Tell the utility process to create a zip file on the given list of files. |
| 174 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, | 190 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, |
| 175 base::FilePath /* src_dir */, | 191 base::FilePath /* src_dir */, |
| 176 std::vector<base::FilePath> /* src_relative_paths */, | 192 std::vector<base::FilePath> /* src_relative_paths */, |
| 177 base::FileDescriptor /* dest_fd */) | 193 base::FileDescriptor /* dest_fd */) |
| 178 #endif // defined(OS_CHROMEOS) | 194 #endif // defined(OS_CHROMEOS) |
| 179 | 195 |
| 180 // Requests the utility process to respond with a | 196 // Requests the utility process to respond with a |
| 181 // ChromeUtilityHostMsg_ProcessStarted message once it has started. This may | 197 // ChromeUtilityHostMsg_ProcessStarted message once it has started. This may |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 312 std::string /* error message, if any*/) | 328 std::string /* error message, if any*/) |
| 313 | 329 |
| 314 #if defined(ENABLE_FULL_PRINTING) | 330 #if defined(ENABLE_FULL_PRINTING) |
| 315 // Reply when the utility process has succeeded in obtaining the printer | 331 // Reply when the utility process has succeeded in obtaining the printer |
| 316 // capabilities and defaults. | 332 // capabilities and defaults. |
| 317 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, | 333 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, |
| 318 std::string /* printer name */, | 334 std::string /* printer name */, |
| 319 printing::PrinterCapsAndDefaults) | 335 printing::PrinterCapsAndDefaults) |
| 320 #endif | 336 #endif |
| 321 | 337 |
| 338 // Reply when a file has been patched successfully. | |
| 339 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_PatchFile_Succeeded) | |
| 340 | |
| 341 // Reply when patching a file failed. | |
| 342 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Failed, | |
| 343 int /* error code */) | |
| 344 | |
| 322 // Reply when the utility process has failed to obtain the printer | 345 // Reply when the utility process has failed to obtain the printer |
| 323 // capabilities and defaults. | 346 // capabilities and defaults. |
| 324 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 347 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
| 325 std::string /* printer name */) | 348 std::string /* printer name */) |
| 326 | 349 |
| 327 #if defined(OS_CHROMEOS) | 350 #if defined(OS_CHROMEOS) |
| 328 // Reply when the utility process has succeeded in creating the zip file. | 351 // Reply when the utility process has succeeded in creating the zip file. |
| 329 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) | 352 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) |
| 330 | 353 |
| 331 // Reply when an error occured in creating the zip file. | 354 // Reply when an error occured in creating the zip file. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 383 | 406 |
| 384 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_ParseMediaMetadata_Finished, | 407 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_ParseMediaMetadata_Finished, |
| 385 bool /* parse_success */, | 408 bool /* parse_success */, |
| 386 base::DictionaryValue /* metadata */) | 409 base::DictionaryValue /* metadata */) |
| 387 | 410 |
| 388 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, | 411 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, |
| 389 int64 /* request_id */, | 412 int64 /* request_id */, |
| 390 int64 /* start_byte */, | 413 int64 /* start_byte */, |
| 391 int64 /* length */) | 414 int64 /* length */) |
| 392 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 415 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
| OLD | NEW |