diff options
author | asargent <asargent@chromium.org> | 2015-01-27 15:43:29 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-27 23:44:42 +0000 |
commit | 275faaaa9d7ceadaa660e113a3a799b942c1e297 (patch) | |
tree | 998a329359ae0664f0f32f5f5299c1c93ce48c92 /extensions/common/extension_utility_messages.h | |
parent | 151e70d6fbf2c524959bb225d86a557204571105 (diff) | |
download | chromium_src-275faaaa9d7ceadaa660e113a3a799b942c1e297.zip chromium_src-275faaaa9d7ceadaa660e113a3a799b942c1e297.tar.gz chromium_src-275faaaa9d7ceadaa660e113a3a799b942c1e297.tar.bz2 |
Move sandboxed_unpacker.{h,cc} from chrome/ to extensions/
This is a mostly mechanical change to move these files over, and
make corresponding changes to strings, build files, and include paths.
BUG=447014
Review URL: https://codereview.chromium.org/864093002
Cr-Commit-Position: refs/heads/master@{#313404}
Diffstat (limited to 'extensions/common/extension_utility_messages.h')
-rw-r--r-- | extensions/common/extension_utility_messages.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/extensions/common/extension_utility_messages.h b/extensions/common/extension_utility_messages.h index 123fc98..35e37a3 100644 --- a/extensions/common/extension_utility_messages.h +++ b/extensions/common/extension_utility_messages.h @@ -41,6 +41,14 @@ IPC_STRUCT_TRAITS_END() IPC_MESSAGE_CONTROL1(ExtensionUtilityMsg_ParseUpdateManifest, std::string /* xml document contents */) +// Tells the utility process to unpack the given extension file in its +// directory and verify that it is valid. +IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, + base::FilePath /* extension_filename */, + std::string /* extension_id */, + int /* Manifest::Location */, + int /* InitFromValue flags */) + //------------------------------------------------------------------------------ // Utility process host messages: // These are messages from the utility process to the browser. @@ -54,3 +62,18 @@ IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Succeeded, // is a description of what went wrong suitable for logging. IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Failed, std::string /* error_message, if any */) + +// Reply when the utility process is done unpacking an extension. |manifest| +// is the parsed manifest.json file. +// The unpacker should also have written out files containing the decoded +// images and message catalogs from the extension. The data is written into a +// DecodedImages struct into a file named kDecodedImagesFilename in the +// directory that was passed in. This is done because the data is too large to +// pass over IPC. +IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Succeeded, + base::DictionaryValue /* manifest */) + +// Reply when the utility process has failed while unpacking an extension. +// |error_message| is a user-displayable explanation of what went wrong. +IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Failed, + base::string16 /* error_message, if any */) |