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

Issue 263563003: Add referrer & load flag support to BitmapFetcher class. (Closed)

Created:
6 years, 7 months ago by Kibeom Kim (inactive)
Modified:
6 years, 7 months ago
Reviewers:
stuartmorgan, sky
CC:
chromium-reviews, darin-cc_chromium.org, erikchen, Yaron, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add referrer & load flag support to BitmapFetcher class. BitmapFetcher only had net::URLRequestContextGetter argument for fetching. Add referrer, referrer policy, and load flags arguments for more sophisticated fetching control. This will be used for downloading salient images background for enhanced bookmark experiment. BUG=368034 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268802

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : remove temp comments #

Total comments: 4

Patch Set 4 : added comments #

Patch Set 5 : used blink::WebSecurityPolicy::generateReferrerHeader instead #

Patch Set 6 : removed unused headers #

Patch Set 7 : call SanitizeReferrer #

Patch Set 8 : Removed referrer policy handling code and now caller is responsible for that. #

Patch Set 9 : comment update #

Total comments: 2

Patch Set 10 : Use new start function only #

Total comments: 6

Patch Set 11 : "" -> string() and load_flags comment #

Patch Set 12 : rebase #

Patch Set 13 : include "net/base/load_flags.h" in image_holder.cc #

Patch Set 14 : add another missing header #

Patch Set 15 : include another missing header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -10 lines) Patch
M chrome/browser/android/banners/app_banner_manager.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/bitmap_fetcher.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/bitmap_fetcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/bitmap_fetcher_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/image_holder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_avatar_downloader.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Kibeom Kim (inactive)
jam@ : One question: ios had ReferrerHeaderUrlForNavigation(..) as an independent static function, but this functionality ...
6 years, 7 months ago (2014-04-30 00:58:56 UTC) #1
jam
please see the guidelines for the content api: http://www.chromium.org/developers/content-module/content-api since this new method is only ...
6 years, 7 months ago (2014-04-30 16:00:57 UTC) #2
Kibeom Kim (inactive)
+sky jam->cc (as I removed content/*) Removed policy handling code, and made it caller's responsibility ...
6 years, 7 months ago (2014-05-05 23:17:13 UTC) #3
sky
https://codereview.chromium.org/263563003/diff/150001/chrome/browser/bitmap_fetcher.h File chrome/browser/bitmap_fetcher.h (right): https://codereview.chromium.org/263563003/diff/150001/chrome/browser/bitmap_fetcher.h#newcode41 chrome/browser/bitmap_fetcher.h:41: void Start(net::URLRequestContextGetter* request_context, Can you convert callers to this ...
6 years, 7 months ago (2014-05-06 00:30:47 UTC) #4
Kibeom Kim (inactive)
https://codereview.chromium.org/263563003/diff/150001/chrome/browser/bitmap_fetcher.h File chrome/browser/bitmap_fetcher.h (right): https://codereview.chromium.org/263563003/diff/150001/chrome/browser/bitmap_fetcher.h#newcode41 chrome/browser/bitmap_fetcher.h:41: void Start(net::URLRequestContextGetter* request_context, On 2014/05/06 00:30:47, sky wrote: > ...
6 years, 7 months ago (2014-05-06 01:48:51 UTC) #5
sky
LGTM https://codereview.chromium.org/263563003/diff/170001/chrome/browser/android/banners/app_banner_manager.cc File chrome/browser/android/banners/app_banner_manager.cc (right): https://codereview.chromium.org/263563003/diff/170001/chrome/browser/android/banners/app_banner_manager.cc#newcode140 chrome/browser/android/banners/app_banner_manager.cc:140: "", ""->std::string() https://codereview.chromium.org/263563003/diff/170001/chrome/browser/bitmap_fetcher.h File chrome/browser/bitmap_fetcher.h (right): https://codereview.chromium.org/263563003/diff/170001/chrome/browser/bitmap_fetcher.h#newcode36 chrome/browser/bitmap_fetcher.h:36: ...
6 years, 7 months ago (2014-05-06 15:24:20 UTC) #6
Kibeom Kim (inactive)
https://codereview.chromium.org/263563003/diff/170001/chrome/browser/android/banners/app_banner_manager.cc File chrome/browser/android/banners/app_banner_manager.cc (right): https://codereview.chromium.org/263563003/diff/170001/chrome/browser/android/banners/app_banner_manager.cc#newcode140 chrome/browser/android/banners/app_banner_manager.cc:140: "", On 2014/05/06 15:24:20, sky wrote: > ""->std::string() Done. ...
6 years, 7 months ago (2014-05-06 18:07:13 UTC) #7
Kibeom Kim (inactive)
The CQ bit was checked by kkimlabs@chromium.org
6 years, 7 months ago (2014-05-06 18:07:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkimlabs@chromium.org/263563003/190001
6 years, 7 months ago (2014-05-06 18:08:12 UTC) #9
Kibeom Kim (inactive)
The CQ bit was unchecked by kkimlabs@chromium.org
6 years, 7 months ago (2014-05-06 18:50:14 UTC) #10
Kibeom Kim (inactive)
The CQ bit was checked by kkimlabs@chromium.org
6 years, 7 months ago (2014-05-06 19:02:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkimlabs@chromium.org/263563003/230001
6 years, 7 months ago (2014-05-06 19:04:36 UTC) #12
Kibeom Kim (inactive)
The CQ bit was checked by kkimlabs@chromium.org
6 years, 7 months ago (2014-05-06 23:46:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkimlabs@chromium.org/263563003/250001
6 years, 7 months ago (2014-05-06 23:47:34 UTC) #14
Kibeom Kim (inactive)
The CQ bit was checked by kkimlabs@chromium.org
6 years, 7 months ago (2014-05-07 00:14:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkimlabs@chromium.org/263563003/270001
6 years, 7 months ago (2014-05-07 00:17:47 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-07 06:21:27 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 16:19:42 UTC) #18
Message was sent while issue was closed.
Change committed as 268802

Powered by Google App Engine
This is Rietveld 408576698