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

Issue 2303653002: Precache per-resource cap should be applied on network bytes used (Closed)

Created:
4 years, 3 months ago by Raj
Modified:
4 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, wifiprefetch-reviews_google.com
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Precache per-resource cap should be applied on network bytes used Currently precache fetches are cancelled when response length reaches the per-resource limit. This is incorrect for gzipped resources. BUG=625270 Committed: https://crrev.com/dc12c3dfd755611528561c6e48dec23ae59dea5f Cr-Commit-Position: refs/heads/master@{#421101}

Patch Set 1 #

Patch Set 2 : Addressed mmenke comments #

Total comments: 2

Patch Set 3 : Addressed waffles@ comments #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -51 lines) Patch
M chrome/browser/extensions/api/image_writer_private/write_from_url_operation.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/image_writer_private/write_from_url_operation.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_updater_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/policy/core/common/cloud/external_policy_data_fetcher.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/policy/core/common/cloud/external_policy_data_fetcher.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/policy/core/common/cloud/external_policy_data_fetcher_unittest.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M components/policy/core/common/cloud/external_policy_data_updater_unittest.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M components/precache/core/fetcher_pool_unittest.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M components/precache/core/precache_fetcher.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/precache/core/precache_fetcher.cc View 1 2 3 1 chunk +8 lines, -6 lines 0 comments Download
M components/search_provider_logos/logo_tracker.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/search_provider_logos/logo_tracker.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/sync/core/http_bridge.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/sync/core/http_bridge.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/update_client/url_fetcher_downloader.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/update_client/url_fetcher_downloader.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/speech/speech_recognition_engine.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/speech/speech_recognition_engine.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/speech/speech_recognition_engine_unittest.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M content/test/mock_google_streaming_server.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M google_apis/drive/base_requests.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M google_apis/drive/base_requests.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/tools/get_server_time/get_server_time.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M net/url_request/test_url_fetcher_factory.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_fetcher_core.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
M net/url_request/url_fetcher_delegate.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M net/url_request/url_fetcher_delegate.cc View 1 1 chunk +5 lines, -3 lines 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 1 2 3 3 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 82 (61 generated)
Raj
mmenke: ptal net/url_request/url_fetcher_core* An alternative is to add an argument current_network_bytes to OnURLFetchDownloadProgress(), and let ...
4 years, 3 months ago (2016-09-01 05:36:14 UTC) #2
mmenke
On 2016/09/01 05:36:14, Raj wrote: > mmenke: ptal net/url_request/url_fetcher_core* > > An alternative is to ...
4 years, 3 months ago (2016-09-01 14:52:01 UTC) #3
Raj
mmenke: ptal net/* Once you are OK, I will add some unittests and other reviewers.
4 years, 3 months ago (2016-09-01 18:36:16 UTC) #4
bengr
On 2016/09/01 18:36:16, Raj wrote: > mmenke: ptal net/* > Once you are OK, I ...
4 years, 3 months ago (2016-09-08 00:00:41 UTC) #5
mmenke
On 2016/09/08 00:00:41, bengr wrote: > On 2016/09/01 18:36:16, Raj wrote: > > mmenke: ptal ...
4 years, 3 months ago (2016-09-08 17:57:38 UTC) #6
Raj
cschuet: ptal components/policy/core/common/cloud/* justincohen: ptal components/search_provider_logos/* yoshiki: ptal google_apis/drive/* waffles: ptal components/update_client/* haven: ptal chrome/browser/extensions/api/image_writer_private/* ...
4 years, 3 months ago (2016-09-08 18:12:09 UTC) #8
justincohen
lgtm
4 years, 3 months ago (2016-09-08 18:13:40 UTC) #9
maxbogue
//components/sync lgtm
4 years, 3 months ago (2016-09-08 18:20:32 UTC) #10
yoshiki
google_apis/drive/* lgtm
4 years, 3 months ago (2016-09-09 16:08:21 UTC) #11
pfeldman
content/ lgtm
4 years, 3 months ago (2016-09-14 00:32:46 UTC) #14
Raj
tnagel: ptal components/policy/*
4 years, 3 months ago (2016-09-14 02:34:01 UTC) #16
waffles
https://codereview.chromium.org/2303653002/diff/20001/net/url_request/url_fetcher_delegate.h File net/url_request/url_fetcher_delegate.h (right): https://codereview.chromium.org/2303653002/diff/20001/net/url_request/url_fetcher_delegate.h#newcode28 net/url_request/url_fetcher_delegate.h:28: // expected total size of the response (or -1 ...
4 years, 3 months ago (2016-09-15 17:00:01 UTC) #17
Raj
waffles: ptal https://codereview.chromium.org/2303653002/diff/20001/net/url_request/url_fetcher_delegate.h File net/url_request/url_fetcher_delegate.h (right): https://codereview.chromium.org/2303653002/diff/20001/net/url_request/url_fetcher_delegate.h#newcode28 net/url_request/url_fetcher_delegate.h:28: // expected total size of the response ...
4 years, 3 months ago (2016-09-15 18:56:17 UTC) #19
waffles
components/update_client lgtm
4 years, 3 months ago (2016-09-15 19:24:54 UTC) #20
Raj
asargent: ptal chrome/browser/extensions/api/image_writer_private/write_from_url_operation.cc since haven@chromium.org is not reachable.
4 years, 3 months ago (2016-09-22 21:55:03 UTC) #22
asargent_no_longer_on_chrome
chrome/browser/extensions/api/image_writer_private/write_from_url_operation.cc lgtm
4 years, 3 months ago (2016-09-22 22:15:23 UTC) #23
bengr
components/precache lgtm
4 years, 3 months ago (2016-09-23 20:17:33 UTC) #24
Thiemo Nagel
components/policy lgtm
4 years, 2 months ago (2016-09-26 14:13:18 UTC) #25
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/2303653002/280001
4 years, 2 months ago (2016-09-27 04:15:16 UTC) #78
commit-bot: I haz the power
Committed patchset #4 (id:280001)
4 years, 2 months ago (2016-09-27 04:20:34 UTC) #80
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 04:24:01 UTC) #82
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/dc12c3dfd755611528561c6e48dec23ae59dea5f
Cr-Commit-Position: refs/heads/master@{#421101}

Powered by Google App Engine
This is Rietveld 408576698