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

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

Issue 2534873005: Sandbox the component updater's patcher utility process. (Closed)
Patch Set: Through #29 Created 4 years 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
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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| 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 144 // and place the output in |output_file|. The patch should use the bsdiff
145 // algorithm (Courgette's version). 145 // algorithm (Courgette's version).
146 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, 146 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff,
147 base::FilePath /* input_file */, 147 IPC::PlatformFileForTransit /* input_file */,
148 base::FilePath /* patch_file */, 148 IPC::PlatformFileForTransit /* patch_file */,
149 base::FilePath /* output_file */) 149 IPC::PlatformFileForTransit /* output_file */)
150 150
151 // Tell the utility process to patch the given |input_file| using |patch_file| 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 152 // and place the output in |output_file|. The patch should use the Courgette
153 // algorithm. 153 // algorithm.
154 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileCourgette, 154 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileCourgette,
155 base::FilePath /* input_file */, 155 IPC::PlatformFileForTransit /* input_file */,
156 base::FilePath /* patch_file */, 156 IPC::PlatformFileForTransit /* patch_file */,
157 base::FilePath /* output_file */) 157 IPC::PlatformFileForTransit /* output_file */)
158 158
159 #if defined(OS_CHROMEOS) 159 #if defined(OS_CHROMEOS)
160 // 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.
161 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, 161 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile,
162 base::FilePath /* src_dir */, 162 base::FilePath /* src_dir */,
163 std::vector<base::FilePath> /* src_relative_paths */, 163 std::vector<base::FilePath> /* src_relative_paths */,
164 base::FileDescriptor /* dest_fd */) 164 base::FileDescriptor /* dest_fd */)
165 #endif // defined(OS_CHROMEOS) 165 #endif // defined(OS_CHROMEOS)
166 166
167 #if defined(FULL_SAFE_BROWSING) 167 #if defined(FULL_SAFE_BROWSING)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 #if defined(OS_WIN) 237 #if defined(OS_WIN)
238 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetOpenFileName_Failed) 238 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetOpenFileName_Failed)
239 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, 239 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result,
240 base::FilePath /* directory */, 240 base::FilePath /* directory */,
241 std::vector<base::FilePath> /* filenames */) 241 std::vector<base::FilePath> /* filenames */)
242 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) 242 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed)
243 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, 243 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result,
244 base::FilePath /* path */, 244 base::FilePath /* path */,
245 int /* one_based_filter_index */) 245 int /* one_based_filter_index */)
246 #endif // defined(OS_WIN) 246 #endif // defined(OS_WIN)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698