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

Unified Diff: components/image_fetcher/image_fetcher_impl.h

Issue 2715153006: Set desired_image_size when decoding images for NTP Tile icons. (Closed)
Patch Set: comment formatting Created 3 years, 10 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 | « components/image_fetcher/image_fetcher.h ('k') | components/image_fetcher/image_fetcher_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/image_fetcher/image_fetcher_impl.h
diff --git a/components/image_fetcher/image_fetcher_impl.h b/components/image_fetcher/image_fetcher_impl.h
index 8c92d91705ffed0be6f836e8577cc2d3cfd59ed0..16b348f854e177d8ed309a2869621d58092dd36f 100644
--- a/components/image_fetcher/image_fetcher_impl.h
+++ b/components/image_fetcher/image_fetcher_impl.h
@@ -16,6 +16,7 @@
#include "components/image_fetcher/image_data_fetcher.h"
#include "components/image_fetcher/image_decoder.h"
#include "components/image_fetcher/image_fetcher.h"
+#include "ui/gfx/geometry/size.h"
#include "url/gurl.h"
namespace gfx {
@@ -44,6 +45,8 @@ class ImageFetcherImpl : public image_fetcher::ImageFetcher {
// Sets a service name against which to track data usage.
void SetDataUseServiceName(DataUseServiceName data_use_service_name) override;
+ void SetDesiredImageFrameSize(const gfx::Size& size) override;
+
void StartOrQueueNetworkRequest(
const std::string& id,
const GURL& image_url,
@@ -83,9 +86,10 @@ class ImageFetcherImpl : public image_fetcher::ImageFetcher {
// creating callbacks that are passed to the ImageDecoder.
void OnImageDecoded(const GURL& image_url, const gfx::Image& image);
-
ImageFetcherDelegate* delegate_;
+ gfx::Size desired_image_frame_size_;
+
scoped_refptr<net::URLRequestContextGetter> url_request_context_;
std::unique_ptr<ImageDecoder> image_decoder_;
« no previous file with comments | « components/image_fetcher/image_fetcher.h ('k') | components/image_fetcher/image_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698