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

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

Issue 2781473003: Add |SetImageDownloadLimit| to ImageFetcher to limit downloaded bytes (Closed)
Patch Set: Test fix: Mock pure virtual Setter in CrOS notification test 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
« no previous file with comments | « components/image_fetcher/core/image_fetcher.h ('k') | components/image_fetcher/core/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/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..697217c7f791d5afd91e8de0328f2bda50d07de7 100644
--- a/components/image_fetcher/core/image_fetcher_impl.h
+++ b/components/image_fetcher/core/image_fetcher_impl.h
@@ -46,6 +46,9 @@ class ImageFetcherImpl : public image_fetcher::ImageFetcher {
void SetDesiredImageFrameSize(const gfx::Size& size) override;
+ void SetImageDownloadLimit(
+ base::Optional<int64_t> max_download_bytes) override;
+
void StartOrQueueNetworkRequest(
const std::string& id,
const GURL& image_url,
« no previous file with comments | « components/image_fetcher/core/image_fetcher.h ('k') | components/image_fetcher/core/image_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698