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

Issue 2802843003: Update CPAT protocol to send lite-page transform acceptance with ect

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

Description

Update CPAT protocol to send lite-page transform acceptance with ect header without client limiting by effective connection. In particular, this removes NQE client checks for LitePage previews and removes ";if_heavy" header qualification. Also replaces exp=ignore_preview_blacklist directive with new exp=force_lite_page one. Also adds some ECT header integration test coverage in lite_page.py. Does not yet add support for empty-image accept with ect. We first need the server support for alt-transforms directive to stop checking ect on client for LoFi. BUG=701802, 691135 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Patch Set 1 #

Patch Set 2 : Merge #

Patch Set 3 : Client side fallback support #

Patch Set 4 : Added unittest for setting PreviewsState LoFi bit when fallback enabled #

Patch Set 5 : Local ECT check for LoFi #

Patch Set 6 : Fix network delegate unittest #

Patch Set 7 : Fixed testLitePageNoFallback integration test (fixed forcing ECT) #

Total comments: 24

Patch Set 8 : Updates per Megan's feedback #

Patch Set 9 : Dropped cellular only flag test for force (since dropped logic for it) #

Patch Set 10 : Added more CPAT integration tests (verifed against staging server) #

Patch Set 11 : Merge with testLitePageBTF #

Total comments: 25
Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -1397 lines) Patch
M components/data_reduction_proxy/content/browser/content_lofi_decider.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_decider.cc View 1 2 3 4 5 6 7 4 chunks +15 lines, -45 lines 2 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc View 1 2 3 4 5 6 7 8 12 chunks +38 lines, -356 lines 2 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h View 1 2 3 4 5 6 7 5 chunks +2 lines, -99 lines 2 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc View 1 2 3 4 5 6 7 10 chunks +37 lines, -403 lines 1 comment Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h View 1 2 3 4 4 chunks +6 lines, -13 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc View 1 2 3 4 2 chunks +0 lines, -14 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc View 1 2 3 4 2 chunks +142 lines, -379 lines 6 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 2 3 4 5 6 7 8 chunks +10 lines, -11 lines 1 comment Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h View 1 1 chunk +3 lines, -8 lines 1 comment Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc View 1 2 chunks +3 lines, -10 lines 1 comment Download
M components/data_reduction_proxy/core/common/lofi_decider.h View 1 2 3 4 5 6 7 3 chunks +14 lines, -17 lines 3 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 1 comment Download
M content/browser/loader/resource_dispatcher_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/previews_state.h View 1 2 3 chunks +13 lines, -13 lines 1 comment Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -6 lines 2 comments Download
M tools/chrome_proxy/webdriver/lite_page.py View 1 2 3 4 5 6 7 8 9 10 7 chunks +96 lines, -14 lines 2 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 4 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (53 generated)
dougarnett
Back to updating CPAT for M60 now. This CL is a bit scaled back from ...
3 years, 8 months ago (2017-04-20 22:28:09 UTC) #20
dougarnett
Updated so that now LoFi will check NQE locally whereas LitePage now will not. Seems ...
3 years, 8 months ago (2017-04-21 21:37:22 UTC) #24
dougarnett
Ping Megan. Can you take a look this week?
3 years, 8 months ago (2017-04-25 20:29:40 UTC) #33
dougarnett
Adding Ben
3 years, 8 months ago (2017-04-25 21:05:08 UTC) #36
megjablon
A quick pass. I haven't reviewed tests yet. Also, can you update the description? The ...
3 years, 8 months ago (2017-04-25 23:10:37 UTC) #39
dougarnett
https://codereview.chromium.org/2802843003/diff/120001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc File components/data_reduction_proxy/content/browser/content_lofi_decider.cc (right): https://codereview.chromium.org/2802843003/diff/120001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc#newcode70 components/data_reduction_proxy/content/browser/content_lofi_decider.cc:70: // has previews turned off. On 2017/04/25 23:10:36, megjablon ...
3 years, 8 months ago (2017-04-26 19:50:49 UTC) #45
dougarnett
Ryan, please give a look
3 years, 8 months ago (2017-04-26 20:13:52 UTC) #49
bengr
So what's the state of LoFi after this? Is it still using the client-side ECT-based ...
3 years, 7 months ago (2017-05-01 15:52:30 UTC) #59
dougarnett
On 2017/05/01 15:52:30, bengr wrote: > So what's the state of LoFi after this? Is ...
3 years, 7 months ago (2017-05-01 16:14:30 UTC) #60
bengr
https://codereview.chromium.org/2802843003/diff/200001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc File components/data_reduction_proxy/content/browser/content_lofi_decider.cc (right): https://codereview.chromium.org/2802843003/diff/200001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc#newcode83 components/data_reduction_proxy/content/browser/content_lofi_decider.cc:83: bool resource_type_supports_empty_image = Hmm. I don't see this being ...
3 years, 7 months ago (2017-05-01 16:53:15 UTC) #62
dougarnett
3 years, 7 months ago (2017-05-01 21:41:45 UTC) #63
The proposed CPAT protocol is not approved yet and target post M-60. Will shelve
this CL for now.

Powered by Google App Engine
This is Rietveld 408576698