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

Issue 2642793005: Create a Lite Page bit for previews and fallback to Lo-Fi (Closed)

Created:
3 years, 11 months ago by megjablon
Modified:
3 years, 9 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, loading-reviews_chromium.org, mlamouri+watch-content_chromium.org, mmenke, nasko+codewatch_chromium.org, Randy Smith (Not in Mondays), tbansal+watch-data-reduction-proxy_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create a Lite Page bit for previews and fallback to Lo-Fi If a lite-page is requested and the server does not provide one, Chrome should request a Lo-Fi image on subresources. However, Chrome should not request empty-image on the subresource requests of a Weblite page. BUG=660212 Review-Url: https://codereview.chromium.org/2642793005 Cr-Commit-Position: refs/heads/master@{#454638} Committed: https://chromium.googlesource.com/chromium/src/+/3f4bae9092c2ac1443f2c26867b7fad7f10df1ca

Patch Set 1 #

Total comments: 10

Patch Set 2 : bengr comments #

Total comments: 6

Patch Set 3 : nasko comments and adding field trial #

Patch Set 4 : remove unused frame_messages.h code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -125 lines) Patch
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 2 1 chunk +10 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_decider.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_decider.cc View 1 2 6 chunks +34 lines, -19 lines 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc View 1 2 3 12 chunks +133 lines, -49 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h View 1 2 2 chunks +19 lines, -8 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc View 1 2 4 chunks +43 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h View 1 chunk +7 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 1 chunk +12 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 2 3 10 chunks +16 lines, -16 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.h View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/lofi_decider.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/common/previews_state.h View 1 2 2 chunks +16 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +11 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebURLRequest.h View 1 2 3 1 chunk +8 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 63 (50 generated)
megjablon
PTAL
3 years, 10 months ago (2017-02-13 19:42:31 UTC) #23
bengr
lgtm with minor suggestions. https://codereview.chromium.org/2642793005/diff/60001/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/2642793005/diff/60001/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc#newcode866 chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc:866: content::PreviewsState previews_state = content::PREVIEWS_UNSPECIFIED; Why ...
3 years, 10 months ago (2017-02-15 00:03:47 UTC) #24
megjablon
nasko: content/* Thanks! https://codereview.chromium.org/2642793005/diff/60001/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/2642793005/diff/60001/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc#newcode866 chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc:866: content::PreviewsState previews_state = content::PREVIEWS_UNSPECIFIED; On 2017/02/15 ...
3 years, 10 months ago (2017-02-16 04:29:09 UTC) #26
nasko
https://codereview.chromium.org/2642793005/diff/80001/content/public/common/previews_state.h File content/public/common/previews_state.h (right): https://codereview.chromium.org/2642793005/diff/80001/content/public/common/previews_state.h#newcode17 content/public/common/previews_state.h:17: typedef int PreviewsState; Why does that need to stay ...
3 years, 10 months ago (2017-02-16 18:10:02 UTC) #27
megjablon
https://codereview.chromium.org/2642793005/diff/80001/content/public/common/previews_state.h File content/public/common/previews_state.h (right): https://codereview.chromium.org/2642793005/diff/80001/content/public/common/previews_state.h#newcode17 content/public/common/previews_state.h:17: typedef int PreviewsState; On 2017/02/16 18:10:02, nasko wrote: > ...
3 years, 10 months ago (2017-02-17 20:17:53 UTC) #42
megjablon
thestig: chrome_resource_dispatcher_host_delegate.cc dstockwell: WebURLRequest.h
3 years, 10 months ago (2017-02-22 22:17:43 UTC) #44
Lei Zhang
lgtm
3 years, 10 months ago (2017-02-23 01:24:22 UTC) #45
nasko
https://codereview.chromium.org/2642793005/diff/80001/content/public/common/previews_state.h File content/public/common/previews_state.h (right): https://codereview.chromium.org/2642793005/diff/80001/content/public/common/previews_state.h#newcode17 content/public/common/previews_state.h:17: typedef int PreviewsState; On 2017/02/17 20:17:52, megjablon wrote: > ...
3 years, 9 months ago (2017-02-28 00:30:46 UTC) #46
megjablon
https://codereview.chromium.org/2642793005/diff/80001/content/public/common/previews_state.h File content/public/common/previews_state.h (right): https://codereview.chromium.org/2642793005/diff/80001/content/public/common/previews_state.h#newcode17 content/public/common/previews_state.h:17: typedef int PreviewsState; On 2017/02/28 00:30:46, nasko (out until ...
3 years, 9 months ago (2017-02-28 00:44:23 UTC) #47
nasko
On 2017/02/28 00:44:23, megjablon wrote: > https://codereview.chromium.org/2642793005/diff/80001/content/public/common/previews_state.h > File content/public/common/previews_state.h (right): > > https://codereview.chromium.org/2642793005/diff/80001/content/public/common/previews_state.h#newcode17 > ...
3 years, 9 months ago (2017-03-01 18:30:42 UTC) #48
dstockwell
lgtm
3 years, 9 months ago (2017-03-02 03:35:02 UTC) #49
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/2642793005/160001
3 years, 9 months ago (2017-03-03 18:55:23 UTC) #60
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 19:01:39 UTC) #63
Message was sent while issue was closed.
Committed patchset #4 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/3f4bae9092c2ac1443f2c26867b7...

Powered by Google App Engine
This is Rietveld 408576698