| OLD | NEW |
| 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_ |
| OLD | NEW |