summaryrefslogtreecommitdiffstats
path: root/net/http/http_transaction.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-12 17:52:47 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-12 17:52:47 +0000
commit5c04f72431dc072fded17be7a9620b724f314821 (patch)
treeb1aad621601276eaca1bd018454b29e9b9a9db52 /net/http/http_transaction.h
parent071162a96601d92c90feb60f75b74af07ec4934a (diff)
downloadchromium_src-5c04f72431dc072fded17be7a9620b724f314821.zip
chromium_src-5c04f72431dc072fded17be7a9620b724f314821.tar.gz
chromium_src-5c04f72431dc072fded17be7a9620b724f314821.tar.bz2
net: Notify the http job and cache transaction about a filter
completing the request (returning 0 bytes from a read). BUG=91898 TEST=net_unittests Review URL: http://codereview.chromium.org/7569027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96576 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_transaction.h')
-rw-r--r--net/http/http_transaction.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_transaction.h b/net/http/http_transaction.h
index 400c91f..3e702ea 100644
--- a/net/http/http_transaction.h
+++ b/net/http/http_transaction.h
@@ -96,6 +96,12 @@ class NET_EXPORT_PRIVATE HttpTransaction {
// Stops further caching of this request by the HTTP cache, if there is any.
virtual void StopCaching() = 0;
+ // Called to tell the transaction that we have successfully reached the end
+ // 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).
+ virtual void DoneReading() = 0;
+
// Returns the response info for this transaction or NULL if the response
// info is not available.
virtual const HttpResponseInfo* GetResponseInfo() const = 0;