Add support for HTTP range requests in the AppCacheURLLoaderImpl class

Desktop / Chromium - ananta [chromium.org] - 15 June 2017 00:27 EDT

The functions in the AppCacheURLRequest class which parsed the HTTP header to initialize the range information and setup the range response on receiving an AppCache response have been moved to the AppCacheJob base class. The member variables to track the AppCache response, the range response and the input range requests have also been moved to the base class.

Functions moved/added to the AppCacheJob base class are: 1. InitializeRangeRequestInfo(): Initializes the input range request info. 2. SetupRangeResponse : Sets up the range response information.

BUG=715632

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

4c0cb6b Add support for HTTP range requests in the AppCacheURLLoaderImpl class.
content/browser/appcache/appcache_job.cc | 45 +++++++++++++++++++++-
content/browser/appcache/appcache_job.h | 21 ++++++++++
.../browser/appcache/appcache_url_loader_job.cc | 19 ++++++---
content/browser/appcache/appcache_url_loader_job.h | 6 ---
.../browser/appcache/appcache_url_request_job.cc | 39 +------------------
.../browser/appcache/appcache_url_request_job.h | 8 ----
6 files changed, 80 insertions(+), 58 deletions(-)

Upstream: git.chromium.org


  • Share