| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 IPC_STRUCT_TRAITS_BEGIN(picasa::FolderINIContents) | 135 IPC_STRUCT_TRAITS_BEGIN(picasa::FolderINIContents) |
| 136 IPC_STRUCT_TRAITS_MEMBER(folder_path) | 136 IPC_STRUCT_TRAITS_MEMBER(folder_path) |
| 137 IPC_STRUCT_TRAITS_MEMBER(ini_contents) | 137 IPC_STRUCT_TRAITS_MEMBER(ini_contents) |
| 138 IPC_STRUCT_TRAITS_END() | 138 IPC_STRUCT_TRAITS_END() |
| 139 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 139 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 140 | 140 |
| 141 //------------------------------------------------------------------------------ | 141 //------------------------------------------------------------------------------ |
| 142 // Utility process messages: | 142 // Utility process messages: |
| 143 // These are messages from the browser to the utility process. | 143 // These are messages from the browser to the utility process. |
| 144 | 144 |
| 145 // Tell the utility process to unpack the given extension file in its | 145 // Tells the utility process to unpack the given extension file in its |
| 146 // directory and verify that it is valid. | 146 // directory and verify that it is valid. |
| 147 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, | 147 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, |
| 148 base::FilePath /* extension_filename */, | 148 base::FilePath /* extension_filename */, |
| 149 std::string /* extension_id */, | 149 std::string /* extension_id */, |
| 150 int /* Manifest::Location */, | 150 int /* Manifest::Location */, |
| 151 int /* InitFromValue flags */) | 151 int /* InitFromValue flags */) |
| 152 | 152 |
| 153 // Tell the utility process to parse the given JSON data and verify its | 153 // Tell the utility process to parse the given JSON data and verify its |
| 154 // validity. | 154 // validity. |
| 155 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_UnpackWebResource, | 155 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_UnpackWebResource, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterCapsAndDefaults, | 198 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterCapsAndDefaults, |
| 199 std::string /* printer name */) | 199 std::string /* printer name */) |
| 200 | 200 |
| 201 // Tells the utility process to get capabilities and defaults for the specified | 201 // Tells the utility process to get capabilities and defaults for the specified |
| 202 // printer. Used on Windows to isolate the service process from printer driver | 202 // printer. Used on Windows to isolate the service process from printer driver |
| 203 // crashes by executing this in a separate process. This does not run in a | 203 // crashes by executing this in a separate process. This does not run in a |
| 204 // sandbox. Returns result as printing::PrinterSemanticCapsAndDefaults. | 204 // sandbox. Returns result as printing::PrinterSemanticCapsAndDefaults. |
| 205 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults, | 205 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults, |
| 206 std::string /* printer name */) | 206 std::string /* printer name */) |
| 207 | 207 |
| 208 // Tell the utility process to patch the given |input_file| using |patch_file| |
| 209 // and place the output in |output_file|. The patch should use the bsdiff |
| 210 // algorithm (Courgette's version). |
| 211 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, |
| 212 base::FilePath /* input_file */, |
| 213 base::FilePath /* patch_file */, |
| 214 base::FilePath /* output_file */) |
| 215 |
| 216 // Tell the utility process to patch the given |input_file| using |patch_file| |
| 217 // and place the output in |output_file|. The patch should use the Courgette |
| 218 // algorithm. |
| 219 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileCourgette, |
| 220 base::FilePath /* input_file */, |
| 221 base::FilePath /* patch_file */, |
| 222 base::FilePath /* output_file */) |
| 223 |
| 208 #if defined(OS_CHROMEOS) | 224 #if defined(OS_CHROMEOS) |
| 209 // Tell the utility process to create a zip file on the given list of files. | 225 // Tell the utility process to create a zip file on the given list of files. |
| 210 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, | 226 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, |
| 211 base::FilePath /* src_dir */, | 227 base::FilePath /* src_dir */, |
| 212 std::vector<base::FilePath> /* src_relative_paths */, | 228 std::vector<base::FilePath> /* src_relative_paths */, |
| 213 base::FileDescriptor /* dest_fd */) | 229 base::FileDescriptor /* dest_fd */) |
| 214 #endif // defined(OS_CHROMEOS) | 230 #endif // defined(OS_CHROMEOS) |
| 215 | 231 |
| 216 // Requests the utility process to respond with a | 232 // Requests the utility process to respond with a |
| 217 // ChromeUtilityHostMsg_ProcessStarted message once it has started. This may | 233 // ChromeUtilityHostMsg_ProcessStarted message once it has started. This may |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 printing::PrinterCapsAndDefaults) | 371 printing::PrinterCapsAndDefaults) |
| 356 | 372 |
| 357 // Reply when the utility process has succeeded in obtaining the printer | 373 // Reply when the utility process has succeeded in obtaining the printer |
| 358 // semantic capabilities and defaults. | 374 // semantic capabilities and defaults. |
| 359 IPC_MESSAGE_CONTROL2( | 375 IPC_MESSAGE_CONTROL2( |
| 360 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Succeeded, | 376 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Succeeded, |
| 361 std::string /* printer name */, | 377 std::string /* printer name */, |
| 362 printing::PrinterSemanticCapsAndDefaults) | 378 printing::PrinterSemanticCapsAndDefaults) |
| 363 #endif | 379 #endif |
| 364 | 380 |
| 381 // Reply when a file has been patched successfully. |
| 382 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_PatchFile_Succeeded) |
| 383 |
| 384 // Reply when patching a file failed. |
| 385 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Failed, |
| 386 int /* error code */) |
| 387 |
| 365 // Reply when the utility process has failed to obtain the printer | 388 // Reply when the utility process has failed to obtain the printer |
| 366 // capabilities and defaults. | 389 // capabilities and defaults. |
| 367 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 390 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
| 368 std::string /* printer name */) | 391 std::string /* printer name */) |
| 369 | 392 |
| 370 // Reply when the utility process has failed to obtain the printer | 393 // Reply when the utility process has failed to obtain the printer |
| 371 // semantic capabilities and defaults. | 394 // semantic capabilities and defaults. |
| 372 IPC_MESSAGE_CONTROL1( | 395 IPC_MESSAGE_CONTROL1( |
| 373 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed, | 396 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed, |
| 374 std::string /* printer name */) | 397 std::string /* printer name */) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 | 455 |
| 433 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_ParseMediaMetadata_Finished, | 456 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_ParseMediaMetadata_Finished, |
| 434 bool /* parse_success */, | 457 bool /* parse_success */, |
| 435 base::DictionaryValue /* metadata */) | 458 base::DictionaryValue /* metadata */) |
| 436 | 459 |
| 437 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, | 460 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, |
| 438 int64 /* request_id */, | 461 int64 /* request_id */, |
| 439 int64 /* start_byte */, | 462 int64 /* start_byte */, |
| 440 int64 /* length */) | 463 int64 /* length */) |
| 441 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 464 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
| OLD | NEW |