predictors: Prefetch resources from manifest

Desktop / Chromium - alexilin [chromium.org] - 19 April 2017 13:01 EDT

ResourcePrefetchPredictor tries to prefetch resources from a precache manifest if there is no available prediction based on local history. This CL also adds the check for the manifest age before save it to the database.

BUG=699115

Review-Url: https://codereview.chromium.org/2825693002 Cr-Commit-Position: refs/heads/master@{#465642}

ff7d03b predictors: Prefetch resources from manifest.
.../predictors/resource_prefetch_predictor.cc | 90 +++++++++++++++++---
.../predictors/resource_prefetch_predictor.h | 11 ++-
.../resource_prefetch_predictor_test_util.cc | 7 +-
.../resource_prefetch_predictor_test_util.h | 2 +-
.../resource_prefetch_predictor_unittest.cc | 97 +++++++++++++++++++---
5 files changed, 176 insertions(+), 31 deletions(-)

Upstream: git.chromium.org


  • Share