| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 IPC_STRUCT_TRAITS_MEMBER(token_file) | 59 IPC_STRUCT_TRAITS_MEMBER(token_file) |
| 60 IPC_STRUCT_TRAITS_MEMBER(uid_file) | 60 IPC_STRUCT_TRAITS_MEMBER(uid_file) |
| 61 IPC_STRUCT_TRAITS_END() | 61 IPC_STRUCT_TRAITS_END() |
| 62 | 62 |
| 63 IPC_STRUCT_TRAITS_BEGIN(picasa::FolderINIContents) | 63 IPC_STRUCT_TRAITS_BEGIN(picasa::FolderINIContents) |
| 64 IPC_STRUCT_TRAITS_MEMBER(folder_path) | 64 IPC_STRUCT_TRAITS_MEMBER(folder_path) |
| 65 IPC_STRUCT_TRAITS_MEMBER(ini_contents) | 65 IPC_STRUCT_TRAITS_MEMBER(ini_contents) |
| 66 IPC_STRUCT_TRAITS_END() | 66 IPC_STRUCT_TRAITS_END() |
| 67 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 67 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 68 | 68 |
| 69 #if !defined(OS_ANDROID) && !defined(OS_IOS) | |
| 70 IPC_STRUCT_TRAITS_BEGIN(metadata::AttachedImage) | 69 IPC_STRUCT_TRAITS_BEGIN(metadata::AttachedImage) |
| 71 IPC_STRUCT_TRAITS_MEMBER(type) | 70 IPC_STRUCT_TRAITS_MEMBER(type) |
| 72 IPC_STRUCT_TRAITS_MEMBER(data) | 71 IPC_STRUCT_TRAITS_MEMBER(data) |
| 73 IPC_STRUCT_TRAITS_END() | 72 IPC_STRUCT_TRAITS_END() |
| 74 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | |
| 75 | 73 |
| 76 //------------------------------------------------------------------------------ | 74 //------------------------------------------------------------------------------ |
| 77 // Utility process messages: | 75 // Utility process messages: |
| 78 // These are messages from the browser to the utility process. | 76 // These are messages from the browser to the utility process. |
| 79 | 77 |
| 80 // Tells the utility process to unpack the given extension file in its | 78 // Tells the utility process to unpack the given extension file in its |
| 81 // directory and verify that it is valid. | 79 // directory and verify that it is valid. |
| 82 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, | 80 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, |
| 83 base::FilePath /* extension_filename */, | 81 base::FilePath /* extension_filename */, |
| 84 std::string /* extension_id */, | 82 std::string /* extension_id */, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase, | 121 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase, |
| 124 picasa::AlbumTableFilesForTransit /* album_table_files */) | 122 picasa::AlbumTableFilesForTransit /* album_table_files */) |
| 125 | 123 |
| 126 // Tells the utility process to index the Picasa user-created Album contents | 124 // Tells the utility process to index the Picasa user-created Album contents |
| 127 // by parsing all the INI files in Picasa Folders. | 125 // by parsing all the INI files in Picasa Folders. |
| 128 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents, | 126 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents, |
| 129 picasa::AlbumUIDSet /* album_uids */, | 127 picasa::AlbumUIDSet /* album_uids */, |
| 130 std::vector<picasa::FolderINIContents> /* folders_inis */) | 128 std::vector<picasa::FolderINIContents> /* folders_inis */) |
| 131 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 129 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 132 | 130 |
| 133 #if !defined(OS_ANDROID) && !defined(OS_IOS) | |
| 134 // Tell the utility process to attempt to validate the passed media file. The | 131 // Tell the utility process to attempt to validate the passed media file. The |
| 135 // file will undergo basic sanity checks and will be decoded for up to | 132 // file will undergo basic sanity checks and will be decoded for up to |
| 136 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode | 133 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode |
| 137 // the file in the browser process after this check. | 134 // the file in the browser process after this check. |
| 138 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile, | 135 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile, |
| 139 int64 /* milliseconds_of_decoding */, | 136 int64 /* milliseconds_of_decoding */, |
| 140 IPC::PlatformFileForTransit /* Media file to parse */) | 137 IPC::PlatformFileForTransit /* Media file to parse */) |
| 141 | 138 |
| 142 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_ParseMediaMetadata, | 139 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_ParseMediaMetadata, |
| 143 std::string /* mime_type */, | 140 std::string /* mime_type */, |
| 144 int64 /* total_size */, | 141 int64 /* total_size */, |
| 145 bool /* get_attached_images */) | 142 bool /* get_attached_images */) |
| 146 | 143 |
| 147 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished, | 144 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished, |
| 148 int64 /* request_id */, | 145 int64 /* request_id */, |
| 149 std::string /* bytes */) | 146 std::string /* bytes */) |
| 150 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | |
| 151 | 147 |
| 152 // Requests that the utility process write the contents of the source file to | 148 // Requests that the utility process write the contents of the source file to |
| 153 // the removable drive listed in the target file. The target will be restricted | 149 // the removable drive listed in the target file. The target will be restricted |
| 154 // to removable drives by the utility process. | 150 // to removable drives by the utility process. |
| 155 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write, | 151 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write, |
| 156 base::FilePath /* source file */, | 152 base::FilePath /* source file */, |
| 157 base::FilePath /* target file */) | 153 base::FilePath /* target file */) |
| 158 | 154 |
| 159 // Requests that the utility process verify that the contents of the source file | 155 // Requests that the utility process verify that the contents of the source file |
| 160 // was written to the target. As above the target will be restricted to | 156 // was written to the target. As above the target will be restricted to |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 bool /* parse_success */, | 232 bool /* parse_success */, |
| 237 std::vector<picasa::AlbumInfo> /* albums */, | 233 std::vector<picasa::AlbumInfo> /* albums */, |
| 238 std::vector<picasa::AlbumInfo> /* folders */) | 234 std::vector<picasa::AlbumInfo> /* folders */) |
| 239 | 235 |
| 240 // Reply after indexing the Picasa user-created Album contents by parsing all | 236 // Reply after indexing the Picasa user-created Album contents by parsing all |
| 241 // the INI files in Picasa Folders. | 237 // the INI files in Picasa Folders. |
| 242 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, | 238 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, |
| 243 picasa::AlbumImagesMap /* albums_images */) | 239 picasa::AlbumImagesMap /* albums_images */) |
| 244 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 240 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 245 | 241 |
| 246 #if !defined(OS_ANDROID) && !defined(OS_IOS) | |
| 247 // Reply after checking the passed media file. A true result indicates that | 242 // Reply after checking the passed media file. A true result indicates that |
| 248 // the file appears to be a well formed media file. | 243 // the file appears to be a well formed media file. |
| 249 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, | 244 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, |
| 250 bool /* passed_checks */) | 245 bool /* passed_checks */) |
| 251 | 246 |
| 252 IPC_MESSAGE_CONTROL3( | 247 IPC_MESSAGE_CONTROL3( |
| 253 ChromeUtilityHostMsg_ParseMediaMetadata_Finished, | 248 ChromeUtilityHostMsg_ParseMediaMetadata_Finished, |
| 254 bool /* parse_success */, | 249 bool /* parse_success */, |
| 255 base::DictionaryValue /* metadata */, | 250 base::DictionaryValue /* metadata */, |
| 256 std::vector<metadata::AttachedImage> /* attached_images */) | 251 std::vector<metadata::AttachedImage> /* attached_images */) |
| 257 | 252 |
| 258 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, | 253 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, |
| 259 int64 /* request_id */, | 254 int64 /* request_id */, |
| 260 int64 /* start_byte */, | 255 int64 /* start_byte */, |
| 261 int64 /* length */) | 256 int64 /* length */) |
| 262 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | |
| 263 | 257 |
| 264 // Reply when a write or verify operation succeeds. | 258 // Reply when a write or verify operation succeeds. |
| 265 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded) | 259 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded) |
| 266 | 260 |
| 267 // Reply when a write or verify operation has been fully cancelled. | 261 // Reply when a write or verify operation has been fully cancelled. |
| 268 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled) | 262 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled) |
| 269 | 263 |
| 270 // Reply when a write or verify operation fails to complete. | 264 // Reply when a write or verify operation fails to complete. |
| 271 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Failed, | 265 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Failed, |
| 272 std::string /* message */) | 266 std::string /* message */) |
| 273 | 267 |
| 274 // Periodic status update about the progress of an operation. | 268 // Periodic status update about the progress of an operation. |
| 275 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Progress, | 269 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Progress, |
| 276 int64 /* number of bytes processed */) | 270 int64 /* number of bytes processed */) |
| 277 | 271 |
| 278 #if defined(OS_WIN) | 272 #if defined(OS_WIN) |
| 279 // Get plain-text WiFi credentials from the system (requires UAC privilege | 273 // Get plain-text WiFi credentials from the system (requires UAC privilege |
| 280 // elevation). | 274 // elevation). |
| 281 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetWiFiCredentials, | 275 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetWiFiCredentials, |
| 282 std::string /* ssid */) | 276 std::string /* ssid */) |
| 283 | 277 |
| 284 // Reply after getting WiFi credentials from the system. |success| is false if | 278 // Reply after getting WiFi credentials from the system. |success| is false if |
| 285 // error occurred. | 279 // error occurred. |
| 286 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotWiFiCredentials, | 280 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotWiFiCredentials, |
| 287 std::string /* key_data */, | 281 std::string /* key_data */, |
| 288 bool /* success */) | 282 bool /* success */) |
| 289 #endif // defined(OS_WIN) | 283 #endif // defined(OS_WIN) |
| OLD | NEW |