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

Issue 2848293002: Adding the Previews infobar to pages that show a client LoFi image (Closed)

Created:
3 years, 7 months ago by RyanSturm
Modified:
3 years, 7 months ago
Reviewers:
sclittle
CC:
chromium-reviews, cbentzel+watch_chromium.org, jam, net-reviews_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, tbansal+watch-data-reduction-proxy_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding the Previews infobar to pages that show a client LoFi image This adds the Previews infobar to any page loads that use client LoFi for images. This follows the existing LoFi path for the infobar. Detection of client LoFi uses the PreviewsState and resource type at request completion time. Even if an image is full downloaded (due to small size) or we don't display the image, the infobar is shown because the range request was issued to the server and could have impacted the resulting image in some way. BUG=704322 Review-Url: https://codereview.chromium.org/2848293002 Cr-Commit-Position: refs/heads/master@{#470148} Committed: https://chromium.googlesource.com/chromium/src/+/2278661de721b27db538323ec60bfdff0aad064a

Patch Set 1 #

Patch Set 2 : removed range check #

Total comments: 6

Patch Set 3 : sclittle comments #

Total comments: 14

Patch Set 4 : sclittle comments #

Patch Set 5 : merged lofis #

Total comments: 2

Patch Set 6 : sclittle nit #

Messages

Total messages: 53 (40 generated)
RyanSturm
sclittle: PTAL
3 years, 7 months ago (2017-05-03 17:45:57 UTC) #20
sclittle
https://codereview.chromium.org/2848293002/diff/60001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://codereview.chromium.org/2848293002/diff/60001/chrome/browser/previews/previews_infobar_delegate.cc#newcode181 chrome/browser/previews/previews_infobar_delegate.cc:181: web_contents->ReloadLoFiImages(); If "Show Original" is clicked on a page ...
3 years, 7 months ago (2017-05-03 18:40:21 UTC) #21
RyanSturm
https://codereview.chromium.org/2848293002/diff/60001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://codereview.chromium.org/2848293002/diff/60001/chrome/browser/previews/previews_infobar_delegate.cc#newcode181 chrome/browser/previews/previews_infobar_delegate.cc:181: web_contents->ReloadLoFiImages(); On 2017/05/03 18:40:21, sclittle wrote: > If "Show ...
3 years, 7 months ago (2017-05-03 18:48:52 UTC) #22
sclittle
https://codereview.chromium.org/2848293002/diff/60001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://codereview.chromium.org/2848293002/diff/60001/chrome/browser/previews/previews_infobar_delegate.cc#newcode181 chrome/browser/previews/previews_infobar_delegate.cc:181: web_contents->ReloadLoFiImages(); On 2017/05/03 18:48:52, Ryan Sturm wrote: > On ...
3 years, 7 months ago (2017-05-03 19:02:47 UTC) #23
RyanSturm
On 2017/05/03 19:02:47, sclittle wrote: > https://codereview.chromium.org/2848293002/diff/60001/chrome/browser/previews/previews_infobar_delegate.cc > File chrome/browser/previews/previews_infobar_delegate.cc (right): > > https://codereview.chromium.org/2848293002/diff/60001/chrome/browser/previews/previews_infobar_delegate.cc#newcode181 > ...
3 years, 7 months ago (2017-05-03 21:28:55 UTC) #24
RyanSturm
sclittle: PTAL
3 years, 7 months ago (2017-05-03 22:04:19 UTC) #27
sclittle
https://codereview.chromium.org/2848293002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc (right): https://codereview.chromium.org/2848293002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc#newcode68 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc:68: if (is_server_lofi) { If both Server and Client LoFi ...
3 years, 7 months ago (2017-05-03 22:51:30 UTC) #28
RyanSturm
https://codereview.chromium.org/2848293002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc (right): https://codereview.chromium.org/2848293002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc#newcode68 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc:68: if (is_server_lofi) { On 2017/05/03 22:51:29, sclittle wrote: > ...
3 years, 7 months ago (2017-05-03 23:20:30 UTC) #33
RyanSturm
sclittle: PTAL @ most recent patch
3 years, 7 months ago (2017-05-08 19:42:55 UTC) #44
sclittle
LGTM % nit, assuming you've tested it thoroughly. https://codereview.chromium.org/2848293002/diff/120001/chrome/browser/previews/previews_infobar_delegate.h File chrome/browser/previews/previews_infobar_delegate.h (right): https://codereview.chromium.org/2848293002/diff/120001/chrome/browser/previews/previews_infobar_delegate.h#newcode27 chrome/browser/previews/previews_infobar_delegate.h:27: LOFI, ...
3 years, 7 months ago (2017-05-08 20:28:01 UTC) #45
RyanSturm
https://codereview.chromium.org/2848293002/diff/120001/chrome/browser/previews/previews_infobar_delegate.h File chrome/browser/previews/previews_infobar_delegate.h (right): https://codereview.chromium.org/2848293002/diff/120001/chrome/browser/previews/previews_infobar_delegate.h#newcode27 chrome/browser/previews/previews_infobar_delegate.h:27: LOFI, // Server-side image replacement. On 2017/05/08 20:28:01, sclittle ...
3 years, 7 months ago (2017-05-08 20:36:03 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2848293002/140001
3 years, 7 months ago (2017-05-08 20:37:27 UTC) #49
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 22:12:57 UTC) #53
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/2278661de721b27db538323ec60b...

Powered by Google App Engine
This is Rietveld 408576698