summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_headers.h
diff options
context:
space:
mode:
authorbengr@google.com <bengr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-24 23:54:50 +0000
committerbengr@google.com <bengr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-24 23:54:50 +0000
commit7a299a9dbabb337957790c5b1d40500a23d0befe (patch)
tree8e342fc64130e1366b6f1d326092abcd87c17ec2 /net/http/http_response_headers.h
parent0dae9eb4a377ff0c237857486a8a1aa51b9f71a5 (diff)
downloadchromium_src-7a299a9dbabb337957790c5b1d40500a23d0befe.zip
chromium_src-7a299a9dbabb337957790c5b1d40500a23d0befe.tar.gz
chromium_src-7a299a9dbabb337957790c5b1d40500a23d0befe.tar.bz2
Coalesce payload length statistics in ChromeNetworkDelegate
BUG= Review URL: https://chromiumcodereview.appspot.com/11137022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163956 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers.h')
-rw-r--r--net/http/http_response_headers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h
index d2586d2..3ed1a74 100644
--- a/net/http/http_response_headers.h
+++ b/net/http/http_response_headers.h
@@ -230,6 +230,10 @@ class NET_EXPORT HttpResponseHeaders
// no such header in the response.
int64 GetContentLength() const;
+ // Extracts the value of the specified header or returns -1 if there is no
+ // such header in the response.
+ int64 GetInt64HeaderValue(const std::string& header) const;
+
// Extracts the values in a Content-Range header and returns true if they are
// valid for a 206 response; otherwise returns false.
// The following values will be outputted: