| 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 <stdint.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "build/build_config.h" |
| 12 #include "chrome/common/media_galleries/iphoto_library.h" | 14 #include "chrome/common/media_galleries/iphoto_library.h" |
| 13 #include "chrome/common/media_galleries/itunes_library.h" | 15 #include "chrome/common/media_galleries/itunes_library.h" |
| 14 #include "chrome/common/media_galleries/metadata_types.h" | 16 #include "chrome/common/media_galleries/metadata_types.h" |
| 15 #include "chrome/common/media_galleries/picasa_types.h" | 17 #include "chrome/common/media_galleries/picasa_types.h" |
| 16 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
| 17 #include "ipc/ipc_platform_file.h" | 19 #include "ipc/ipc_platform_file.h" |
| 18 | 20 |
| 19 #if !defined(ENABLE_EXTENSIONS) | 21 #if !defined(ENABLE_EXTENSIONS) |
| 20 #error "Extensions must be enabled" | 22 #error "Extensions must be enabled" |
| 21 #endif | 23 #endif |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents, | 108 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents, |
| 107 picasa::AlbumUIDSet /* album_uids */, | 109 picasa::AlbumUIDSet /* album_uids */, |
| 108 std::vector<picasa::FolderINIContents> /* folders_inis */) | 110 std::vector<picasa::FolderINIContents> /* folders_inis */) |
| 109 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 111 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 110 | 112 |
| 111 // Tell the utility process to attempt to validate the passed media file. The | 113 // Tell the utility process to attempt to validate the passed media file. The |
| 112 // file will undergo basic sanity checks and will be decoded for up to | 114 // file will undergo basic sanity checks and will be decoded for up to |
| 113 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode | 115 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode |
| 114 // the file in the browser process after this check. | 116 // the file in the browser process after this check. |
| 115 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile, | 117 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile, |
| 116 int64 /* milliseconds_of_decoding */, | 118 int64_t /* milliseconds_of_decoding */, |
| 117 IPC::PlatformFileForTransit /* Media file to parse */) | 119 IPC::PlatformFileForTransit /* Media file to parse */) |
| 118 | 120 |
| 119 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_ParseMediaMetadata, | 121 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_ParseMediaMetadata, |
| 120 std::string /* mime_type */, | 122 std::string /* mime_type */, |
| 121 int64 /* total_size */, | 123 int64_t /* total_size */, |
| 122 bool /* get_attached_images */) | 124 bool /* get_attached_images */) |
| 123 | 125 |
| 124 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished, | 126 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished, |
| 125 int64 /* request_id */, | 127 int64_t /* request_id */, |
| 126 std::string /* bytes */) | 128 std::string /* bytes */) |
| 127 | 129 |
| 128 // Requests that the utility process write the contents of the source file to | 130 // Requests that the utility process write the contents of the source file to |
| 129 // the removable drive listed in the target file. The target will be restricted | 131 // the removable drive listed in the target file. The target will be restricted |
| 130 // to removable drives by the utility process. | 132 // to removable drives by the utility process. |
| 131 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write, | 133 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write, |
| 132 base::FilePath /* source file */, | 134 base::FilePath /* source file */, |
| 133 base::FilePath /* target file */) | 135 base::FilePath /* target file */) |
| 134 | 136 |
| 135 // Requests that the utility process verify that the contents of the source file | 137 // Requests that the utility process verify that the contents of the source file |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, | 188 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, |
| 187 bool /* passed_checks */) | 189 bool /* passed_checks */) |
| 188 | 190 |
| 189 IPC_MESSAGE_CONTROL3( | 191 IPC_MESSAGE_CONTROL3( |
| 190 ChromeUtilityHostMsg_ParseMediaMetadata_Finished, | 192 ChromeUtilityHostMsg_ParseMediaMetadata_Finished, |
| 191 bool /* parse_success */, | 193 bool /* parse_success */, |
| 192 base::DictionaryValue /* metadata */, | 194 base::DictionaryValue /* metadata */, |
| 193 std::vector<metadata::AttachedImage> /* attached_images */) | 195 std::vector<metadata::AttachedImage> /* attached_images */) |
| 194 | 196 |
| 195 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, | 197 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, |
| 196 int64 /* request_id */, | 198 int64_t /* request_id */, |
| 197 int64 /* start_byte */, | 199 int64_t /* start_byte */, |
| 198 int64 /* length */) | 200 int64_t /* length */) |
| 199 | 201 |
| 200 // Reply when a write or verify operation succeeds. | 202 // Reply when a write or verify operation succeeds. |
| 201 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded) | 203 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded) |
| 202 | 204 |
| 203 // Reply when a write or verify operation has been fully cancelled. | 205 // Reply when a write or verify operation has been fully cancelled. |
| 204 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled) | 206 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled) |
| 205 | 207 |
| 206 // Reply when a write or verify operation fails to complete. | 208 // Reply when a write or verify operation fails to complete. |
| 207 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Failed, | 209 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Failed, |
| 208 std::string /* message */) | 210 std::string /* message */) |
| 209 | 211 |
| 210 // Periodic status update about the progress of an operation. | 212 // Periodic status update about the progress of an operation. |
| 211 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Progress, | 213 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Progress, |
| 212 int64 /* number of bytes processed */) | 214 int64_t /* number of bytes processed */) |
| 213 | 215 |
| 214 #if defined(OS_WIN) | 216 #if defined(OS_WIN) |
| 215 // Get plain-text WiFi credentials from the system (requires UAC privilege | 217 // Get plain-text WiFi credentials from the system (requires UAC privilege |
| 216 // elevation). | 218 // elevation). |
| 217 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetWiFiCredentials, | 219 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetWiFiCredentials, |
| 218 std::string /* ssid */) | 220 std::string /* ssid */) |
| 219 | 221 |
| 220 // Reply after getting WiFi credentials from the system. |success| is false if | 222 // Reply after getting WiFi credentials from the system. |success| is false if |
| 221 // error occurred. | 223 // error occurred. |
| 222 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotWiFiCredentials, | 224 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotWiFiCredentials, |
| 223 std::string /* key_data */, | 225 std::string /* key_data */, |
| 224 bool /* success */) | 226 bool /* success */) |
| 225 #endif // defined(OS_WIN) | 227 #endif // defined(OS_WIN) |
| OLD | NEW |