Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: net/ftp/ftp_response_info.h

Issue 115137: FTP Transaction code for new Portable FTP code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/ftp/ftp_request_info.h ('k') | net/ftp/ftp_transaction.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef NET_FTP_FTP_RESPONSE_INFO_H_ 5 #ifndef NET_FTP_FTP_RESPONSE_INFO_H_
6 #define NET_FTP_FTP_RESPONSE_INFO_H_ 6 #define NET_FTP_FTP_RESPONSE_INFO_H_
7 7
8 #include "net/base/auth.h" 8 #include "net/base/auth.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 class FtpResponseInfo { 12 class FtpResponseInfo {
13 public: 13 public:
14 FtpResponseInfo() : is_directory_listing(false) {
15 }
16
14 // Non-null when authentication is required. 17 // Non-null when authentication is required.
15 scoped_refptr<AuthChallengeInfo> auth_challenge; 18 scoped_refptr<AuthChallengeInfo> auth_challenge;
16 19
17 // The length of the response. -1 means unspecified. 20 // The time at which the request was made that resulted in this response.
18 int64 content_length; 21 // For cached responses, this time could be "far" in the past.
22 base::Time request_time;
23
24 // The time at which the response headers were received. For cached
25 // responses, this time could be "far" in the past.
26 base::Time response_time;
19 27
20 // True if the response data is of a directory listing. 28 // True if the response data is of a directory listing.
21 bool is_directory_listing; 29 bool is_directory_listing;
22
23 FtpResponseInfo() : content_length(-1), is_directory_listing(false) {
24 }
25 }; 30 };
26 31
27 } // namespace net 32 } // namespace net
28 33
29 #endif // NET_FTP_FTP_RESPONSE_INFO_H_ 34 #endif // NET_FTP_FTP_RESPONSE_INFO_H_
OLDNEW
« no previous file with comments | « net/ftp/ftp_request_info.h ('k') | net/ftp/ftp_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698