diff options
author | avayvod@google.com <avayvod@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-15 18:31:22 +0000 |
---|---|---|
committer | avayvod@google.com <avayvod@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-15 18:31:22 +0000 |
commit | 79c2b56bcad7b23ccc25d2bc934887ea080b7a9d (patch) | |
tree | efc45fa2d3e5250849972bf90510f39efc7ec93d /chrome/common | |
parent | 26cfaf5d657b92f5f94eccc0a0b51c28caccbc5a (diff) | |
download | chromium_src-79c2b56bcad7b23ccc25d2bc934887ea080b7a9d.zip chromium_src-79c2b56bcad7b23ccc25d2bc934887ea080b7a9d.tar.gz chromium_src-79c2b56bcad7b23ccc25d2bc934887ea080b7a9d.tar.bz2 |
Added decoding of any supported image format into vector of chars.
This is used for decoding user's image downloaded from Google Profile
in sandboxed process upon user's login to Chromium OS.
This required adding dependency on webkit/glue/ in chrome/utility. Approved
by Brett.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1646004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/utility_messages_internal.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/common/utility_messages_internal.h b/chrome/common/utility_messages_internal.h index 46da384..5c3f971 100644 --- a/chrome/common/utility_messages_internal.h +++ b/chrome/common/utility_messages_internal.h @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <string> +#include <vector> + // This header is meant to be included in multiple passes, hence no traditional // header guard. It is included by utility_messages_internal.h // See ipc_message_macros.h for explanation of the macros and passes. @@ -10,6 +13,8 @@ // from it via utility_messages.h. #include "ipc/ipc_message_macros.h" +#include "third_party/skia/include/core/SkBitmap.h" + //------------------------------------------------------------------------------ // Utility process messages: // These are messages from the browser to the utility process. @@ -29,6 +34,9 @@ IPC_BEGIN_MESSAGES(Utility) IPC_MESSAGE_CONTROL1(UtilityMsg_ParseUpdateManifest, std::string /* xml document contents */) + // Tell the utility process to decode the given image data. + IPC_MESSAGE_CONTROL1(UtilityMsg_DecodeImage, + std::vector<unsigned char>) // encoded image contents IPC_END_MESSAGES(Utility) //------------------------------------------------------------------------------ @@ -70,4 +78,10 @@ IPC_BEGIN_MESSAGES(UtilityHost) IPC_MESSAGE_CONTROL1(UtilityHostMsg_ParseUpdateManifest_Failed, std::string /* error_message, if any */) + // Reply when the utility process has succeeded in decoding the image. + IPC_MESSAGE_CONTROL1(UtilityHostMsg_DecodeImage_Succeeded, + SkBitmap) // decoded image + + // Reply when an error occured decoding the image. + IPC_MESSAGE_CONTROL0(UtilityHostMsg_DecodeImage_Failed) IPC_END_MESSAGES(UtilityHost) |