| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // These are messages from the browser to the utility process. | 92 // These are messages from the browser to the utility process. |
| 93 | 93 |
| 94 // Tells the utility process to unpack the given extension file in its | 94 // Tells the utility process to unpack the given extension file in its |
| 95 // directory and verify that it is valid. | 95 // directory and verify that it is valid. |
| 96 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, | 96 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, |
| 97 base::FilePath /* extension_filename */, | 97 base::FilePath /* extension_filename */, |
| 98 std::string /* extension_id */, | 98 std::string /* extension_id */, |
| 99 int /* Manifest::Location */, | 99 int /* Manifest::Location */, |
| 100 int /* InitFromValue flags */) | 100 int /* InitFromValue flags */) |
| 101 | 101 |
| 102 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_UnzipToDir, |
| 103 base::FilePath /* zip_file */, |
| 104 base::FilePath /* dir */) |
| 105 |
| 102 // Tell the utility process to parse the given xml document. | 106 // Tell the utility process to parse the given xml document. |
| 103 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseUpdateManifest, | 107 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseUpdateManifest, |
| 104 std::string /* xml document contents */) | 108 std::string /* xml document contents */) |
| 105 | 109 |
| 106 // Tell the utility process to decode the given image data, which is base64 | 110 // Tell the utility process to decode the given image data, which is base64 |
| 107 // encoded. | 111 // encoded. |
| 108 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, | 112 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, |
| 109 std::string) // base64 encoded image contents | 113 std::string) // base64 encoded image contents |
| 110 | 114 |
| 111 // Tell the utility process to parse a JSON string into a Value object. | 115 // Tell the utility process to parse a JSON string into a Value object. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // directory that was passed in. This is done because the data is too large to | 196 // directory that was passed in. This is done because the data is too large to |
| 193 // pass over IPC. | 197 // pass over IPC. |
| 194 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Succeeded, | 198 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Succeeded, |
| 195 base::DictionaryValue /* manifest */) | 199 base::DictionaryValue /* manifest */) |
| 196 | 200 |
| 197 // Reply when the utility process has failed while unpacking an extension. | 201 // Reply when the utility process has failed while unpacking an extension. |
| 198 // |error_message| is a user-displayable explanation of what went wrong. | 202 // |error_message| is a user-displayable explanation of what went wrong. |
| 199 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Failed, | 203 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Failed, |
| 200 base::string16 /* error_message, if any */) | 204 base::string16 /* error_message, if any */) |
| 201 | 205 |
| 206 // Reply when the utility process is done unzipping a file. |unpacked_path| |
| 207 // is the directory which contains the unzipped contents. |
| 208 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnzipToDir_Succeeded, |
| 209 base::FilePath /* unpacked_path */) |
| 210 |
| 211 // Reply when the utility process failed to unzip a file. |error| contains |
| 212 // an error string to be reported to the user. |
| 213 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnzipToDir_Failed, |
| 214 std::string /* error */) |
| 215 |
| 202 // Reply when the utility process has succeeded in parsing an update manifest | 216 // Reply when the utility process has succeeded in parsing an update manifest |
| 203 // xml document. | 217 // xml document. |
| 204 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Succeeded, | 218 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Succeeded, |
| 205 UpdateManifest::Results /* updates */) | 219 UpdateManifest::Results /* updates */) |
| 206 | 220 |
| 207 // Reply when an error occurred parsing the update manifest. |error_message| | 221 // Reply when an error occurred parsing the update manifest. |error_message| |
| 208 // is a description of what went wrong suitable for logging. | 222 // is a description of what went wrong suitable for logging. |
| 209 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Failed, | 223 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Failed, |
| 210 std::string /* error_message, if any */) | 224 std::string /* error_message, if any */) |
| 211 | 225 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, | 309 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, |
| 296 std::string /* ssid */, | 310 std::string /* ssid */, |
| 297 std::vector<uint8> /* public_key */) | 311 std::vector<uint8> /* public_key */) |
| 298 | 312 |
| 299 // Reply after getting WiFi credentials from the system and encrypting them with | 313 // Reply after getting WiFi credentials from the system and encrypting them with |
| 300 // caller's public key. |success| is false if error occurred. | 314 // caller's public key. |success| is false if error occurred. |
| 301 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, | 315 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, |
| 302 std::vector<uint8> /* encrypted_key_data */, | 316 std::vector<uint8> /* encrypted_key_data */, |
| 303 bool /* success */) | 317 bool /* success */) |
| 304 #endif // defined(OS_WIN) | 318 #endif // defined(OS_WIN) |
| OLD | NEW |