DescriptionAdd |SetImageDownloadLimit| to ImageFetcher to limit downloaded bytes
By calling SetImageDownloadLimit, the ImageFetcher will cancel requests
that exceed the given byte size. This affects currently running and
upcoming requests.
The limit can be disabled by calling it with negative limits.
By default, there is no limit set. Therefore, all existing users of
image_data_fetchers are not affected.
TBR'ing for ownership of two tests. The added functions are never used and exist just to implement the interface so the compiler is happy.
TBR=sky@chromium.org
BUG=702601
Review-Url: https://codereview.chromium.org/2781473003
Cr-Commit-Position: refs/heads/master@{#460059}
Committed: https://chromium.googlesource.com/chromium/src/+/281080243642ac41b1004f9d8c6363db6081bbfa
Patch Set 1 : Add |SetImageDownloadLimit| to ImageDataFetcher #
Total comments: 36
Patch Set 2 : Use base::Optional<int64_t> #
Total comments: 8
Patch Set 3 : Remove "immediate" and const #Patch Set 4 : s/LOG/DLOG #Patch Set 5 : Test fix: Mock pure virtual Setter in CrOS notification test #Messages
Total messages: 28 (13 generated)
|