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

Issue 2045233002: Split the code for fetching images and for decoding images into two separate classes. This will all… (Closed)

Created:
4 years, 6 months ago by markusheintz_
Modified:
4 years, 6 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, droger+watchlist_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, sdefresne+watchlist_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, blundell+watchlist_chromium.org, kmadhusu+watch_chromium.org, Jered
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split the code for fetching images and for decoding images into two separate classes. This will allow to use common code for image URL fetching and platform specific implementations for image decoding. BUG=609127 Committed: https://crrev.com/d8513537879d4e6d452cbd66ac4c203752eab916 Cr-Commit-Position: refs/heads/master@{#399457}

Patch Set 1 #

Patch Set 2 : Fix some final nits. Ready for review. #

Total comments: 92

Patch Set 3 : Address comments treib@, bauerb@ and markusheintz@ #

Patch Set 4 : Make ~DecodeImageRequest() final #

Total comments: 32

Patch Set 5 : Address comments round 2 treib@, blundell@ #

Patch Set 6 : Address comments round 2 bauerb@ #

Patch Set 7 : Revert the uses of std::map::emplace again since it is not fully supported yet #

Patch Set 8 : s/final/override/ in ~DecodeImageRequest #

Patch Set 9 : " #

Patch Set 10 : Update components/image_fetcher.gypi #

Patch Set 11 : Fix long line #

Total comments: 12

Patch Set 12 : Address comments mmenke@ #

Patch Set 13 : Update chrome_browser.gypi to use depend on the image_fetcher component #

Patch Set 14 : Add dep to net in components/image_fetcher.gypi #

Patch Set 15 : Yet another update to chrome_browser.gypi #

Patch Set 16 : " #

Patch Set 17 : " #

Patch Set 18 : " #

Patch Set 19 : "CL https://codereview.chromium.org/2045233002: Split the code for fetching images and for decodin… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -44 lines) Patch
A chrome/browser/search/suggestions/image_decoder_impl.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/search/suggestions/image_decoder_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +88 lines, -0 lines 0 comments Download
M chrome/browser/search/suggestions/image_fetcher_impl.h View 1 2 3 4 5 4 chunks +21 lines, -17 lines 0 comments Download
M chrome/browser/search/suggestions/image_fetcher_impl.cc View 1 2 3 4 5 6 3 chunks +29 lines, -26 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +3 lines, -0 lines 0 comments Download
M components/image_fetcher.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -1 line 0 comments Download
M components/image_fetcher/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/image_fetcher/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A components/image_fetcher/image_data_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +56 lines, -0 lines 0 comments Download
A components/image_fetcher/image_data_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +101 lines, -0 lines 0 comments Download
A components/image_fetcher/image_decoder.h View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (11 generated)
markusheintz_
Marc and Bernhard please take a look at the CL
4 years, 6 months ago (2016-06-08 12:32:35 UTC) #4
blundell
https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.h File chrome/browser/search/suggestions/image_decoder_impl.h (right): https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.h#newcode19 chrome/browser/search/suggestions/image_decoder_impl.h:19: class ImageDecoderImpl : public image_fetcher::ImageDecoder { drive-by: This class ...
4 years, 6 months ago (2016-06-08 12:38:00 UTC) #7
markusheintz_
On 2016/06/08 12:38:00, blundell wrote: > https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.h > File chrome/browser/search/suggestions/image_decoder_impl.h (right): > > https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.h#newcode19 > ...
4 years, 6 months ago (2016-06-08 12:56:47 UTC) #8
markusheintz_
On 2016/06/08 12:56:47, markusheintz_ wrote: > On 2016/06/08 12:38:00, blundell wrote: > > > https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.h ...
4 years, 6 months ago (2016-06-08 12:58:45 UTC) #9
Marc Treib
Lots of comments, but mostly small ones :) https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.cc File chrome/browser/search/suggestions/image_decoder_impl.cc (right): https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.cc#newcode23 chrome/browser/search/suggestions/image_decoder_impl.cc:23: // ...
4 years, 6 months ago (2016-06-08 13:33:29 UTC) #11
blundell
On 2016/06/08 12:56:47, markusheintz_ wrote: > On 2016/06/08 12:38:00, blundell wrote: > > > https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.h ...
4 years, 6 months ago (2016-06-08 14:07:21 UTC) #12
blundell
On 2016/06/08 12:58:45, markusheintz_ wrote: > On 2016/06/08 12:56:47, markusheintz_ wrote: > > On 2016/06/08 ...
4 years, 6 months ago (2016-06-08 14:08:04 UTC) #13
Bernhard Bauer
https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.h File chrome/browser/search/suggestions/image_decoder_impl.h (right): https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.h#newcode30 chrome/browser/search/suggestions/image_decoder_impl.h:30: class DecodeImageRequest : public ::ImageDecoder::ImageRequest { You could move ...
4 years, 6 months ago (2016-06-09 10:14:31 UTC) #14
markusheintz_
Thanks a lot for the great comments. Sorry for the many nits I forgot to ...
4 years, 6 months ago (2016-06-09 19:58:22 UTC) #15
Marc Treib
LGTM with some more nits. Thanks! https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.cc File chrome/browser/search/suggestions/image_decoder_impl.cc (right): https://codereview.chromium.org/2045233002/diff/20001/chrome/browser/search/suggestions/image_decoder_impl.cc#newcode46 chrome/browser/search/suggestions/image_decoder_impl.cc:46: decoder_->RemoveDecodeImageRequest(this); On 2016/06/09 ...
4 years, 6 months ago (2016-06-10 08:32:37 UTC) #16
markusheintz_
https://codereview.chromium.org/2045233002/diff/20001/components/image_fetcher/image_url_fetcher.cc File components/image_fetcher/image_url_fetcher.cc (right): https://codereview.chromium.org/2045233002/diff/20001/components/image_fetcher/image_url_fetcher.cc#newcode81 components/image_fetcher/image_url_fetcher.cc:81: image_url_fetcher_->RemoveImageURLFetcherRequest(url_); On 2016/06/09 19:58:21, markusheintz_ wrote: > On 2016/06/08 ...
4 years, 6 months ago (2016-06-10 08:34:01 UTC) #17
blundell
I'm a little confused now as to the purpose of these Impl classes: are they ...
4 years, 6 months ago (2016-06-10 08:38:12 UTC) #18
markusheintz_
On 2016/06/10 08:38:12, blundell wrote: > I'm a little confused now as to the purpose ...
4 years, 6 months ago (2016-06-10 08:51:20 UTC) #19
blundell
On 2016/06/10 08:51:20, markusheintz_ wrote: > On 2016/06/10 08:38:12, blundell wrote: > > I'm a ...
4 years, 6 months ago (2016-06-10 08:54:18 UTC) #20
markusheintz_
Address comments round 2 treib@, blundell@
4 years, 6 months ago (2016-06-10 08:55:42 UTC) #21
Bernhard Bauer
LGTM modulo Marc's nits and Colin's comment. https://codereview.chromium.org/2045233002/diff/60001/chrome/browser/search/suggestions/image_decoder_impl.cc File chrome/browser/search/suggestions/image_decoder_impl.cc (right): https://codereview.chromium.org/2045233002/diff/60001/chrome/browser/search/suggestions/image_decoder_impl.cc#newcode20 chrome/browser/search/suggestions/image_decoder_impl.cc:20: virtual ~DecodeImageRequest() ...
4 years, 6 months ago (2016-06-10 09:02:08 UTC) #22
markusheintz_
https://codereview.chromium.org/2045233002/diff/60001/chrome/browser/search/suggestions/image_decoder_impl.cc File chrome/browser/search/suggestions/image_decoder_impl.cc (right): https://codereview.chromium.org/2045233002/diff/60001/chrome/browser/search/suggestions/image_decoder_impl.cc#newcode20 chrome/browser/search/suggestions/image_decoder_impl.cc:20: virtual ~DecodeImageRequest() final {} On 2016/06/10 09:02:08, Bernhard Bauer ...
4 years, 6 months ago (2016-06-10 09:43:15 UTC) #23
markusheintz_
Revert the uses of std::map::emplace again since it is not fully supported yet
4 years, 6 months ago (2016-06-10 09:45:03 UTC) #24
markusheintz_
s/final/override/ in ~DecodeImageRequest
4 years, 6 months ago (2016-06-10 10:08:53 UTC) #25
markusheintz_
"
4 years, 6 months ago (2016-06-10 10:25:42 UTC) #26
blundell
lgtm
4 years, 6 months ago (2016-06-10 12:06:47 UTC) #27
markusheintz_
Adding mmenke@ for DEPs approval on /net
4 years, 6 months ago (2016-06-10 12:39:36 UTC) #29
markusheintz_
Fix long line
4 years, 6 months ago (2016-06-10 12:41:11 UTC) #30
Bernhard Bauer
https://codereview.chromium.org/2045233002/diff/60001/chrome/browser/search/suggestions/image_decoder_impl.cc File chrome/browser/search/suggestions/image_decoder_impl.cc (right): https://codereview.chromium.org/2045233002/diff/60001/chrome/browser/search/suggestions/image_decoder_impl.cc#newcode20 chrome/browser/search/suggestions/image_decoder_impl.cc:20: virtual ~DecodeImageRequest() final {} On 2016/06/10 09:43:14, markusheintz_ wrote: ...
4 years, 6 months ago (2016-06-10 12:48:25 UTC) #31
Marc Treib
https://codereview.chromium.org/2045233002/diff/60001/chrome/browser/search/suggestions/image_fetcher_impl.h File chrome/browser/search/suggestions/image_fetcher_impl.h (right): https://codereview.chromium.org/2045233002/diff/60001/chrome/browser/search/suggestions/image_fetcher_impl.h#newcode55 chrome/browser/search/suggestions/image_fetcher_impl.h:55: void swap(ImageRequest* other) { On 2016/06/10 12:48:25, Bernhard Bauer ...
4 years, 6 months ago (2016-06-10 12:50:29 UTC) #32
Bernhard Bauer
https://codereview.chromium.org/2045233002/diff/60001/chrome/browser/search/suggestions/image_fetcher_impl.h File chrome/browser/search/suggestions/image_fetcher_impl.h (right): https://codereview.chromium.org/2045233002/diff/60001/chrome/browser/search/suggestions/image_fetcher_impl.h#newcode55 chrome/browser/search/suggestions/image_fetcher_impl.h:55: void swap(ImageRequest* other) { On 2016/06/10 12:50:29, Marc Treib ...
4 years, 6 months ago (2016-06-10 12:52:11 UTC) #33
mmenke
net dependency (And use of net code) LGTM https://codereview.chromium.org/2045233002/diff/200001/components/image_fetcher/image_data_fetcher.cc File components/image_fetcher/image_data_fetcher.cc (right): https://codereview.chromium.org/2045233002/diff/200001/components/image_fetcher/image_data_fetcher.cc#newcode63 components/image_fetcher/image_data_fetcher.cc:63: net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE); ...
4 years, 6 months ago (2016-06-10 17:19:58 UTC) #34
markusheintz_
https://codereview.chromium.org/2045233002/diff/200001/components/image_fetcher/image_data_fetcher.cc File components/image_fetcher/image_data_fetcher.cc (right): https://codereview.chromium.org/2045233002/diff/200001/components/image_fetcher/image_data_fetcher.cc#newcode63 components/image_fetcher/image_data_fetcher.cc:63: net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE); On 2016/06/10 17:19:58, mmenke wrote: > You don't ...
4 years, 6 months ago (2016-06-13 09:07:27 UTC) #35
markusheintz_
Address comments mmenke@
4 years, 6 months ago (2016-06-13 09:11:55 UTC) #36
markusheintz_
Add dep to net in components/image_fetcher.gypi
4 years, 6 months ago (2016-06-13 11:49:36 UTC) #37
markusheintz_
"
4 years, 6 months ago (2016-06-13 13:31:31 UTC) #38
markusheintz_
"
4 years, 6 months ago (2016-06-13 13:50:33 UTC) #39
markusheintz_
"
4 years, 6 months ago (2016-06-13 14:54:29 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045233002/340001
4 years, 6 months ago (2016-06-13 15:19:31 UTC) #43
commit-bot: I haz the power
Committed patchset #18 (id:340001)
4 years, 6 months ago (2016-06-13 15:46:13 UTC) #45
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-13 15:46:24 UTC) #46
commit-bot: I haz the power
Patchset 18 (id:??) landed as https://crrev.com/d8513537879d4e6d452cbd66ac4c203752eab916 Cr-Commit-Position: refs/heads/master@{#399457}
4 years, 6 months ago (2016-06-13 15:47:35 UTC) #48
mark a. foltz
A revert of this CL (patchset #18 id:340001) has been created in https://codereview.chromium.org/2068783003/ by mfoltz@chromium.org. ...
4 years, 6 months ago (2016-06-14 19:05:19 UTC) #49
markusheintz_
4 years, 6 months ago (2016-06-15 09:07:19 UTC) #50
Message was sent while issue was closed.
On 2016/06/14 19:05:19, mark a. foltz wrote:
> A revert of this CL (patchset #18 id:340001) has been created in
> https://codereview.chromium.org/2068783003/ by mailto:mfoltz@chromium.org.
> 
> The reason for reverting is: Causing
> https://bugs.chromium.org/p/chromium/issues/detail?id=620000 and is
> ReleaseBlock-Dev.
> 
> NOTREECHECKS=true
> NOPRESUBMIT=true
> NOTRY=true
> TBR=markusheintz
> .

Sorry that this CL caused some trouble.

I found the issue:
https://codereview.chromium.org/2064793004/diff2/1:20001/chrome/browser/searc...

Powered by Google App Engine
This is Rietveld 408576698