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

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

Issue 345693002: Extensions: Split extensions utility IPC messages into its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable another test Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | chrome/common/chrome_utility_printing_messages.h » ('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"
11 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
12 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
13 #include "base/tuple.h" 12 #include "base/tuple.h"
14 #include "base/values.h" 13 #include "base/values.h"
15 #include "chrome/common/extensions/update_manifest.h"
16 #include "chrome/common/media_galleries/iphoto_library.h"
17 #include "chrome/common/media_galleries/itunes_library.h"
18 #include "chrome/common/media_galleries/metadata_types.h"
19 #include "chrome/common/media_galleries/picasa_types.h"
20 #include "chrome/common/safe_browsing/zip_analyzer.h" 14 #include "chrome/common/safe_browsing/zip_analyzer.h"
21 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
22 #include "ipc/ipc_platform_file.h" 16 #include "ipc/ipc_platform_file.h"
23 #include "third_party/skia/include/core/SkBitmap.h" 17 #include "third_party/skia/include/core/SkBitmap.h"
24 #include "ui/gfx/ipc/gfx_param_traits.h" 18 #include "ui/gfx/ipc/gfx_param_traits.h"
25 19
26 #define IPC_MESSAGE_START ChromeUtilityMsgStart 20 #define IPC_MESSAGE_START ChromeUtilityMsgStart
27 21
28 #ifndef CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ 22 #ifndef CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_
29 #define CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ 23 #define CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_
30 24
31 typedef std::vector<Tuple2<SkBitmap, base::FilePath> > DecodedImages; 25 typedef std::vector<Tuple2<SkBitmap, base::FilePath> > DecodedImages;
32 26
33 #endif // CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ 27 #endif // CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_
34 28
35 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Result)
36 IPC_STRUCT_TRAITS_MEMBER(extension_id)
37 IPC_STRUCT_TRAITS_MEMBER(version)
38 IPC_STRUCT_TRAITS_MEMBER(browser_min_version)
39 IPC_STRUCT_TRAITS_MEMBER(package_hash)
40 IPC_STRUCT_TRAITS_MEMBER(crx_url)
41 IPC_STRUCT_TRAITS_END()
42
43 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Results)
44 IPC_STRUCT_TRAITS_MEMBER(list)
45 IPC_STRUCT_TRAITS_MEMBER(daystart_elapsed_seconds)
46 IPC_STRUCT_TRAITS_END()
47
48 IPC_STRUCT_TRAITS_BEGIN(safe_browsing::zip_analyzer::Results) 29 IPC_STRUCT_TRAITS_BEGIN(safe_browsing::zip_analyzer::Results)
49 IPC_STRUCT_TRAITS_MEMBER(success) 30 IPC_STRUCT_TRAITS_MEMBER(success)
50 IPC_STRUCT_TRAITS_MEMBER(has_executable) 31 IPC_STRUCT_TRAITS_MEMBER(has_executable)
51 IPC_STRUCT_TRAITS_MEMBER(has_archive) 32 IPC_STRUCT_TRAITS_MEMBER(has_archive)
52 IPC_STRUCT_TRAITS_END() 33 IPC_STRUCT_TRAITS_END()
53 34
54 #if defined(OS_MACOSX)
55 IPC_STRUCT_TRAITS_BEGIN(iphoto::parser::Photo)
56 IPC_STRUCT_TRAITS_MEMBER(id)
57 IPC_STRUCT_TRAITS_MEMBER(location)
58 IPC_STRUCT_TRAITS_MEMBER(original_location)
59 IPC_STRUCT_TRAITS_END()
60
61 IPC_STRUCT_TRAITS_BEGIN(iphoto::parser::Library)
62 IPC_STRUCT_TRAITS_MEMBER(albums)
63 IPC_STRUCT_TRAITS_MEMBER(all_photos)
64 IPC_STRUCT_TRAITS_END()
65 #endif // defined(OS_MACOSX)
66
67 #if defined(OS_WIN) || defined(OS_MACOSX)
68 IPC_STRUCT_TRAITS_BEGIN(itunes::parser::Track)
69 IPC_STRUCT_TRAITS_MEMBER(id)
70 IPC_STRUCT_TRAITS_MEMBER(location)
71 IPC_STRUCT_TRAITS_END()
72
73 IPC_STRUCT_TRAITS_BEGIN(picasa::AlbumInfo)
74 IPC_STRUCT_TRAITS_MEMBER(name)
75 IPC_STRUCT_TRAITS_MEMBER(timestamp)
76 IPC_STRUCT_TRAITS_MEMBER(uid)
77 IPC_STRUCT_TRAITS_MEMBER(path)
78 IPC_STRUCT_TRAITS_END()
79
80 // These files are opened read-only. Please see the constructor for
81 // picasa::AlbumTableFiles for details.
82 IPC_STRUCT_TRAITS_BEGIN(picasa::AlbumTableFilesForTransit)
83 IPC_STRUCT_TRAITS_MEMBER(indicator_file)
84 IPC_STRUCT_TRAITS_MEMBER(category_file)
85 IPC_STRUCT_TRAITS_MEMBER(date_file)
86 IPC_STRUCT_TRAITS_MEMBER(filename_file)
87 IPC_STRUCT_TRAITS_MEMBER(name_file)
88 IPC_STRUCT_TRAITS_MEMBER(token_file)
89 IPC_STRUCT_TRAITS_MEMBER(uid_file)
90 IPC_STRUCT_TRAITS_END()
91
92 IPC_STRUCT_TRAITS_BEGIN(picasa::FolderINIContents)
93 IPC_STRUCT_TRAITS_MEMBER(folder_path)
94 IPC_STRUCT_TRAITS_MEMBER(ini_contents)
95 IPC_STRUCT_TRAITS_END()
96 #endif // defined(OS_WIN) || defined(OS_MACOSX)
97
98 #if !defined(OS_ANDROID) && !defined(OS_IOS)
99 IPC_STRUCT_TRAITS_BEGIN(metadata::AttachedImage)
100 IPC_STRUCT_TRAITS_MEMBER(type)
101 IPC_STRUCT_TRAITS_MEMBER(data)
102 IPC_STRUCT_TRAITS_END()
103 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
104
105 //------------------------------------------------------------------------------ 35 //------------------------------------------------------------------------------
106 // Utility process messages: 36 // Utility process messages:
107 // These are messages from the browser to the utility process. 37 // These are messages from the browser to the utility process.
108 38
109 // Tells the utility process to unpack the given extension file in its
110 // directory and verify that it is valid.
111 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension,
112 base::FilePath /* extension_filename */,
113 std::string /* extension_id */,
114 int /* Manifest::Location */,
115 int /* InitFromValue flags */)
116
117 // Tell the utility process to parse the given JSON data and verify its 39 // Tell the utility process to parse the given JSON data and verify its
118 // validity. 40 // validity.
119 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_UnpackWebResource, 41 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_UnpackWebResource,
120 std::string /* JSON data */) 42 std::string /* JSON data */)
121 43
122 // Tell the utility process to parse the given xml document.
123 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseUpdateManifest,
124 std::string /* xml document contents */)
125
126 // Tell the utility process to decode the given image data. 44 // Tell the utility process to decode the given image data.
127 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage, 45 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage,
128 std::vector<unsigned char>) // encoded image contents 46 std::vector<unsigned char>) // encoded image contents
129 47
130 // Tell the utility process to decode the given image data, which is base64
131 // encoded.
132 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64,
133 std::string) // base64 encoded image contents
134
135 // Tell the utility process to decode the given JPEG image data with a robust 48 // Tell the utility process to decode the given JPEG image data with a robust
136 // libjpeg codec. 49 // libjpeg codec.
137 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_RobustJPEGDecodeImage, 50 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_RobustJPEGDecodeImage,
138 std::vector<unsigned char>) // encoded image contents 51 std::vector<unsigned char>) // encoded image contents
139 52
140 // Tell the utility process to parse a JSON string into a Value object.
141 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON,
142 std::string /* JSON to parse */)
143
144 // Tell the utility process to patch the given |input_file| using |patch_file| 53 // Tell the utility process to patch the given |input_file| using |patch_file|
145 // and place the output in |output_file|. The patch should use the bsdiff 54 // and place the output in |output_file|. The patch should use the bsdiff
146 // algorithm (Courgette's version). 55 // algorithm (Courgette's version).
147 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, 56 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff,
148 base::FilePath /* input_file */, 57 base::FilePath /* input_file */,
149 base::FilePath /* patch_file */, 58 base::FilePath /* patch_file */,
150 base::FilePath /* output_file */) 59 base::FilePath /* output_file */)
151 60
152 // Tell the utility process to patch the given |input_file| using |patch_file| 61 // Tell the utility process to patch the given |input_file| using |patch_file|
153 // and place the output in |output_file|. The patch should use the Courgette 62 // and place the output in |output_file|. The patch should use the Courgette
(...skipping 14 matching lines...) Expand all
168 // Requests the utility process to respond with a 77 // Requests the utility process to respond with a
169 // ChromeUtilityHostMsg_ProcessStarted message once it has started. This may 78 // ChromeUtilityHostMsg_ProcessStarted message once it has started. This may
170 // be used if the host process needs a handle to the running utility process. 79 // be used if the host process needs a handle to the running utility process.
171 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_StartupPing) 80 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_StartupPing)
172 81
173 // Tells the utility process to analyze a zip file for malicious download 82 // Tells the utility process to analyze a zip file for malicious download
174 // protection. 83 // protection.
175 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_AnalyzeZipFileForDownloadProtection, 84 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_AnalyzeZipFileForDownloadProtection,
176 IPC::PlatformFileForTransit /* zip_file */) 85 IPC::PlatformFileForTransit /* zip_file */)
177 86
178 #if defined(OS_WIN)
179 // Tell the utility process to parse the iTunes preference XML file contents
180 // and return the path to the iTunes directory.
181 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseITunesPrefXml,
182 std::string /* XML to parse */)
183 #endif // defined(OS_WIN)
184
185 #if defined(OS_MACOSX)
186 // Tell the utility process to parse the iPhoto library XML file and
187 // return the parse result as well as the iPhoto library as an iphoto::Library.
188 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseIPhotoLibraryXmlFile,
189 IPC::PlatformFileForTransit /* XML file to parse */)
190 #endif // defined(OS_MACOSX)
191
192 #if defined(OS_WIN) || defined(OS_MACOSX)
193 // Tell the utility process to parse the iTunes library XML file and
194 // return the parse result as well as the iTunes library as an itunes::Library.
195 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseITunesLibraryXmlFile,
196 IPC::PlatformFileForTransit /* XML file to parse */)
197
198 // Tells the utility process to parse the Picasa PMP database and return a
199 // listing of the user's Picasa albums and folders, along with metadata.
200 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase,
201 picasa::AlbumTableFilesForTransit /* album_table_files */)
202
203 // Tells the utility process to index the Picasa user-created Album contents
204 // by parsing all the INI files in Picasa Folders.
205 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents,
206 picasa::AlbumUIDSet /* album_uids */,
207 std::vector<picasa::FolderINIContents> /* folders_inis */)
208 #endif // defined(OS_WIN) || defined(OS_MACOSX)
209
210 #if !defined(OS_ANDROID) && !defined(OS_IOS)
211 // Tell the utility process to attempt to validate the passed media file. The
212 // file will undergo basic sanity checks and will be decoded for up to
213 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode
214 // the file in the browser process after this check.
215 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile,
216 int64 /* milliseconds_of_decoding */,
217 IPC::PlatformFileForTransit /* Media file to parse */)
218
219 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_ParseMediaMetadata,
220 std::string /* mime_type */,
221 int64 /* total_size */,
222 bool /* get_attached_images */)
223
224 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished,
225 int64 /* request_id */,
226 std::string /* bytes */)
227 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
228
229 // Requests that the utility process write the contents of the source file to
230 // the removable drive listed in the target file. The target will be restricted
231 // to removable drives by the utility process.
232 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write,
233 base::FilePath /* source file */,
234 base::FilePath /* target file */)
235
236 // Requests that the utility process verify that the contents of the source file
237 // was written to the target. As above the target will be restricted to
238 // removable drives by the utility process.
239 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Verify,
240 base::FilePath /* source file */,
241 base::FilePath /* target file */)
242
243 // Cancels a pending write or verify operation.
244 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_ImageWriter_Cancel)
245
246 //------------------------------------------------------------------------------ 87 //------------------------------------------------------------------------------
247 // Utility process host messages: 88 // Utility process host messages:
248 // These are messages from the utility process to the browser. 89 // These are messages from the utility process to the browser.
249 90
250 // Reply when the utility process is done unpacking an extension. |manifest|
251 // is the parsed manifest.json file.
252 // The unpacker should also have written out files containing the decoded
253 // images and message catalogs from the extension. The data is written into a
254 // DecodedImages struct into a file named kDecodedImagesFilename in the
255 // directory that was passed in. This is done because the data is too large to
256 // pass over IPC.
257 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Succeeded,
258 base::DictionaryValue /* manifest */)
259
260 // Reply when the utility process has failed while unpacking an extension.
261 // |error_message| is a user-displayable explanation of what went wrong.
262 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Failed,
263 base::string16 /* error_message, if any */)
264
265 // Reply when the utility process is done unpacking and parsing JSON data 91 // Reply when the utility process is done unpacking and parsing JSON data
266 // from a web resource. 92 // from a web resource.
267 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Succeeded, 93 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Succeeded,
268 base::DictionaryValue /* json data */) 94 base::DictionaryValue /* json data */)
269 95
270 // Reply when the utility process has failed while unpacking and parsing a 96 // Reply when the utility process has failed while unpacking and parsing a
271 // web resource. |error_message| is a user-readable explanation of what 97 // web resource. |error_message| is a user-readable explanation of what
272 // went wrong. 98 // went wrong.
273 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, 99 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed,
274 std::string /* error_message, if any */) 100 std::string /* error_message, if any */)
275 101
276 // Reply when the utility process has succeeded in parsing an update manifest
277 // xml document.
278 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Succeeded,
279 UpdateManifest::Results /* updates */)
280
281 // Reply when an error occurred parsing the update manifest. |error_message|
282 // is a description of what went wrong suitable for logging.
283 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Failed,
284 std::string /* error_message, if any */)
285
286 // Reply when the utility process has succeeded in decoding the image. 102 // Reply when the utility process has succeeded in decoding the image.
287 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded, 103 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded,
288 SkBitmap) // decoded image 104 SkBitmap) // decoded image
289 105
290 // Reply when an error occurred decoding the image. 106 // Reply when an error occurred decoding the image.
291 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed) 107 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed)
292 108
293 // Reply when the utility process successfully parsed a JSON string.
294 //
295 // WARNING: The result can be of any Value subclass type, but we can't easily
296 // pass indeterminate value types by const object reference with our IPC macros,
297 // so we put the result Value into a ListValue. Handlers should examine the
298 // first (and only) element of the ListValue for the actual result.
299 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded,
300 base::ListValue)
301
302 // Reply when the utility process failed in parsing a JSON string.
303 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed,
304 std::string /* error message, if any*/)
305
306 // Reply when a file has been patched successfully. 109 // Reply when a file has been patched successfully.
307 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_PatchFile_Succeeded) 110 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_PatchFile_Succeeded)
308 111
309 // Reply when patching a file failed. 112 // Reply when patching a file failed.
310 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Failed, 113 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Failed,
311 int /* error code */) 114 int /* error code */)
312 115
313 #if defined(OS_CHROMEOS) 116 #if defined(OS_CHROMEOS)
314 // Reply when the utility process has succeeded in creating the zip file. 117 // Reply when the utility process has succeeded in creating the zip file.
315 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) 118 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded)
316 119
317 // Reply when an error occured in creating the zip file. 120 // Reply when an error occured in creating the zip file.
318 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) 121 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed)
319 #endif // defined(OS_CHROMEOS) 122 #endif // defined(OS_CHROMEOS)
320 123
321 // Reply when the utility process has started. 124 // Reply when the utility process has started.
322 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ProcessStarted) 125 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ProcessStarted)
323 126
324 // Reply when a zip file has been analyzed for malicious download protection. 127 // Reply when a zip file has been analyzed for malicious download protection.
325 IPC_MESSAGE_CONTROL1( 128 IPC_MESSAGE_CONTROL1(
326 ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished, 129 ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished,
327 safe_browsing::zip_analyzer::Results) 130 safe_browsing::zip_analyzer::Results)
328
329 #if defined(OS_WIN)
330 // Reply after parsing the iTunes preferences XML file contents with either the
331 // path to the iTunes directory or an empty FilePath.
332 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GotITunesDirectory,
333 base::FilePath /* Path to iTunes library */)
334 #endif // defined(OS_WIN)
335
336 #if defined(OS_MACOSX)
337 // Reply after parsing the iPhoto library XML file with the parser result and
338 // an iphoto::Library data structure.
339 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotIPhotoLibrary,
340 bool /* Parser result */,
341 iphoto::parser::Library /* iPhoto library */)
342 #endif // defined(OS_MACOSX)
343
344 #if defined(OS_WIN) || defined(OS_MACOSX)
345 // Reply after parsing the iTunes library XML file with the parser result and
346 // an itunes::Library data structure.
347 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotITunesLibrary,
348 bool /* Parser result */,
349 itunes::parser::Library /* iTunes library */)
350
351 // Reply after parsing the Picasa PMP Database with the parser result and a
352 // listing of the user's Picasa albums and folders, along with metadata.
353 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_ParsePicasaPMPDatabase_Finished,
354 bool /* parse_success */,
355 std::vector<picasa::AlbumInfo> /* albums */,
356 std::vector<picasa::AlbumInfo> /* folders */)
357
358 // Reply after indexing the Picasa user-created Album contents by parsing all
359 // the INI files in Picasa Folders.
360 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished,
361 picasa::AlbumImagesMap /* albums_images */)
362 #endif // defined(OS_WIN) || defined(OS_MACOSX)
363
364 #if !defined(OS_ANDROID) && !defined(OS_IOS)
365 // Reply after checking the passed media file. A true result indicates that
366 // the file appears to be a well formed media file.
367 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished,
368 bool /* passed_checks */)
369
370 IPC_MESSAGE_CONTROL3(
371 ChromeUtilityHostMsg_ParseMediaMetadata_Finished,
372 bool /* parse_success */,
373 base::DictionaryValue /* metadata */,
374 std::vector<metadata::AttachedImage> /* attached_images */)
375
376 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes,
377 int64 /* request_id */,
378 int64 /* start_byte */,
379 int64 /* length */)
380 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
381
382 // Reply when a write or verify operation succeeds.
383 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded)
384
385 // Reply when a write or verify operation has been fully cancelled.
386 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled)
387
388 // Reply when a write or verify operation fails to complete.
389 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Failed,
390 std::string /* message */)
391
392 // Periodic status update about the progress of an operation.
393 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Progress,
394 int64 /* number of bytes processed */)
395
396 #if defined(OS_WIN)
397 // Get plain-text WiFi credentials from the system (requires UAC privilege
398 // elevation) and encrypt them with |public_key|.
399 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials,
400 std::string /* ssid */,
401 std::vector<uint8> /* public_key */)
402
403 // Reply after getting WiFi credentials from the system and encrypting them with
404 // caller's public key. |success| is false if error occurred.
405 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials,
406 std::vector<uint8> /* encrypted_key_data */,
407 bool /* success */)
408 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | chrome/common/chrome_utility_printing_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698