diff options
author | eustas@chromium.org <eustas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-24 15:18:19 +0000 |
---|---|---|
committer | eustas@chromium.org <eustas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-24 15:18:19 +0000 |
commit | b8015c43fdc2ec814384955288c3771e10b54f17 (patch) | |
tree | f1a417a2940d40de9d5fff505b116006541b0741 /net/http/http_transaction.h | |
parent | 88a907c0bcc93efb850785941986eab829edc654 (diff) | |
download | chromium_src-b8015c43fdc2ec814384955288c3771e10b54f17.zip chromium_src-b8015c43fdc2ec814384955288c3771e10b54f17.tar.gz chromium_src-b8015c43fdc2ec814384955288c3771e10b54f17.tar.bz2 |
Implement GetTotalReceivedBytes for http transaction.
BUG=111052
Review URL: https://codereview.chromium.org/99723004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_transaction.h')
-rw-r--r-- | net/http/http_transaction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/http/http_transaction.h b/net/http/http_transaction.h index 849d03a..3776998 100644 --- a/net/http/http_transaction.h +++ b/net/http/http_transaction.h @@ -106,6 +106,9 @@ class NET_EXPORT_PRIVATE HttpTransaction { // otherwise, returns false and does not modify headers. virtual bool GetFullRequestHeaders(HttpRequestHeaders* headers) const = 0; + // Get the number of bytes received from network. + virtual int64 GetTotalReceivedBytes() const = 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 |