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

Issue 156373002: Support for new data reduction proxy via header (Closed)

Created:
6 years, 10 months ago by bengr
Modified:
6 years, 10 months ago
Reviewers:
Lei Zhang, Yaron, mef
CC:
chromium-reviews, cbentzel+watch_chromium.org, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org, Ryan Sleevi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Support for new data reduction proxy via header This new header conforms to RFC 2616. With this change, both the old and new header will be supported. Eventually, support for the old header will be removed. BUG=340333 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251256

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Addressed comments #

Total comments: 2

Patch Set 3 : Addressed comments #

Total comments: 6

Patch Set 4 : Addressed more comments #

Total comments: 4

Patch Set 5 : Addressed comments from thestig #

Patch Set 6 : Fixed compilation error on unsupported platforms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -121 lines) Patch
M chrome/browser/android/intercept_download_resource_throttle.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc View 1 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc View 1 1 chunk +0 lines, -42 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_saving_metrics.cc View 1 2 3 4 5 2 chunks +7 lines, -24 lines 0 comments Download
M chrome/renderer/page_load_histograms.cc View 1 2 3 4 2 chunks +25 lines, -6 lines 0 comments Download
M net/http/http_network_layer_unittest.cc View 1 3 chunks +23 lines, -3 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 chunks +1 line, -25 lines 0 comments Download
M net/http/http_response_headers.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M net/http/http_response_headers.cc View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M net/http/http_response_headers_unittest.cc View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
bengr
mef: everything This CL removes one code duplication and emphasizes that due to layering issues ...
6 years, 10 months ago (2014-02-06 20:05:58 UTC) #1
mef
Maybe it would make sense to add a method 'IsViaDataReductionProxy()' to net::HttpResponseHeaders next to HttpResponseHeaders::GetChromeProxyBypassDuration? ...
6 years, 10 months ago (2014-02-07 20:33:24 UTC) #2
bengr
https://codereview.chromium.org/156373002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/156373002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc#newcode218 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc:218: const char kDataReductionProxyViaValue[] = "Chrome-Compression-Proxy"; On 2014/02/07 20:33:25, mef ...
6 years, 10 months ago (2014-02-07 23:55:36 UTC) #3
bengr
On 2014/02/07 23:55:36, bengr1 wrote: > https://codereview.chromium.org/156373002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc > File chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc (right): > > https://codereview.chromium.org/156373002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc#newcode218 > ...
6 years, 10 months ago (2014-02-12 17:39:04 UTC) #4
mef
On 2014/02/12 17:39:04, bengr1 wrote: > On 2014/02/07 23:55:36, bengr1 wrote: > > > https://codereview.chromium.org/156373002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc ...
6 years, 10 months ago (2014-02-12 17:55:45 UTC) #5
bengr
On 2014/02/12 17:55:45, mef wrote: > On 2014/02/12 17:39:04, bengr1 wrote: > > On 2014/02/07 ...
6 years, 10 months ago (2014-02-12 17:58:26 UTC) #6
mef
On 2014/02/12 17:58:26, bengr1 wrote: > On 2014/02/12 17:55:45, mef wrote: > > On 2014/02/12 ...
6 years, 10 months ago (2014-02-12 17:59:46 UTC) #7
mef
https://codereview.chromium.org/156373002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/156373002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc#newcode218 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc:218: const char kDataReductionProxyViaValue[] = "Chrome-Compression-Proxy"; On 2014/02/07 23:55:36, bengr1 ...
6 years, 10 months ago (2014-02-12 18:12:18 UTC) #8
bengr
https://codereview.chromium.org/156373002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/156373002/diff/80001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc#newcode218 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc:218: const char kDataReductionProxyViaValue[] = "Chrome-Compression-Proxy"; It is always the ...
6 years, 10 months ago (2014-02-12 21:14:00 UTC) #9
mef
https://codereview.chromium.org/156373002/diff/360001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (left): https://codereview.chromium.org/156373002/diff/360001/chrome/renderer/page_load_histograms.cc#oldcode200 chrome/renderer/page_load_histograms.cc:200: return ViaHeaderContains(frame, kDatReductionProxyViaValue); Given that ViaHeaderContains is still used ...
6 years, 10 months ago (2014-02-12 21:36:50 UTC) #10
bengr
https://codereview.chromium.org/156373002/diff/360001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (left): https://codereview.chromium.org/156373002/diff/360001/chrome/renderer/page_load_histograms.cc#oldcode200 chrome/renderer/page_load_histograms.cc:200: return ViaHeaderContains(frame, kDatReductionProxyViaValue); On 2014/02/12 21:36:50, mef wrote: > ...
6 years, 10 months ago (2014-02-13 00:17:37 UTC) #11
mef
lgtm
6 years, 10 months ago (2014-02-13 00:46:42 UTC) #12
bengr
The CQ bit was checked by bengr@chromium.org
6 years, 10 months ago (2014-02-13 01:19:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bengr@chromium.org/156373002/430001
6 years, 10 months ago (2014-02-13 01:20:03 UTC) #14
bengr
The CQ bit was unchecked by bengr@chromium.org
6 years, 10 months ago (2014-02-13 01:20:41 UTC) #15
bengr
thestig: chrome/renderer/page_load_histograms.cc yfriedman: intercept_download_resource_throttle.cc
6 years, 10 months ago (2014-02-13 01:24:53 UTC) #16
Lei Zhang
https://codereview.chromium.org/156373002/diff/430001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/156373002/diff/430001/chrome/renderer/page_load_histograms.cc#newcode220 chrome/renderer/page_load_histograms.cc:220: return false; shouldn't this be inside: #else ... #endif ...
6 years, 10 months ago (2014-02-13 01:33:06 UTC) #17
Lei Zhang
https://codereview.chromium.org/156373002/diff/430001/net/http/http_response_headers.cc File net/http/http_response_headers.cc (right): https://codereview.chromium.org/156373002/diff/430001/net/http/http_response_headers.cc#newcode1442 net/http/http_response_headers.cc:1442: if (value == kDeprecatedChromeProxyViaValue) return true; nit: return true ...
6 years, 10 months ago (2014-02-13 01:36:31 UTC) #18
Yaron
On 2014/02/13 01:36:31, Lei Zhang wrote: > https://codereview.chromium.org/156373002/diff/430001/net/http/http_response_headers.cc > File net/http/http_response_headers.cc (right): > > https://codereview.chromium.org/156373002/diff/430001/net/http/http_response_headers.cc#newcode1442 ...
6 years, 10 months ago (2014-02-13 06:48:53 UTC) #19
bengr
https://codereview.chromium.org/156373002/diff/430001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/156373002/diff/430001/chrome/renderer/page_load_histograms.cc#newcode220 chrome/renderer/page_load_histograms.cc:220: return false; Done. Good catch. Thanks! On 2014/02/13 01:33:07, ...
6 years, 10 months ago (2014-02-13 16:57:35 UTC) #20
Lei Zhang
lgtm!
6 years, 10 months ago (2014-02-13 19:17:52 UTC) #21
bengr
The CQ bit was checked by bengr@chromium.org
6 years, 10 months ago (2014-02-13 19:18:13 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bengr@chromium.org/156373002/610001
6 years, 10 months ago (2014-02-13 19:21:03 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bengr@chromium.org/156373002/610001
6 years, 10 months ago (2014-02-13 20:03:16 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 20:48:26 UTC) #25
commit-bot: I haz the power
Commit queue patch verification failed without an error message. Something went wrong, probably a crash, ...
6 years, 10 months ago (2014-02-13 20:48:27 UTC) #26
bengr
The CQ bit was checked by bengr@chromium.org
6 years, 10 months ago (2014-02-13 22:31:14 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bengr@chromium.org/156373002/610001
6 years, 10 months ago (2014-02-13 22:33:39 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 23:18:30 UTC) #29
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=115473
6 years, 10 months ago (2014-02-13 23:18:31 UTC) #30
bengr
The CQ bit was checked by bengr@chromium.org
6 years, 10 months ago (2014-02-14 01:24:35 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bengr@chromium.org/156373002/1290001
6 years, 10 months ago (2014-02-14 01:25:11 UTC) #32
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 04:19:07 UTC) #33
Message was sent while issue was closed.
Change committed as 251256

Powered by Google App Engine
This is Rietveld 408576698