| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the 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 <stdint.h> |
| 9 |
| 8 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 9 #include "net/base/host_port_pair.h" | 11 #include "net/base/host_port_pair.h" |
| 10 | 12 |
| 11 namespace net { | 13 namespace net { |
| 12 | 14 |
| 13 class FtpResponseInfo { | 15 class FtpResponseInfo { |
| 14 public: | 16 public: |
| 15 FtpResponseInfo(); | 17 FtpResponseInfo(); |
| 16 ~FtpResponseInfo(); | 18 ~FtpResponseInfo(); |
| 17 | 19 |
| 18 // True if authentication failed and valid authentication credentials are | 20 // True if authentication failed and valid authentication credentials are |
| 19 // needed. | 21 // needed. |
| 20 bool needs_auth; | 22 bool needs_auth; |
| 21 | 23 |
| 22 // The time at which the request was made that resulted in this response. | 24 // The time at which the request was made that resulted in this response. |
| 23 // For cached responses, this time could be "far" in the past. | 25 // For cached responses, this time could be "far" in the past. |
| 24 base::Time request_time; | 26 base::Time request_time; |
| 25 | 27 |
| 26 // The time at which the response headers were received. For cached | 28 // The time at which the response headers were received. For cached |
| 27 // responses, this time could be "far" in the past. | 29 // responses, this time could be "far" in the past. |
| 28 base::Time response_time; | 30 base::Time response_time; |
| 29 | 31 |
| 30 // Expected content size, in bytes, as reported by SIZE command. Only valid | 32 // Expected content size, in bytes, as reported by SIZE command. Only valid |
| 31 // for file downloads. -1 means unknown size. | 33 // for file downloads. -1 means unknown size. |
| 32 int64 expected_content_size; | 34 int64_t expected_content_size; |
| 33 | 35 |
| 34 // True if the response data is of a directory listing. | 36 // True if the response data is of a directory listing. |
| 35 bool is_directory_listing; | 37 bool is_directory_listing; |
| 36 | 38 |
| 37 // Remote address of the socket which fetched this resource. | 39 // Remote address of the socket which fetched this resource. |
| 38 HostPortPair socket_address; | 40 HostPortPair socket_address; |
| 39 }; | 41 }; |
| 40 | 42 |
| 41 } // namespace net | 43 } // namespace net |
| 42 | 44 |
| 43 #endif // NET_FTP_FTP_RESPONSE_INFO_H_ | 45 #endif // NET_FTP_FTP_RESPONSE_INFO_H_ |
| OLD | NEW |