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

Issue 2229983002: Send the list of used and unused resources for precache (Closed)

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

Description

Send the list of used and unused resources for precache When precache manifest is fetched, the list of used and unused resources corresponding to the top host are sent as request parameters in the manifest URL. The resource URLs are hashed individually and sent as base64 encoded string. BUG=626463 Committed: https://crrev.com/4284452ea2f25f75aa1cb6e2386850fedd81ffe8 Cr-Commit-Position: refs/heads/master@{#414721}

Patch Set 1 #

Total comments: 84

Patch Set 2 : added-test #

Total comments: 23

Patch Set 3 : Added more tests #

Total comments: 18

Patch Set 4 : Addressed comments, removed timestamp from proto #

Total comments: 6

Patch Set 5 : Addressed comments #

Total comments: 1

Patch Set 6 : Addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1400 lines, -335 lines) Patch
M components/components_tests.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/precache.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/precache/content/precache_manager.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M components/precache/content/precache_manager.cc View 1 2 3 4 chunks +10 lines, -7 lines 0 comments Download
M components/precache/content/precache_manager_unittest.cc View 1 2 3 4 5 chunks +24 lines, -9 lines 0 comments Download
M components/precache/core/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
M components/precache/core/precache_database.h View 1 2 7 chunks +36 lines, -4 lines 0 comments Download
M components/precache/core/precache_database.cc View 1 2 3 4 5 8 chunks +113 lines, -37 lines 0 comments Download
M components/precache/core/precache_database_unittest.cc View 1 2 3 4 5 11 chunks +145 lines, -10 lines 0 comments Download
M components/precache/core/precache_fetcher.h View 1 2 3 4 9 chunks +49 lines, -11 lines 0 comments Download
M components/precache/core/precache_fetcher.cc View 1 2 3 4 5 16 chunks +223 lines, -102 lines 0 comments Download
M components/precache/core/precache_fetcher_unittest.cc View 1 2 3 4 5 30 chunks +229 lines, -91 lines 0 comments Download
A components/precache/core/precache_referrer_host_table.h View 1 2 3 4 5 1 chunk +82 lines, -0 lines 0 comments Download
A components/precache/core/precache_referrer_host_table.cc View 1 2 3 4 5 1 chunk +123 lines, -0 lines 0 comments Download
A components/precache/core/precache_referrer_host_table_unittest.cc View 1 2 3 4 5 1 chunk +154 lines, -0 lines 0 comments Download
M components/precache/core/precache_session_table_unittest.cc View 6 chunks +11 lines, -17 lines 0 comments Download
M components/precache/core/precache_url_table.h View 1 2 3 4 5 2 chunks +29 lines, -7 lines 0 comments Download
M components/precache/core/precache_url_table.cc View 1 2 3 4 5 3 chunks +87 lines, -13 lines 0 comments Download
M components/precache/core/precache_url_table_unittest.cc View 1 8 chunks +62 lines, -18 lines 0 comments Download
M components/precache/core/proto/precache.proto View 1 2 3 4 3 chunks +12 lines, -2 lines 0 comments Download
M components/precache/core/proto/unfinished_work.proto View 1 2 3 4 2 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 48 (35 generated)
Raj
Adding unittests. https://codereview.chromium.org/2229983002/diff/1/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (left): https://codereview.chromium.org/2229983002/diff/1/components/precache/core/precache_fetcher.cc#oldcode346 components/precache/core/precache_fetcher.cc:346: // TODO(bengr): Consider accessing these directly from ...
4 years, 4 months ago (2016-08-09 22:56:48 UTC) #2
bengr
https://codereview.chromium.org/2229983002/diff/1/components/precache/content/precache_manager_unittest.cc File components/precache/content/precache_manager_unittest.cc (right): https://codereview.chromium.org/2229983002/diff/1/components/precache/content/precache_manager_unittest.cc#newcode411 components/precache/content/precache_manager_unittest.cc:411: 1))); // Pair("Precache.Latency.Prefetch", 1), Please remove the dead code. ...
4 years, 4 months ago (2016-08-11 18:49:15 UTC) #3
Raj
ptal. Maybe we could split into multiple CLs, for easy merge to M53. Reduced functionality ...
4 years, 4 months ago (2016-08-11 18:58:52 UTC) #5
sclittle
Did a first pass, I'll review again after these comments are resolved. https://codereview.chromium.org/2229983002/diff/1/components/precache/core/precache_database.h File components/precache/core/precache_database.h ...
4 years, 4 months ago (2016-08-11 22:52:36 UTC) #6
Raj
Addressed comments. Added more unittests. https://codereview.chromium.org/2229983002/diff/1/components/precache/content/precache_manager_unittest.cc File components/precache/content/precache_manager_unittest.cc (right): https://codereview.chromium.org/2229983002/diff/1/components/precache/content/precache_manager_unittest.cc#newcode411 components/precache/content/precache_manager_unittest.cc:411: 1))); // Pair("Precache.Latency.Prefetch", 1), ...
4 years, 4 months ago (2016-08-12 19:04:22 UTC) #7
sclittle
It's looking better, here's some more comments. https://codereview.chromium.org/2229983002/diff/1/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2229983002/diff/1/components/precache/core/precache_fetcher.cc#newcode167 components/precache/core/precache_fetcher.cc:167: hashes.append(reinterpret_cast<const char*>(sha1_hash), ...
4 years, 4 months ago (2016-08-15 20:13:10 UTC) #8
Raj
https://codereview.chromium.org/2229983002/diff/20001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2229983002/diff/20001/components/precache/core/precache_fetcher.cc#newcode163 components/precache/core/precache_fetcher.cc:163: const int hash_bytes_size = 8; On 2016/08/15 20:13:09, sclittle ...
4 years, 4 months ago (2016-08-16 17:54:37 UTC) #10
sclittle
https://codereview.chromium.org/2229983002/diff/20001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2229983002/diff/20001/components/precache/core/precache_fetcher.cc#newcode523 components/precache/core/precache_fetcher.cc:523: std::deque<std::string> top_hosts_to_fetch; nit: Why is this a std::deque? Could ...
4 years, 4 months ago (2016-08-16 21:05:06 UTC) #11
Raj
ptal https://codereview.chromium.org/2229983002/diff/20001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2229983002/diff/20001/components/precache/core/precache_fetcher.cc#newcode523 components/precache/core/precache_fetcher.cc:523: std::deque<std::string> top_hosts_to_fetch; On 2016/08/16 21:05:05, sclittle wrote: > ...
4 years, 4 months ago (2016-08-18 00:23:24 UTC) #12
sclittle
lgtm % nit. https://codereview.chromium.org/2229983002/diff/20001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2229983002/diff/20001/components/precache/core/precache_fetcher.cc#newcode562 components/precache/core/precache_fetcher.cc:562: void PrecacheFetcher::RetrieveManifestInfo( On 2016/08/18 00:23:23, Raj ...
4 years, 3 months ago (2016-08-24 02:39:44 UTC) #13
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/2229983002/220001
4 years, 3 months ago (2016-08-26 15:38:30 UTC) #45
commit-bot: I haz the power
Committed patchset #6 (id:220001)
4 years, 3 months ago (2016-08-26 15:43:06 UTC) #46
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 15:44:37 UTC) #48
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4284452ea2f25f75aa1cb6e2386850fedd81ffe8
Cr-Commit-Position: refs/heads/master@{#414721}

Powered by Google App Engine
This is Rietveld 408576698