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

Issue 319623003: [AiS] ImageService (Closed)

Created:
6 years, 6 months ago by groby-ooo-7-16
Modified:
6 years ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, James Su, Maria, Justin Donnelly, Ted C, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[AiS] ImageService Add a service to request & cache images for Answers in Suggest. This service allows the UI thread to request images that are fetched via http(s) and then decoded in a render process, caching the most recent images to avoid repeated network requests. BUG=380916 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278311

Patch Set 1 #

Patch Set 2 : Add missing unit test. #

Patch Set 3 : Add tests & fix formatting. #

Patch Set 4 : Move/rename service. #

Total comments: 45

Patch Set 5 : Rebase to HEAD #

Patch Set 6 : Forwarding header. #

Patch Set 7 : Review fixes. #

Patch Set 8 : Fixed typo. #

Total comments: 2

Patch Set 9 : Added typedef. #

Patch Set 10 : Fix signed/unsigned conflict. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+552 lines, -178 lines) Patch
M chrome/browser/android/banners/app_banner_manager.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/banners/app_banner_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/bitmap_fetcher.h View 1 2 3 4 5 1 chunk +1 line, -78 lines 1 comment Download
D chrome/browser/bitmap_fetcher.cc View 1 2 3 4 1 chunk +0 lines, -82 lines 0 comments Download
A + chrome/browser/bitmap_fetcher/bitmap_fetcher.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/bitmap_fetcher/bitmap_fetcher.cc View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
A chrome/browser/bitmap_fetcher/bitmap_fetcher_service.h View 1 2 3 4 5 6 7 8 1 chunk +110 lines, -0 lines 0 comments Download
A chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +190 lines, -0 lines 0 comments Download
A chrome/browser/bitmap_fetcher/bitmap_fetcher_service_factory.h View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/bitmap_fetcher/bitmap_fetcher_service_factory.cc View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/bitmap_fetcher/bitmap_fetcher_service_unittest.cc View 1 2 3 4 1 chunk +160 lines, -0 lines 0 comments Download
M chrome/browser/bitmap_fetcher_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/image_holder.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_avatar_downloader.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/suggestions/thumbnail_manager.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
groby-ooo-7-16
Peter - PTAL. (I'll soonish-ly CC you on a CL that shows this in use, ...
6 years, 6 months ago (2014-06-05 03:16:43 UTC) #1
groby-ooo-7-16
Updated CC list.
6 years, 6 months ago (2014-06-05 03:40:30 UTC) #2
Peter Kasting
Is the "cache" object supposed to be the public interface to this, and it uses ...
6 years, 6 months ago (2014-06-05 23:53:00 UTC) #3
groby-ooo-7-16
No, the cache object is an accidentally included remnant of the development process. Will delete. ...
6 years, 6 months ago (2014-06-05 23:55:38 UTC) #4
Peter Kasting
On 2014/06/05 23:55:38, groby wrote: > No, the cache object is an accidentally included remnant ...
6 years, 6 months ago (2014-06-06 00:05:46 UTC) #5
Anuj
On 2014/06/06 00:05:46, Peter Kasting wrote: > On 2014/06/05 23:55:38, groby wrote: > > No, ...
6 years, 6 months ago (2014-06-06 00:09:29 UTC) #6
groby-ooo-7-16
On 2014/06/06 00:05:46, Peter Kasting wrote: > On 2014/06/05 23:55:38, groby wrote: > > No, ...
6 years, 6 months ago (2014-06-10 17:55:27 UTC) #7
groby-ooo-7-16
Files moved, added sky as reviewer.
6 years, 6 months ago (2014-06-13 21:59:19 UTC) #8
sky
Here's my first set of comments. I'll finish up later on. https://codereview.chromium.org/319623003/diff/60001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc File chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc (right): ...
6 years, 6 months ago (2014-06-17 00:13:40 UTC) #9
sky
https://codereview.chromium.org/319623003/diff/60001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc File chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc (right): https://codereview.chromium.org/319623003/diff/60001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc#newcode69 chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc:69: requests_.erase(iter); Shouldn't you potentially delete the BitmapFetcher? Otherwise it's ...
6 years, 6 months ago (2014-06-17 03:00:02 UTC) #10
groby-ooo-7-16
Fixed, PTAL. I feel somewhat odd about abusing OnImageChange as an OnRequestFinished, though. (I do ...
6 years, 6 months ago (2014-06-17 18:06:23 UTC) #11
groby-ooo-7-16
Heads up - keeping a forwarding version of the old include, since downstream code needs ...
6 years, 6 months ago (2014-06-17 19:05:23 UTC) #12
sky
https://codereview.chromium.org/319623003/diff/60001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc File chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc (right): https://codereview.chromium.org/319623003/diff/60001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc#newcode69 chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc:69: requests_.erase(iter); On 2014/06/17 18:06:22, groby wrote: > On 2014/06/17 ...
6 years, 6 months ago (2014-06-17 19:19:47 UTC) #13
groby-ooo-7-16
PTAL. Tried working on removing the fetcher if all associated requests are gone, but it ...
6 years, 6 months ago (2014-06-17 21:24:30 UTC) #14
sky
LGTM - one meta question though. How do you know the images you're requesting never ...
6 years, 6 months ago (2014-06-17 23:59:27 UTC) #15
groby-ooo-7-16
On 2014/06/17 23:59:27, sky wrote: > LGTM - one meta question though. How do you ...
6 years, 6 months ago (2014-06-18 00:13:40 UTC) #16
groby-ooo-7-16
https://codereview.chromium.org/319623003/diff/140001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc File chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc (right): https://codereview.chromium.org/319623003/diff/140001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc#newcode155 chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc:155: ScopedVector<chrome::BitmapFetcher>::iterator iter = active_fetchers_.begin(); On 2014/06/17 23:59:27, sky wrote: ...
6 years, 6 months ago (2014-06-18 00:13:47 UTC) #17
groby-ooo-7-16
The CQ bit was checked by groby@chromium.org
6 years, 6 months ago (2014-06-18 00:13:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/319623003/160001
6 years, 6 months ago (2014-06-18 00:16:03 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-18 06:37:13 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/38844)
6 years, 6 months ago (2014-06-18 06:37:14 UTC) #21
groby-ooo-7-16
The CQ bit was checked by groby@chromium.org
6 years, 6 months ago (2014-06-18 18:31:02 UTC) #22
groby-ooo-7-16
Heads up: Fixed a signed/unsigned compile error. (Beats me why only linux flags that...)
6 years, 6 months ago (2014-06-18 18:31:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/319623003/180001
6 years, 6 months ago (2014-06-18 18:32:14 UTC) #24
commit-bot: I haz the power
Change committed as 278311
6 years, 6 months ago (2014-06-19 09:04:44 UTC) #25
tfarina
https://codereview.chromium.org/319623003/diff/180001/chrome/browser/bitmap_fetcher.h File chrome/browser/bitmap_fetcher.h (right): https://codereview.chromium.org/319623003/diff/180001/chrome/browser/bitmap_fetcher.h#newcode5 chrome/browser/bitmap_fetcher.h:5: #include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h" Weird that rietveld marked this file as ...
6 years ago (2014-12-10 17:46:36 UTC) #26
tfarina
Could you also move https://chromium.googlesource.com/chromium/src/+/master/chrome/browser/bitmap_fetcher_delegate.h into chrome/browser/bitmap_fetcher/?
6 years ago (2014-12-10 17:49:27 UTC) #27
groby-ooo-7-16
6 years ago (2014-12-11 01:35:28 UTC) #28
Message was sent while issue was closed.
Fixed headers in https://codereview.chromium.org/796693002/ instead

Powered by Google App Engine
This is Rietveld 408576698