Index: chrome/browser/extensions/webstore_install_helper.h |
diff --git a/chrome/browser/extensions/webstore_install_helper.h b/chrome/browser/extensions/webstore_install_helper.h |
index 36cdd2440299d98d6934e9a2c5d51a9a49319e13..ccf0b666a6b834f559930c4f816a880eaba7a275 100644 |
--- a/chrome/browser/extensions/webstore_install_helper.h |
+++ b/chrome/browser/extensions/webstore_install_helper.h |
@@ -9,13 +9,12 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
+#include "content/common/image_decoder.mojom.h" |
#include "content/public/browser/utility_process_host_client.h" |
#include "net/url_request/url_fetcher_delegate.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "url/gurl.h" |
-class SkBitmap; |
- |
namespace base { |
class DictionaryValue; |
class ListValue; |
@@ -90,8 +89,7 @@ class WebstoreInstallHelper : public content::UtilityProcessHostClient, |
bool OnMessageReceived(const IPC::Message& message) override; |
// Message handlers. |
- void OnDecodeImageSucceeded(const SkBitmap& decoded_image); |
- void OnDecodeImageFailed(); |
+ void OnDecodeImageDone(bool success, content::ImageDataPtr image); |
void OnJSONParseSucceeded(const base::ListValue& wrapper); |
void OnJSONParseFailed(const std::string& error_message); |
@@ -117,6 +115,7 @@ class WebstoreInstallHelper : public content::UtilityProcessHostClient, |
net::URLRequestContextGetter* context_getter_; // Only usable on UI thread. |
base::WeakPtr<content::UtilityProcessHost> utility_host_; |
+ content::ImageDecoderPtr image_decoder_; |
// Flags for whether we're done doing icon decoding and manifest parsing. |
bool icon_decode_complete_; |