Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2386)

Unified Diff: chrome/browser/extensions/webstore_install_helper.h

Issue 865543002: WIP: Browser image decoding using Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add DecodeImageBase64. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/webstore_install_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | chrome/browser/extensions/webstore_install_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698