megjablon: all japhet: third_part/WebKit/* kinuko: content/public/common/previews_state.h Thanks in advance!
3 years, 7 months ago
(2017-05-09 22:05:49 UTC)
#2
megjablon: all
japhet: third_part/WebKit/*
kinuko: content/public/common/previews_state.h
Thanks in advance!
kinuko
Description was changed from ========== Record Data Savings for Client-Side LoFi This CL causes Chrome ...
3 years, 7 months ago
(2017-05-10 06:31:10 UTC)
#3
Description was changed from
==========
Record Data Savings for Client-Side LoFi
This CL causes Chrome to record data savings for Client LoFi when it is
used, according to the Content-Range header if it's present (e.g.
"Content-Range: bytes 0-2047/10000" implies that the original resource
was 10000 bytes). This CL also adds a new PreviewsState bit field,
CLIENT_LOFI_AUTO_RELOAD, that is set when a Client LoFi image is auto
reloaded because of a decoding error, so that the browser process can
count the data used for the reload against the savings.
See design doc for more info:
https://docs.google.com/document/d/1CoZfTswPq67VaHKsr0OrkpPbWT87dhhvPq9hylOxr...
BUG=605347
==========
to
==========
Record Data Savings for Client-Side LoFi
This CL causes Chrome to record data savings for Client LoFi when it is
used, according to the Content-Range header if it's present (e.g.
"Content-Range: bytes 0-2047/10000" implies that the original resource
was 10000 bytes). This CL also adds a new PreviewsState bit field,
CLIENT_LOFI_AUTO_RELOAD, that is set when a Client LoFi image is auto
reloaded because of a decoding error, so that the browser process can
count the data used for the reload against the savings.
See design doc for more info:
https://docs.google.com/document/d/1CoZfTswPq67VaHKsr0OrkpPbWT87dhhvPq9hylOxr...
BUG=605347
==========
kinuko
lgtm
3 years, 7 months ago
(2017-05-10 07:00:46 UTC)
#4
lgtm
Nate Chapin
blink lgtm
3 years, 7 months ago
(2017-05-10 17:18:41 UTC)
#5
lgtm % a couple minor nits. I'd be fine with it as is though. https://codereview.chromium.org/2873793002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc ...
3 years, 7 months ago
(2017-05-10 18:14:09 UTC)
#7
3 years, 7 months ago
(2017-05-10 19:56:37 UTC)
#8
https://codereview.chromium.org/2873793002/diff/20001/components/data_reducti...
File
components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
(right):
https://codereview.chromium.org/2873793002/diff/20001/components/data_reducti...
components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:133:
return std::max<int64_t>(0, request.GetTotalReceivedBytes() -
On 2017/05/10 18:14:08, RyanSturm wrote:
> As a note, I don't believe GetTotalReceivedBytes counts previous jobs (cache
> revalidation, redirects) can you double check and add that information to
> https://crbug.com/535701
From looking at URLRequest::GetTotalReceivedBytes(), it looks like you're right
that it doesn't include redirects, but it does seem to include revalidations
(running totals are saved from previous network transactions:
https://cs.chromium.org/chromium/src/net/http/http_cache_transaction.cc?l=2778).
Even if GetTotalReceivedBytes() is changed in the future to include the
redirect, it'll be fine since that way both the received size and the original
size used for data savings calculations will include the size of the redirect.
So that should just work.
Also, IIRC successful revalidations (i.e. 304 response) are marked as
was_cached, so they'll be handled by the if(request.was_cached()) check in
EstimateOriginalReceivedBytes below, so they don't get to this function.
https://codereview.chromium.org/2873793002/diff/20001/components/data_reducti...
File
components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
(right):
https://codereview.chromium.org/2873793002/diff/20001/components/data_reducti...
components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc:1744:
{kSimple200ResponseHeaders, 140, false, false, 0},
On 2017/05/10 18:14:09, RyanSturm wrote:
> nit: Can you comment on some of these test cases (like saying the content is
> under 2048 for the first set and maybe some detail on the rest?
Done.
https://codereview.chromium.org/2873793002/diff/20001/content/public/common/p...
File content/public/common/previews_state.h (right):
https://codereview.chromium.org/2873793002/diff/20001/content/public/common/p...
content/public/common/previews_state.h:36: CLIENT_LOFI_AUTO_RELOAD = 1 << 2, //
Request the original version of the
On 2017/05/10 18:14:09, RyanSturm wrote:
> tiny nit: these comments don't line up well. Does git cl format leave it this
> way? Feel free to leave it.
git cl format left it this way; I agree it looks kinda bad, but hopefully it's
still readable enough.
sclittle
The CQ bit was checked by sclittle@chromium.org
3 years, 7 months ago
(2017-05-10 19:56:46 UTC)
#9
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/175175)
3 years, 7 months ago
(2017-05-10 20:59:26 UTC)
#13
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450926)
3 years, 7 months ago
(2017-05-11 00:00:59 UTC)
#21
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/451157)
3 years, 7 months ago
(2017-05-11 03:21:12 UTC)
#25
CQ is committing da patch. Bot data: {"patchset_id": 60001, "attempt_start_ts": 1494473024417090, "parent_rev": "d3fb9e2435e2c3015314496c2afa5bf64c4ace56", "commit_rev": "afaa2a65a0d50a88e08fd595507668538cb6689e"}
3 years, 7 months ago
(2017-05-11 06:42:00 UTC)
#28
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1494473024417090,
"parent_rev": "d3fb9e2435e2c3015314496c2afa5bf64c4ace56", "commit_rev":
"afaa2a65a0d50a88e08fd595507668538cb6689e"}
commit-bot: I haz the power
Description was changed from ========== Record Data Savings for Client-Side LoFi This CL causes Chrome ...
3 years, 7 months ago
(2017-05-11 06:42:10 UTC)
#29
Message was sent while issue was closed.
Description was changed from
==========
Record Data Savings for Client-Side LoFi
This CL causes Chrome to record data savings for Client LoFi when it is
used, according to the Content-Range header if it's present (e.g.
"Content-Range: bytes 0-2047/10000" implies that the original resource
was 10000 bytes). This CL also adds a new PreviewsState bit field,
CLIENT_LOFI_AUTO_RELOAD, that is set when a Client LoFi image is auto
reloaded because of a decoding error, so that the browser process can
count the data used for the reload against the savings.
See design doc for more info:
https://docs.google.com/document/d/1CoZfTswPq67VaHKsr0OrkpPbWT87dhhvPq9hylOxr...
BUG=605347
==========
to
==========
Record Data Savings for Client-Side LoFi
This CL causes Chrome to record data savings for Client LoFi when it is
used, according to the Content-Range header if it's present (e.g.
"Content-Range: bytes 0-2047/10000" implies that the original resource
was 10000 bytes). This CL also adds a new PreviewsState bit field,
CLIENT_LOFI_AUTO_RELOAD, that is set when a Client LoFi image is auto
reloaded because of a decoding error, so that the browser process can
count the data used for the reload against the savings.
See design doc for more info:
https://docs.google.com/document/d/1CoZfTswPq67VaHKsr0OrkpPbWT87dhhvPq9hylOxr...
BUG=605347
Review-Url: https://codereview.chromium.org/2873793002
Cr-Commit-Position: refs/heads/master@{#470850}
Committed:
https://chromium.googlesource.com/chromium/src/+/afaa2a65a0d50a88e08fd5955076...
==========
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/afaa2a65a0d50a88e08fd595507668538cb6689e
3 years, 7 months ago
(2017-05-11 06:42:15 UTC)
#30
Issue 2873793002: Record Data Savings for Client-Side LoFi
(Closed)
Created 3 years, 7 months ago by sclittle
Modified 3 years, 7 months ago
Reviewers: Nate Chapin, kinuko, RyanSturm
Base URL:
Comments: 6