summaryrefslogtreecommitdiffstats
path: root/chrome/browser/utility_process_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/utility_process_host.cc')
-rw-r--r--chrome/browser/utility_process_host.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/utility_process_host.cc b/chrome/browser/utility_process_host.cc
index 1766b7e..2f7ce5d 100644
--- a/chrome/browser/utility_process_host.cc
+++ b/chrome/browser/utility_process_host.cc
@@ -51,6 +51,15 @@ bool UtilityProcessHost::StartUpdateManifestParse(const std::string& xml) {
return true;
}
+bool UtilityProcessHost::StartImageDecoding(
+ const std::vector<unsigned char>& encoded_data) {
+ if (!StartProcess(FilePath()))
+ return false;
+
+ Send(new UtilityMsg_DecodeImage(encoded_data));
+ return true;
+}
+
FilePath UtilityProcessHost::GetUtilityProcessCmd() {
return GetChildPath(true);
}
@@ -146,5 +155,9 @@ void UtilityProcessHost::Client::OnMessageReceived(
Client::OnParseUpdateManifestSucceeded)
IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed,
Client::OnParseUpdateManifestFailed)
+ IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded,
+ Client::OnDecodeImageSucceeded)
+ IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed,
+ Client::OnDecodeImageFailed)
IPC_END_MESSAGE_MAP_EX()
}