| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 printing::PrinterCapsAndDefaults) | 388 printing::PrinterCapsAndDefaults) |
| 373 | 389 |
| 374 // Reply when the utility process has succeeded in obtaining the printer | 390 // Reply when the utility process has succeeded in obtaining the printer |
| 375 // semantic capabilities and defaults. | 391 // semantic capabilities and defaults. |
| 376 IPC_MESSAGE_CONTROL2( | 392 IPC_MESSAGE_CONTROL2( |
| 377 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Succeeded, | 393 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Succeeded, |
| 378 std::string /* printer name */, | 394 std::string /* printer name */, |
| 379 printing::PrinterSemanticCapsAndDefaults) | 395 printing::PrinterSemanticCapsAndDefaults) |
| 380 #endif | 396 #endif |
| 381 | 397 |
| 398 // Reply when a file has been patched successfully. |
| 399 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_PatchFile_Succeeded) |
| 400 |
| 401 // Reply when patching a file failed. |
| 402 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Failed, |
| 403 int /* error code */) |
| 404 |
| 382 // Reply when the utility process has failed to obtain the printer | 405 // Reply when the utility process has failed to obtain the printer |
| 383 // capabilities and defaults. | 406 // capabilities and defaults. |
| 384 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 407 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
| 385 std::string /* printer name */) | 408 std::string /* printer name */) |
| 386 | 409 |
| 387 // Reply when the utility process has failed to obtain the printer | 410 // Reply when the utility process has failed to obtain the printer |
| 388 // semantic capabilities and defaults. | 411 // semantic capabilities and defaults. |
| 389 IPC_MESSAGE_CONTROL1( | 412 IPC_MESSAGE_CONTROL1( |
| 390 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed, | 413 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed, |
| 391 std::string /* printer name */) | 414 std::string /* printer name */) |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 // Reply when a write or verify operation has been fully cancelled. | 486 // Reply when a write or verify operation has been fully cancelled. |
| 464 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled) | 487 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled) |
| 465 | 488 |
| 466 // Reply when a write or verify operation fails to complete. | 489 // Reply when a write or verify operation fails to complete. |
| 467 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Failed, | 490 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Failed, |
| 468 std::string /* message */) | 491 std::string /* message */) |
| 469 | 492 |
| 470 // Periodic status update about the progress of an operation. | 493 // Periodic status update about the progress of an operation. |
| 471 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Progress, | 494 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Progress, |
| 472 int64 /* number of bytes processed */) | 495 int64 /* number of bytes processed */) |
| OLD | NEW |