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

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

Issue 2599393002: Revert of Convert utility process out-of-process file patching to mojo (Closed)
Patch Set: Created 3 years, 12 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/common/BUILD.gn ('k') | chrome/common/file_patcher.mojom » ('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 #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
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
143 #if defined(OS_CHROMEOS) 159 #if defined(OS_CHROMEOS)
144 // Tell the utility process to create a zip file on the given list of files. 160 // Tell the utility process to create a zip file on the given list of files.
145 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, 161 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile,
146 base::FilePath /* src_dir */, 162 base::FilePath /* src_dir */,
147 std::vector<base::FilePath> /* src_relative_paths */, 163 std::vector<base::FilePath> /* src_relative_paths */,
148 base::FileDescriptor /* dest_fd */) 164 base::FileDescriptor /* dest_fd */)
149 #endif // defined(OS_CHROMEOS) 165 #endif // defined(OS_CHROMEOS)
150 166
151 #if defined(FULL_SAFE_BROWSING) 167 #if defined(FULL_SAFE_BROWSING)
152 // Tells the utility process to analyze a zip file for malicious download 168 // Tells the utility process to analyze a zip file for malicious download
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 //------------------------------------------------------------------------------ 202 //------------------------------------------------------------------------------
187 // Utility process host messages: 203 // Utility process host messages:
188 // These are messages from the utility process to the browser. 204 // These are messages from the utility process to the browser.
189 205
190 // Reply when the utility process has failed while unpacking and parsing a 206 // Reply when the utility process has failed while unpacking and parsing a
191 // web resource. |error_message| is a user-readable explanation of what 207 // web resource. |error_message| is a user-readable explanation of what
192 // went wrong. 208 // went wrong.
193 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, 209 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed,
194 std::string /* error_message, if any */) 210 std::string /* error_message, if any */)
195 211
212 // Reply when a file has been patched.
213 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */)
214
196 #if defined(OS_CHROMEOS) 215 #if defined(OS_CHROMEOS)
197 // Reply when the utility process has succeeded in creating the zip file. 216 // Reply when the utility process has succeeded in creating the zip file.
198 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) 217 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded)
199 218
200 // Reply when an error occured in creating the zip file. 219 // Reply when an error occured in creating the zip file.
201 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) 220 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed)
202 #endif // defined(OS_CHROMEOS) 221 #endif // defined(OS_CHROMEOS)
203 222
204 #if defined(FULL_SAFE_BROWSING) 223 #if defined(FULL_SAFE_BROWSING)
205 // Reply when a zip file has been analyzed for malicious download protection. 224 // Reply when a zip file has been analyzed for malicious download protection.
(...skipping 12 matching lines...) Expand all
218 #if defined(OS_WIN) 237 #if defined(OS_WIN)
219 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetOpenFileName_Failed) 238 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetOpenFileName_Failed)
220 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, 239 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result,
221 base::FilePath /* directory */, 240 base::FilePath /* directory */,
222 std::vector<base::FilePath> /* filenames */) 241 std::vector<base::FilePath> /* filenames */)
223 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) 242 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed)
224 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, 243 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result,
225 base::FilePath /* path */, 244 base::FilePath /* path */,
226 int /* one_based_filter_index */) 245 int /* one_based_filter_index */)
227 #endif // defined(OS_WIN) 246 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/file_patcher.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698