Chromium Code Reviews| Index: content/browser/appcache/appcache_job.h |
| diff --git a/content/browser/appcache/appcache_job.h b/content/browser/appcache/appcache_job.h |
| index c18c772eb8a5ea5ba60756215ac147f7be8e5f71..638eec2f61877fa9d0e5b6dd53db55730c6cef1e 100644 |
| --- a/content/browser/appcache/appcache_job.h |
| +++ b/content/browser/appcache/appcache_job.h |
| @@ -12,9 +12,12 @@ |
| #include "base/sequence_checker.h" |
| #include "base/strings/string16.h" |
| #include "content/common/content_export.h" |
| +#include "net/http/http_byte_range.h" |
| #include "url/gurl.h" |
| namespace net { |
| +class HttpRequestHeaders; |
| +class HttpResponseInfo; |
| class NetworkDelegate; |
| class URLRequestJob; |
| } |
| @@ -24,6 +27,8 @@ namespace content { |
| class AppCacheEntry; |
| class AppCacheHost; |
| class AppCacheRequest; |
| +class AppCacheResponseInfo; |
| +class AppCacheResponseReader; |
| class AppCacheStorage; |
| class AppCacheURLLoaderJob; |
| class URLRequestJob; |
| @@ -116,6 +121,11 @@ class CONTENT_EXPORT AppCacheJob : public base::SupportsWeakPtr<AppCacheJob> { |
| protected: |
| AppCacheJob(); |
| + bool is_range_request() const { return range_requested_.IsValid(); } |
| + |
| + void InitializeRangeRequestInfo(const net::HttpRequestHeaders& headers); |
| + void SetupRangeResponse(AppCacheResponseReader* reader); |
| + |
| SEQUENCE_CHECKER(sequence_checker_); |
| // Set to true if the AppCache entry is not found. |
| @@ -124,6 +134,14 @@ class CONTENT_EXPORT AppCacheJob : public base::SupportsWeakPtr<AppCacheJob> { |
| // The jobs delivery status. |
| DeliveryType delivery_type_; |
| + // Byte range request if any. |
| + net::HttpByteRange range_requested_; |
|
michaeln
2017/06/14 02:37:24
nit: keep the two range related data members next
ananta
2017/06/14 18:52:18
Done.
|
| + |
| + // The response details. |
| + scoped_refptr<AppCacheResponseInfo> info_; |
| + |
| + std::unique_ptr<net::HttpResponseInfo> range_response_info_; |
| + |
| base::WeakPtrFactory<AppCacheJob> weak_factory_; |
| DISALLOW_COPY_AND_ASSIGN(AppCacheJob); |