[Offline Pages] Prefetching - add GetOperation action task

Desktop / Chromium - Justin DeWitt [chromium.org] - 7 August 2017 19:52 EDT

This queries the database for available operations to fetch, updates the state, and fetches the operations from the network.

Bug: 701939 Change-Id: Iad6b21e62f7a9f2c744e1c999e91e4bb088f87da Reviewed-on: https://chromium-review.googlesource.com/592012 Commit-Queue: Justin DeWitt

9c2de32 [Offline Pages] Prefetching - add GetOperation action task.
.../core/prefetch/get_operation_task.cc | 92 +++++++++++++++++----
.../core/prefetch/get_operation_task.h | 14 +++-
.../core/prefetch/get_operation_task_unittest.cc | 94 +++++++++++++++++++---
.../core/prefetch/prefetch_dispatcher_impl.cc | 7 ++
.../prefetch/store/prefetch_store_test_util.cc | 17 +++-
.../core/prefetch/store/prefetch_store_test_util.h | 7 +-
.../offline_pages/core/prefetch/task_test_base.cc | 16 ++++
.../offline_pages/core/prefetch/task_test_base.h | 3 +
8 files changed, 213 insertions(+), 37 deletions(-)

Upstream: git.chromium.org


  • Share