Add pipeline processing for download completed and archives import

Desktop / Chromium - Jian Li [chromium.org] - 8 August 2017 16:29 EDT

Bug: 701939 Change-Id: Icbe44c4e4638621c514e698186e49e31701ee8f2 Reviewed-on: https://chromium-review.googlesource.com/588031

6d8943a Add pipeline processing for download completed and archives import
.../prefetch/prefetch_importer_impl.cc | 53 +++---
.../prefetch/prefetch_importer_impl.h | 17 +-
.../prefetch/prefetch_service_factory.cc | 4 +-
components/offline_pages/core/prefetch/BUILD.gn | 10 ++
.../core/prefetch/download_completed_task.cc | 108 +++++++++++++
.../core/prefetch/download_completed_task.h | 39 +++++
.../prefetch/download_completed_task_unittest.cc | 153 ++++++++++++++++++
.../core/prefetch/import_archives_task.cc | 107 ++++++++++++
.../core/prefetch/import_archives_task.h | 42 +++++
.../core/prefetch/import_archives_task_unittest.cc | 180 +++++++++++++++++++++
.../core/prefetch/import_completed_task.cc | 69 ++++++++
.../core/prefetch/import_completed_task.h | 40 +++++
.../prefetch/import_completed_task_unittest.cc | 134 +++++++++++++++
.../core/prefetch/prefetch_dispatcher.h | 7 +
.../core/prefetch/prefetch_dispatcher_impl.cc | 40 +++++
.../core/prefetch/prefetch_dispatcher_impl.h | 3 +
.../core/prefetch/prefetch_downloader.cc | 12 +-
.../core/prefetch/prefetch_importer.cc | 18 +++
.../core/prefetch/prefetch_importer.h | 30 ++--
.../offline_pages/core/prefetch/prefetch_item.cc | 3 +-
.../offline_pages/core/prefetch/prefetch_item.h | 10 ++
.../offline_pages/core/prefetch/prefetch_types.cc | 13 +-
.../offline_pages/core/prefetch/prefetch_types.h | 27 +++-
.../core/prefetch/store/prefetch_store.cc | 5 +-
.../prefetch/store/prefetch_store_test_util.cc | 15 +-
.../core/prefetch/store/prefetch_store_utils.h | 1 +
.../core/prefetch/test_prefetch_dispatcher.cc | 6 +
.../core/prefetch/test_prefetch_dispatcher.h | 3 +
.../core/prefetch/test_prefetch_importer.h | 11 +-
29 files changed, 1082 insertions(+), 78 deletions(-)

Upstream: git.chromium.org


  • Share