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 3 // LICENSE file. 4 5 #ifndef NET_FTP_FTP_RESPONSE_INFO_H_ 6 #define NET_FTP_FTP_RESPONSE_INFO_H_ 7 8 #include "base/time.h" 9 10 namespace net { 11 12 class FtpResponseInfo { 13 public: FtpResponseInfo()14 FtpResponseInfo() : needs_auth(false), is_directory_listing(false) { 15 } 16 17 // True if authentication failed and valid authentication credentials are 18 // needed. 19 bool needs_auth; 20 21 // The time at which the request was made that resulted in this response. 22 // For cached responses, this time could be "far" in the past. 23 base::Time request_time; 24 25 // The time at which the response headers were received. For cached 26 // responses, this time could be "far" in the past. 27 base::Time response_time; 28 29 // True if the response data is of a directory listing. 30 bool is_directory_listing; 31 }; 32 33 } // namespace net 34 35 #endif // NET_FTP_FTP_RESPONSE_INFO_H_ 36