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

Unified Diff: net/http/http_transaction.h

Issue 23710059: Release the cache entry on deferred redirect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable new tests on Chrome Frame Created 7 years, 3 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/http_transaction.h
diff --git a/net/http/http_transaction.h b/net/http/http_transaction.h
index ec3fc088a03ef26cd2f1ad2caf430b1f8409303b..a3be6c92cbdbe2a334195a6c518d2238a0e3f9c6 100644
--- a/net/http/http_transaction.h
+++ b/net/http/http_transaction.h
@@ -109,6 +109,11 @@ class NET_EXPORT_PRIVATE HttpTransaction {
// of the stream. This is equivalent to performing an extra Read() at the end
// that should return 0 bytes. This method should not be called if the
// transaction is busy processing a previous operation (like a pending Read).
+ // This is used to inform the cache that the response was not canceled
rvargas (doing something else) 2013/09/17 19:53:25 nit: remove this sentence... or replace "cache" wi
davidben 2013/09/17 22:16:04 Done.
+ // prematurely.
+ //
+ // DoneReading may also be called before the first Read() to notify that the
+ // entire response body is to be ignored (e.g., in a redirect).
virtual void DoneReading() = 0;
// Returns the response info for this transaction or NULL if the response

Powered by Google App Engine
This is Rietveld 408576698