Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/common/chrome_utility_messages.h

Issue 213923002: Revert of Use UtilityProcessHost to patch files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nonblocking
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/utility/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 // Tells the utility process to unpack the given extension file in its 145 // Tell 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
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
224 #if defined(OS_CHROMEOS) 208 #if defined(OS_CHROMEOS)
225 // Tell the utility process to create a zip file on the given list of files. 209 // Tell the utility process to create a zip file on the given list of files.
226 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, 210 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile,
227 base::FilePath /* src_dir */, 211 base::FilePath /* src_dir */,
228 std::vector<base::FilePath> /* src_relative_paths */, 212 std::vector<base::FilePath> /* src_relative_paths */,
229 base::FileDescriptor /* dest_fd */) 213 base::FileDescriptor /* dest_fd */)
230 #endif // defined(OS_CHROMEOS) 214 #endif // defined(OS_CHROMEOS)
231 215
232 // Requests the utility process to respond with a 216 // Requests the utility process to respond with a
233 // ChromeUtilityHostMsg_ProcessStarted message once it has started. This may 217 // ChromeUtilityHostMsg_ProcessStarted message once it has started. This may
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 printing::PrinterCapsAndDefaults) 372 printing::PrinterCapsAndDefaults)
389 373
390 // Reply when the utility process has succeeded in obtaining the printer 374 // Reply when the utility process has succeeded in obtaining the printer
391 // semantic capabilities and defaults. 375 // semantic capabilities and defaults.
392 IPC_MESSAGE_CONTROL2( 376 IPC_MESSAGE_CONTROL2(
393 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Succeeded, 377 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Succeeded,
394 std::string /* printer name */, 378 std::string /* printer name */,
395 printing::PrinterSemanticCapsAndDefaults) 379 printing::PrinterSemanticCapsAndDefaults)
396 #endif 380 #endif
397 381
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
405 // Reply when the utility process has failed to obtain the printer 382 // Reply when the utility process has failed to obtain the printer
406 // capabilities and defaults. 383 // capabilities and defaults.
407 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, 384 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed,
408 std::string /* printer name */) 385 std::string /* printer name */)
409 386
410 // Reply when the utility process has failed to obtain the printer 387 // Reply when the utility process has failed to obtain the printer
411 // semantic capabilities and defaults. 388 // semantic capabilities and defaults.
412 IPC_MESSAGE_CONTROL1( 389 IPC_MESSAGE_CONTROL1(
413 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed, 390 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed,
414 std::string /* printer name */) 391 std::string /* printer name */)
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, 477 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials,
501 std::string /* ssid */, 478 std::string /* ssid */,
502 std::vector<uint8> /* public_key */) 479 std::vector<uint8> /* public_key */)
503 480
504 // Reply after getting WiFi credentials from the system and encrypting them with 481 // Reply after getting WiFi credentials from the system and encrypting them with
505 // caller's public key. |success| is false if error occurred. 482 // caller's public key. |success| is false if error occurred.
506 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, 483 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials,
507 std::vector<uint8> /* encrypted_key_data */, 484 std::vector<uint8> /* encrypted_key_data */,
508 bool /* success */) 485 bool /* success */)
509 #endif // defined(OS_WIN) 486 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/utility/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698