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

Issue 2800473002: Treat responses with legacy LoFi headers as LoFi images. (Closed)

Created:
3 years, 8 months ago by sclittle
Modified:
3 years, 8 months ago
CC:
chromium-reviews, blink-reviews, tbansal+watch-data-reduction-proxy_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Treat responses with legacy LoFi headers as LoFi images. This CL causes responses with legacy LoFi headers to trigger the LoFi infobar and get reloaded if the user opts out of LoFi on the page. This way, legacy LoFi responses shown from cache will trigger the LoFi infobar and gives users a way to see the original images. BUG=707384 Review-Url: https://codereview.chromium.org/2800473002 Cr-Commit-Position: refs/heads/master@{#463516} Committed: https://chromium.googlesource.com/chromium/src/+/ac85591ea501f4181bfa7b22e0e4b32a4a03886e

Patch Set 1 #

Patch Set 2 : removed unneeded include #

Total comments: 2

Patch Set 3 : Added comment describing CPCT header format #

Total comments: 2

Patch Set 4 : Rebased on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -52 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 1 chunk +9 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc View 1 2 3 4 chunks +38 lines, -22 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_headers_unittest.cc View 2 chunks +43 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResource.cpp View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
sclittle
3 years, 8 months ago (2017-04-04 21:04:50 UTC) #2
Nate Chapin
lgtm
3 years, 8 months ago (2017-04-06 22:01:56 UTC) #3
megjablon
lgtm % comment https://codereview.chromium.org/2800473002/diff/20001/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc File components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc (right): https://codereview.chromium.org/2800473002/diff/20001/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc#newcode95 components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc:95: return base::LowerCaseEqualsASCII(token, transform_type); Is there are ...
3 years, 8 months ago (2017-04-07 21:34:22 UTC) #4
sclittle
thestig: chrome_content_renderer_client.cc Thanks! https://codereview.chromium.org/2800473002/diff/20001/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc File components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc (right): https://codereview.chromium.org/2800473002/diff/20001/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc#newcode95 components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc:95: return base::LowerCaseEqualsASCII(token, transform_type); On 2017/04/07 21:34:22, ...
3 years, 8 months ago (2017-04-08 00:54:57 UTC) #6
Lei Zhang
https://codereview.chromium.org/2800473002/diff/40001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/2800473002/diff/40001/chrome/renderer/chrome_content_renderer_client.cc#newcode1388 chrome/renderer/chrome_content_renderer_client.cc:1388: WebString cpct_value = response.httpHeaderField(WebString::fromASCII( Why do we have to ...
3 years, 8 months ago (2017-04-08 01:01:07 UTC) #7
sclittle
https://codereview.chromium.org/2800473002/diff/40001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/2800473002/diff/40001/chrome/renderer/chrome_content_renderer_client.cc#newcode1388 chrome/renderer/chrome_content_renderer_client.cc:1388: WebString cpct_value = response.httpHeaderField(WebString::fromASCII( On 2017/04/08 01:01:07, Lei Zhang ...
3 years, 8 months ago (2017-04-10 20:56:50 UTC) #8
Lei Zhang
On 2017/04/10 20:56:50, sclittle wrote: > But since response.HttpHeaderField() both takes and returns WebStrings, we ...
3 years, 8 months ago (2017-04-10 22:41:17 UTC) #9
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/2800473002/60001
3 years, 8 months ago (2017-04-11 00:35:27 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 03:24:46 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ac85591ea501f4181bfa7b22e0e4...

Powered by Google App Engine
This is Rietveld 408576698