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

Issue 2762673002: predictors: Pass manifests from Bork to store in ResourcePrefetchPredictor. (Closed)

Created:
3 years, 9 months ago by alexilin
Modified:
3 years, 9 months ago
Reviewers:
Benoit L
CC:
chromium-reviews, jam, darin-cc_chromium.org, wifiprefetch-reviews_google.com
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

predictors: Pass manifests from Bork to store in ResourcePrefetchPredictor. This CL makes ResourcePrefetchPredictor accessible from PrecacheManager to notify about new manifests through PrecacheManifestDelegate interface. These manifests are saved then in a dedicated table on a ResourcePrefetchPredictor side. BUG=699115 Review-Url: https://codereview.chromium.org/2762673002 Cr-Commit-Position: refs/heads/master@{#458735} Committed: https://chromium.googlesource.com/chromium/src/+/b0b2d6ffa58b392bd30b49465ba29590c1616fe5

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 8

Patch Set 3 : Rename PrecacheManifestDelegate to PrecacheManager::Delegate. #

Total comments: 9

Patch Set 4 : Move a constant to the implementation file. #

Patch Set 5 : Add delegate tests for PrecacheFetcher. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -8 lines) Patch
M chrome/browser/precache/precache_manager_factory.cc View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.h View 1 2 5 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 2 3 3 chunks +49 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_test_util.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_test_util.cc View 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_unittest.cc View 1 9 chunks +92 lines, -1 line 0 comments Download
M components/precache/content/precache_manager.h View 1 2 5 chunks +15 lines, -0 lines 0 comments Download
M components/precache/content/precache_manager.cc View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M components/precache/content/precache_manager_unittest.cc View 1 2 4 chunks +11 lines, -1 line 0 comments Download
M components/precache/core/precache_fetcher.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/precache/core/precache_fetcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/precache/core/precache_fetcher_unittest.cc View 1 2 3 4 41 chunks +68 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
alexilin
Hi Benoit, Sorry for the size of review, there are many small changes in plenty ...
3 years, 9 months ago (2017-03-20 15:23:49 UTC) #2
Benoit L
https://codereview.chromium.org/2762673002/diff/20001/chrome/browser/precache/precache_manager_factory.cc File chrome/browser/precache/precache_manager_factory.cc (right): https://codereview.chromium.org/2762673002/diff/20001/chrome/browser/precache/precache_manager_factory.cc#newcode66 chrome/browser/precache/precache_manager_factory.cc:66: predictors::ResourcePrefetchPredictorFactory::GetForProfile( Does this cause issues if the prefetcher is ...
3 years, 9 months ago (2017-03-20 16:51:54 UTC) #11
alexilin
https://codereview.chromium.org/2762673002/diff/20001/chrome/browser/precache/precache_manager_factory.cc File chrome/browser/precache/precache_manager_factory.cc (right): https://codereview.chromium.org/2762673002/diff/20001/chrome/browser/precache/precache_manager_factory.cc#newcode66 chrome/browser/precache/precache_manager_factory.cc:66: predictors::ResourcePrefetchPredictorFactory::GetForProfile( On 2017/03/20 16:51:53, Benoit L wrote: > Does ...
3 years, 9 months ago (2017-03-21 09:50:35 UTC) #12
Benoit L
Thanks! Only small comments and a question: how do we deal with the stale manifests ...
3 years, 9 months ago (2017-03-21 13:24:15 UTC) #13
alexilin
Well, we don't clean other predictor tables, now it works like LRU cache. If we ...
3 years, 9 months ago (2017-03-21 15:32:13 UTC) #14
Benoit L
Thanks for the answers. lgtm Per offline discussion, handling stale versions will be done in ...
3 years, 9 months ago (2017-03-21 15:46:15 UTC) #15
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/2762673002/80001
3 years, 9 months ago (2017-03-22 13:42:16 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 13:47:04 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b0b2d6ffa58b392bd30b49465ba2...

Powered by Google App Engine
This is Rietveld 408576698