summaryrefslogtreecommitdiffstats
path: root/net/http/partial_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/partial_data.h')
-rw-r--r--net/http/partial_data.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/http/partial_data.h b/net/http/partial_data.h
index 460ff21..fcbec57 100644
--- a/net/http/partial_data.h
+++ b/net/http/partial_data.h
@@ -32,7 +32,8 @@ class IOBuffer;
class PartialData {
public:
PartialData()
- : range_present_(false), final_range_(false), sparse_entry_(true) {}
+ : range_present_(false), final_range_(false), sparse_entry_(true),
+ truncated_(false) {}
~PartialData() {}
// Performs initialization of the object by parsing the request |headers|
@@ -62,9 +63,10 @@ class PartialData {
bool IsLastRange() const;
// Extracts info from headers already stored in the cache. Returns false if
- // there is any problem with the headers.
+ // there is any problem with the headers. |truncated| should be true if we
+ // have an incomplete 200 entry.
bool UpdateFromStoredHeaders(const HttpResponseHeaders* headers,
- disk_cache::Entry* entry);
+ disk_cache::Entry* entry, bool truncated);
// Returns true if the requested range is valid given the stored data.
bool IsRequestedRangeOK();
@@ -111,6 +113,7 @@ class PartialData {
bool range_present_; // True if next range entry is already stored.
bool final_range_;
bool sparse_entry_;
+ bool truncated_; // We have an incomplete 200 stored.
DISALLOW_COPY_AND_ASSIGN(PartialData);
};