| 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> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 91 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 92 | 92 |
| 93 // Tell the utility process to attempt to validate the passed media file. The | 93 // Tell the utility process to attempt to validate the passed media file. The |
| 94 // file will undergo basic sanity checks and will be decoded for up to | 94 // file will undergo basic sanity checks and will be decoded for up to |
| 95 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode | 95 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode |
| 96 // the file in the browser process after this check. | 96 // the file in the browser process after this check. |
| 97 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile, | 97 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile, |
| 98 int64_t /* milliseconds_of_decoding */, | 98 int64_t /* milliseconds_of_decoding */, |
| 99 IPC::PlatformFileForTransit /* Media file to parse */) | 99 IPC::PlatformFileForTransit /* Media file to parse */) |
| 100 | 100 |
| 101 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_ParseMediaMetadata, | |
| 102 std::string /* mime_type */, | |
| 103 int64_t /* total_size */, | |
| 104 bool /* get_attached_images */) | |
| 105 | |
| 106 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished, | 101 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished, |
| 107 int64_t /* request_id */, | 102 int64_t /* request_id */, |
| 108 std::string /* bytes */) | 103 std::string /* bytes */) |
| 109 | 104 |
| 110 // Requests that the utility process write the contents of the source file to | 105 // Requests that the utility process write the contents of the source file to |
| 111 // the removable drive listed in the target file. The target will be restricted | 106 // the removable drive listed in the target file. The target will be restricted |
| 112 // to removable drives by the utility process. | 107 // to removable drives by the utility process. |
| 113 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write, | 108 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write, |
| 114 base::FilePath /* source file */, | 109 base::FilePath /* source file */, |
| 115 base::FilePath /* target file */) | 110 base::FilePath /* target file */) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // the INI files in Picasa Folders. | 148 // the INI files in Picasa Folders. |
| 154 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, | 149 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, |
| 155 picasa::AlbumImagesMap /* albums_images */) | 150 picasa::AlbumImagesMap /* albums_images */) |
| 156 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 151 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 157 | 152 |
| 158 // Reply after checking the passed media file. A true result indicates that | 153 // Reply after checking the passed media file. A true result indicates that |
| 159 // the file appears to be a well formed media file. | 154 // the file appears to be a well formed media file. |
| 160 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, | 155 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, |
| 161 bool /* passed_checks */) | 156 bool /* passed_checks */) |
| 162 | 157 |
| 163 IPC_MESSAGE_CONTROL3( | |
| 164 ChromeUtilityHostMsg_ParseMediaMetadata_Finished, | |
| 165 bool /* parse_success */, | |
| 166 base::DictionaryValue /* metadata */, | |
| 167 std::vector<metadata::AttachedImage> /* attached_images */) | |
| 168 | |
| 169 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, | 158 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, |
| 170 int64_t /* request_id */, | 159 int64_t /* request_id */, |
| 171 int64_t /* start_byte */, | 160 int64_t /* start_byte */, |
| 172 int64_t /* length */) | 161 int64_t /* length */) |
| 173 | 162 |
| 174 // Reply when a write or verify operation succeeds. | 163 // Reply when a write or verify operation succeeds. |
| 175 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded) | 164 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded) |
| 176 | 165 |
| 177 // Reply when a write or verify operation has been fully cancelled. | 166 // Reply when a write or verify operation has been fully cancelled. |
| 178 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled) | 167 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 190 // elevation). | 179 // elevation). |
| 191 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetWiFiCredentials, | 180 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetWiFiCredentials, |
| 192 std::string /* ssid */) | 181 std::string /* ssid */) |
| 193 | 182 |
| 194 // Reply after getting WiFi credentials from the system. |success| is false if | 183 // Reply after getting WiFi credentials from the system. |success| is false if |
| 195 // error occurred. | 184 // error occurred. |
| 196 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotWiFiCredentials, | 185 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotWiFiCredentials, |
| 197 std::string /* key_data */, | 186 std::string /* key_data */, |
| 198 bool /* success */) | 187 bool /* success */) |
| 199 #endif // defined(OS_WIN) | 188 #endif // defined(OS_WIN) |
| OLD | NEW |