| 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 | 8 |
| 9 #include "extensions/common/update_manifest.h" | 9 #include "extensions/common/update_manifest.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 IPC_STRUCT_TRAITS_END() | 34 IPC_STRUCT_TRAITS_END() |
| 35 | 35 |
| 36 //------------------------------------------------------------------------------ | 36 //------------------------------------------------------------------------------ |
| 37 // Utility process messages: | 37 // Utility process messages: |
| 38 // These are messages from the browser to the utility process. | 38 // These are messages from the browser to the utility process. |
| 39 | 39 |
| 40 // Tell the utility process to parse the given xml document. | 40 // Tell the utility process to parse the given xml document. |
| 41 IPC_MESSAGE_CONTROL1(ExtensionUtilityMsg_ParseUpdateManifest, | 41 IPC_MESSAGE_CONTROL1(ExtensionUtilityMsg_ParseUpdateManifest, |
| 42 std::string /* xml document contents */) | 42 std::string /* xml document contents */) |
| 43 | 43 |
| 44 // Tells the utility process to unpack the given extension file in its |
| 45 // directory and verify that it is valid. |
| 46 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, |
| 47 base::FilePath /* extension_filename */, |
| 48 std::string /* extension_id */, |
| 49 int /* Manifest::Location */, |
| 50 int /* InitFromValue flags */) |
| 51 |
| 44 //------------------------------------------------------------------------------ | 52 //------------------------------------------------------------------------------ |
| 45 // Utility process host messages: | 53 // Utility process host messages: |
| 46 // These are messages from the utility process to the browser. | 54 // These are messages from the utility process to the browser. |
| 47 | 55 |
| 48 // Reply when the utility process has succeeded in parsing an update manifest | 56 // Reply when the utility process has succeeded in parsing an update manifest |
| 49 // xml document. | 57 // xml document. |
| 50 IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Succeeded, | 58 IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Succeeded, |
| 51 UpdateManifest::Results /* updates */) | 59 UpdateManifest::Results /* updates */) |
| 52 | 60 |
| 53 // Reply when an error occurred parsing the update manifest. |error_message| | 61 // Reply when an error occurred parsing the update manifest. |error_message| |
| 54 // is a description of what went wrong suitable for logging. | 62 // is a description of what went wrong suitable for logging. |
| 55 IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Failed, | 63 IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Failed, |
| 56 std::string /* error_message, if any */) | 64 std::string /* error_message, if any */) |
| 65 |
| 66 // Reply when the utility process is done unpacking an extension. |manifest| |
| 67 // is the parsed manifest.json file. |
| 68 // The unpacker should also have written out files containing the decoded |
| 69 // images and message catalogs from the extension. The data is written into a |
| 70 // DecodedImages struct into a file named kDecodedImagesFilename in the |
| 71 // directory that was passed in. This is done because the data is too large to |
| 72 // pass over IPC. |
| 73 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Succeeded, |
| 74 base::DictionaryValue /* manifest */) |
| 75 |
| 76 // Reply when the utility process has failed while unpacking an extension. |
| 77 // |error_message| is a user-displayable explanation of what went wrong. |
| 78 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Failed, |
| 79 base::string16 /* error_message, if any */) |
| OLD | NEW |