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

Unified Diff: components/image_fetcher/core/image_fetcher_impl.h

Issue 2781473003: Add |SetImageDownloadLimit| to ImageFetcher to limit downloaded bytes (Closed)
Patch Set: Add |SetImageDownloadLimit| to ImageDataFetcher Created 3 years, 9 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
Index: components/image_fetcher/core/image_fetcher_impl.h
diff --git a/components/image_fetcher/core/image_fetcher_impl.h b/components/image_fetcher/core/image_fetcher_impl.h
index 8daf335665d5d9956f6874550ed5ef1387e45f32..2ce36d1feb9a1db75ad4d32b02f56e1e1691958e 100644
--- a/components/image_fetcher/core/image_fetcher_impl.h
+++ b/components/image_fetcher/core/image_fetcher_impl.h
@@ -46,6 +46,8 @@ class ImageFetcherImpl : public image_fetcher::ImageFetcher {
void SetDesiredImageFrameSize(const gfx::Size& size) override;
+ void SetImageDownloadLimit(int64_t max_download_bytes) override;
+
void StartOrQueueNetworkRequest(
const std::string& id,
const GURL& image_url,

Powered by Google App Engine
This is Rietveld 408576698