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

Issue 2771413004: DRP: Add check that ECT header is present when CPAT header is present. (Closed)

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

Description

DRP: Add check that ECT header is present when CPAT header is present. Add a (d)check in data reduction proxy (DRP) code which verifies that if the CPAT header is present in the request headers, then ECT header must be present too. Other checks added: e.g., chrome-proxy header should only be sent when the resolved proxy is a data saver proxy. Finally, the CL also modifies few unittests to avoid tripping the DCHECKs. BUG=706650 Review-Url: https://codereview.chromium.org/2771413004 Cr-Commit-Position: refs/heads/master@{#460609} Committed: https://chromium.googlesource.com/chromium/src/+/bd690b0bbec9e12f8554673c5501a36e4ec2d7b8

Patch Set 1 #

Total comments: 4

Patch Set 2 : dougarnett comments #

Total comments: 4

Patch Set 3 : megjablon comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -5 lines) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 5 chunks +20 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 2 5 chunks +38 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
tbansal1
megjablon, dougarnett: ptal. Thanks.
3 years, 8 months ago (2017-03-28 02:15:10 UTC) #3
dougarnett
https://codereview.chromium.org/2771413004/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/2771413004/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode118 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:118: // Verifies that the chrome proxy related request headers ...
3 years, 8 months ago (2017-03-28 22:07:27 UTC) #4
tbansal1
ptal. Thanks. https://codereview.chromium.org/2771413004/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/2771413004/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode118 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:118: // Verifies that the chrome proxy related ...
3 years, 8 months ago (2017-03-29 21:30:25 UTC) #6
dougarnett
lgtm Thanks, I like that better.
3 years, 8 months ago (2017-03-29 21:53:32 UTC) #7
megjablon
https://codereview.chromium.org/2771413004/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/2771413004/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode121 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:121: void VerifyHttpRequestHeaders(bool via_chrome_proxy, Capitalize Data Saver? https://codereview.chromium.org/2771413004/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc ...
3 years, 8 months ago (2017-03-29 22:20:01 UTC) #12
tbansal1
megjablon: ptal. Thanks. https://codereview.chromium.org/2771413004/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/2771413004/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode121 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:121: void VerifyHttpRequestHeaders(bool via_chrome_proxy, On 2017/03/29 22:20:01, ...
3 years, 8 months ago (2017-03-29 22:37:54 UTC) #13
megjablon
lgtm
3 years, 8 months ago (2017-03-29 22:40:49 UTC) #16
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/2771413004/40001
3 years, 8 months ago (2017-03-30 00:54:09 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 01:01:35 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/bd690b0bbec9e12f8554673c5501...

Powered by Google App Engine
This is Rietveld 408576698