Chromium Code Reviews| Index: net/http/partial_data.h |
| diff --git a/net/http/partial_data.h b/net/http/partial_data.h |
| index 649d4623e0120bea74d6701567723d64b25bf1c6..651ef6388253aa4b12254f7a12ac1a301d129513 100644 |
| --- a/net/http/partial_data.h |
| +++ b/net/http/partial_data.h |
| @@ -78,6 +78,9 @@ class PartialData { |
| // Sets the byte current range to start again at zero (for a truncated entry). |
| void SetRangeToStartDownload(); |
| + // Switch to network reads for the remainder of the request. |
|
rvargas (doing something else)
2015/08/19 23:46:39
Document what is the return value (the caller is a
asanka
2015/09/04 19:09:04
Done.
|
| + bool SkipCacheForRemainder(); |
| + |
| // Returns true if the requested range is valid given the stored data. |
| bool IsRequestedRangeOK(); |
| @@ -121,7 +124,7 @@ class PartialData { |
| private: |
| // Returns the length to use when scanning the cache. |
| - int GetNextRangeLen(); |
| + int64 GetNextRangeLen(); |
| // Completion routine for our callback. |
| void GetAvailableRangeCompleted(int64* start, int result); |
| @@ -130,7 +133,7 @@ class PartialData { |
| int64 current_range_end_; |
| int64 cached_start_; |
| int64 resource_size_; |
| - int cached_min_len_; |
| + int64 cached_min_len_; |
| HttpByteRange byte_range_; // The range requested by the user. |
| // The clean set of extra headers (no ranges). |
| HttpRequestHeaders extra_headers_; |