Chromium Code Reviews| 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 "base/time.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 | 11 |
| 12 class FtpResponseInfo { | 12 struct FtpResponseInfo { |
|
wtc
2009/08/25 20:52:50
Please change this back to 'class'.
We use 'class
| |
| 13 public: | 13 public: |
| 14 FtpResponseInfo() : is_directory_listing(false) { | 14 FtpResponseInfo() : auth_needed(false), is_directory_listing(false) { |
| 15 } | 15 } |
| 16 | 16 |
| 17 // Non-null when authentication is required. | 17 // True if authentication failed and valid authentication credentials are |
| 18 scoped_refptr<AuthChallengeInfo> auth_challenge; | 18 // needed. |
|
wtc
2009/08/25 20:52:50
Is a bool (auth_needed) all we need for FTP?
I gue
| |
| 19 bool auth_needed; | |
|
wtc
2009/08/25 20:52:50
Nit: rename this member needs_auth to match the
Ne
| |
| 19 | 20 |
| 20 // The time at which the request was made that resulted in this response. | 21 // The time at which the request was made that resulted in this response. |
| 21 // For cached responses, this time could be "far" in the past. | 22 // For cached responses, this time could be "far" in the past. |
| 22 base::Time request_time; | 23 base::Time request_time; |
| 23 | 24 |
| 24 // The time at which the response headers were received. For cached | 25 // The time at which the response headers were received. For cached |
| 25 // responses, this time could be "far" in the past. | 26 // responses, this time could be "far" in the past. |
| 26 base::Time response_time; | 27 base::Time response_time; |
| 27 | 28 |
| 28 // True if the response data is of a directory listing. | 29 // True if the response data is of a directory listing. |
| 29 bool is_directory_listing; | 30 bool is_directory_listing; |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 } // namespace net | 33 } // namespace net |
| 33 | 34 |
| 34 #endif // NET_FTP_FTP_RESPONSE_INFO_H_ | 35 #endif // NET_FTP_FTP_RESPONSE_INFO_H_ |
| OLD | NEW |