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

Issue 2242353003: Record partial savings for incomplete responses through the DRP. (Closed)

Created:
4 years, 4 months ago by sclittle
Modified:
4 years, 4 months ago
Reviewers:
bengr
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Record partial savings for incomplete responses through the DRP. Before this CL, incomplete responses through the Data Reduction Proxy would be recorded as having 0 savings, even though a non-zero amount of data was downloaded. After this CL, if the partial response had both content-length and x-original-content-length headers, then the savings are calculated with an effective original content length of (partial_length * total_original_length / total_content_length). BUG=439606 Committed: https://crrev.com/0dd2db4a82a78f70ab36e6264f8d721e25f36d74 Cr-Commit-Position: refs/heads/master@{#412720}

Patch Set 1 : Initial patchset #

Total comments: 14

Patch Set 2 : Addressed comments and removed dead code #

Patch Set 3 : renamed ScaleContentLength to ScaleByteCountByRatio #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -87 lines) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc View 1 10 chunks +129 lines, -45 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h View 1 3 chunks +2 lines, -13 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc View 1 1 chunk +0 lines, -13 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 3 chunks +59 lines, -16 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
sclittle
4 years, 4 months ago (2016-08-16 03:01:06 UTC) #3
bengr
https://codereview.chromium.org/2242353003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc (right): https://codereview.chromium.org/2242353003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc#newcode602 components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc:602: "x-original-content-length: 3000\r\n\r\n", Why do you use lower case for ...
4 years, 4 months ago (2016-08-16 16:14:45 UTC) #4
sclittle
https://codereview.chromium.org/2242353003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc (right): https://codereview.chromium.org/2242353003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc#newcode602 components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc:602: "x-original-content-length: 3000\r\n\r\n", On 2016/08/16 16:14:44, bengr wrote: > Why ...
4 years, 4 months ago (2016-08-16 21:52:29 UTC) #5
bengr
lgtm with a naming suggestion. https://codereview.chromium.org/2242353003/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/2242353003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode101 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:101: int64_t ScaleContentLength(int64_t value, On ...
4 years, 4 months ago (2016-08-17 21:31:53 UTC) #6
sclittle
https://codereview.chromium.org/2242353003/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/2242353003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode101 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:101: int64_t ScaleContentLength(int64_t value, On 2016/08/17 21:31:53, bengr wrote: > ...
4 years, 4 months ago (2016-08-18 00:35:21 UTC) #7
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/2242353003/60001
4 years, 4 months ago (2016-08-18 00:36:11 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 4 months ago (2016-08-18 01:34:25 UTC) #11
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 01:36:06 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0dd2db4a82a78f70ab36e6264f8d721e25f36d74
Cr-Commit-Position: refs/heads/master@{#412720}

Powered by Google App Engine
This is Rietveld 408576698