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 #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 Loading... |
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 #if defined(OS_CHROMEOS) | |
144 // Tell the utility process to create a zip file on the given list of files. | |
145 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, | |
146 base::FilePath /* src_dir */, | |
147 std::vector<base::FilePath> /* src_relative_paths */, | |
148 base::FileDescriptor /* dest_fd */) | |
149 #endif // defined(OS_CHROMEOS) | |
150 | |
151 #if defined(FULL_SAFE_BROWSING) | 143 #if defined(FULL_SAFE_BROWSING) |
152 // Tells the utility process to analyze a zip file for malicious download | 144 // Tells the utility process to analyze a zip file for malicious download |
153 // protection, providing a file that can be used temporarily to analyze binaries | 145 // protection, providing a file that can be used temporarily to analyze binaries |
154 // contained therein. | 146 // contained therein. |
155 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_AnalyzeZipFileForDownloadProtection, | 147 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_AnalyzeZipFileForDownloadProtection, |
156 IPC::PlatformFileForTransit /* zip_file */, | 148 IPC::PlatformFileForTransit /* zip_file */, |
157 IPC::PlatformFileForTransit /* temp_file */) | 149 IPC::PlatformFileForTransit /* temp_file */) |
158 | 150 |
159 #if defined(OS_MACOSX) | 151 #if defined(OS_MACOSX) |
160 // Tells the utility process to analyze a DMG file for malicious download | 152 // Tells the utility process to analyze a DMG file for malicious download |
(...skipping 25 matching lines...) Expand all Loading... |
186 //------------------------------------------------------------------------------ | 178 //------------------------------------------------------------------------------ |
187 // Utility process host messages: | 179 // Utility process host messages: |
188 // These are messages from the utility process to the browser. | 180 // These are messages from the utility process to the browser. |
189 | 181 |
190 // Reply when the utility process has failed while unpacking and parsing a | 182 // Reply when the utility process has failed while unpacking and parsing a |
191 // web resource. |error_message| is a user-readable explanation of what | 183 // web resource. |error_message| is a user-readable explanation of what |
192 // went wrong. | 184 // went wrong. |
193 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, | 185 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, |
194 std::string /* error_message, if any */) | 186 std::string /* error_message, if any */) |
195 | 187 |
196 #if defined(OS_CHROMEOS) | |
197 // Reply when the utility process has succeeded in creating the zip file. | |
198 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) | |
199 | |
200 // Reply when an error occured in creating the zip file. | |
201 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) | |
202 #endif // defined(OS_CHROMEOS) | |
203 | |
204 #if defined(FULL_SAFE_BROWSING) | 188 #if defined(FULL_SAFE_BROWSING) |
205 // Reply when a zip file has been analyzed for malicious download protection. | 189 // Reply when a zip file has been analyzed for malicious download protection. |
206 IPC_MESSAGE_CONTROL1( | 190 IPC_MESSAGE_CONTROL1( |
207 ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished, | 191 ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished, |
208 safe_browsing::zip_analyzer::Results) | 192 safe_browsing::zip_analyzer::Results) |
209 | 193 |
210 #if defined(OS_MACOSX) | 194 #if defined(OS_MACOSX) |
211 // Reply when a DMG file has been analyzed for malicious download protection. | 195 // Reply when a DMG file has been analyzed for malicious download protection. |
212 IPC_MESSAGE_CONTROL1( | 196 IPC_MESSAGE_CONTROL1( |
213 ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished, | 197 ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished, |
214 safe_browsing::zip_analyzer::Results) | 198 safe_browsing::zip_analyzer::Results) |
215 #endif // defined(OS_MACOSX) | 199 #endif // defined(OS_MACOSX) |
216 #endif // defined(FULL_SAFE_BROWSING) | 200 #endif // defined(FULL_SAFE_BROWSING) |
217 | 201 |
218 #if defined(OS_WIN) | 202 #if defined(OS_WIN) |
219 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetOpenFileName_Failed) | 203 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetOpenFileName_Failed) |
220 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, | 204 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, |
221 base::FilePath /* directory */, | 205 base::FilePath /* directory */, |
222 std::vector<base::FilePath> /* filenames */) | 206 std::vector<base::FilePath> /* filenames */) |
223 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) | 207 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) |
224 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, | 208 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, |
225 base::FilePath /* path */, | 209 base::FilePath /* path */, |
226 int /* one_based_filter_index */) | 210 int /* one_based_filter_index */) |
227 #endif // defined(OS_WIN) | 211 #endif // defined(OS_WIN) |
OLD | NEW |