summaryrefslogtreecommitdiffstats
path: root/net/ftp/ftp_response_info.h
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-11 17:01:17 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-11 17:01:17 +0000
commit581e0d06dc3599bec309d34203b6b5693446fe7f (patch)
treec8c11535827d0b5302d07b257c12d998f8a9edb3 /net/ftp/ftp_response_info.h
parenta63bd1137e938034873b318355731c656caf05fe (diff)
downloadchromium_src-581e0d06dc3599bec309d34203b6b5693446fe7f.zip
chromium_src-581e0d06dc3599bec309d34203b6b5693446fe7f.tar.gz
chromium_src-581e0d06dc3599bec309d34203b6b5693446fe7f.tar.bz2
FTP Transaction code for new Portable FTP code.
The patch is contributed by Ibrar Ahmed <ibrar.ahmad@gmail.com>. Original review: http://codereview.chromium.org/39130 R=wtc http://crbug.com/4965 TEST=None. Work in progress. Review URL: http://codereview.chromium.org/115137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15760 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ftp/ftp_response_info.h')
-rw-r--r--net/ftp/ftp_response_info.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/net/ftp/ftp_response_info.h b/net/ftp/ftp_response_info.h
index 398f050..b3c3361 100644
--- a/net/ftp/ftp_response_info.h
+++ b/net/ftp/ftp_response_info.h
@@ -11,17 +11,22 @@ namespace net {
class FtpResponseInfo {
public:
+ FtpResponseInfo() : is_directory_listing(false) {
+ }
+
// Non-null when authentication is required.
scoped_refptr<AuthChallengeInfo> auth_challenge;
- // The length of the response. -1 means unspecified.
- int64 content_length;
+ // The time at which the request was made that resulted in this response.
+ // For cached responses, this time could be "far" in the past.
+ base::Time request_time;
+
+ // The time at which the response headers were received. For cached
+ // responses, this time could be "far" in the past.
+ base::Time response_time;
// True if the response data is of a directory listing.
bool is_directory_listing;
-
- FtpResponseInfo() : content_length(-1), is_directory_listing(false) {
- }
};
} // namespace net