Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: net/http/partial_data.h

Issue 1230113012: [net] Better StopCaching() handling for HttpCache::Transaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698