summaryrefslogtreecommitdiffstats
path: root/net/ftp/ftp_response_info.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-13 15:07:05 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-13 15:07:05 +0000
commit8d76a4a3b1051c55c772f46fa9da8531ddb4efc3 (patch)
tree9ba2058b95196be5136167fa4713e10baac26b2f /net/ftp/ftp_response_info.h
parent35017006d5a0b454c21d8337280877f15a1fdafe (diff)
downloadchromium_src-8d76a4a3b1051c55c772f46fa9da8531ddb4efc3.zip
chromium_src-8d76a4a3b1051c55c772f46fa9da8531ddb4efc3.tar.gz
chromium_src-8d76a4a3b1051c55c772f46fa9da8531ddb4efc3.tar.bz2
Pass the file size infomration from the FTP network transaction
to higher parts of the network stack. BUG=23794 TEST=Covered by net_unittest, also see the bug. Review URL: http://codereview.chromium.org/601027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ftp/ftp_response_info.h')
-rw-r--r--net/ftp/ftp_response_info.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/ftp/ftp_response_info.h b/net/ftp/ftp_response_info.h
index 9c94064..daec6c2 100644
--- a/net/ftp/ftp_response_info.h
+++ b/net/ftp/ftp_response_info.h
@@ -11,7 +11,10 @@ namespace net {
class FtpResponseInfo {
public:
- FtpResponseInfo() : needs_auth(false), is_directory_listing(false) {
+ FtpResponseInfo()
+ : needs_auth(false),
+ expected_content_size(-1),
+ is_directory_listing(false) {
}
// True if authentication failed and valid authentication credentials are
@@ -26,6 +29,10 @@ class FtpResponseInfo {
// responses, this time could be "far" in the past.
base::Time response_time;
+ // Expected content size, in bytes, as reported by SIZE command. Only valid
+ // for file downloads. -1 means unknown size.
+ int64 expected_content_size;
+
// True if the response data is of a directory listing.
bool is_directory_listing;
};