Updating trunk VERSION from 1014.0 to 1015.0
[chromium-blink-merge.git] / net / ftp / ftp_response_info.h
blob81d09bdf4b9d0c28637da22b11305ac3ac8d84fe
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
3 // found in the LICENSE file.
5 #ifndef NET_FTP_FTP_RESPONSE_INFO_H_
6 #define NET_FTP_FTP_RESPONSE_INFO_H_
7 #pragma once
9 #include "base/time.h"
10 #include "net/base/host_port_pair.h"
12 namespace net {
14 class FtpResponseInfo {
15 public:
16 FtpResponseInfo();
17 ~FtpResponseInfo();
19 // True if authentication failed and valid authentication credentials are
20 // needed.
21 bool needs_auth;
23 // The time at which the request was made that resulted in this response.
24 // For cached responses, this time could be "far" in the past.
25 base::Time request_time;
27 // The time at which the response headers were received. For cached
28 // responses, this time could be "far" in the past.
29 base::Time response_time;
31 // Expected content size, in bytes, as reported by SIZE command. Only valid
32 // for file downloads. -1 means unknown size.
33 int64 expected_content_size;
35 // True if the response data is of a directory listing.
36 bool is_directory_listing;
38 // Remote address of the socket which fetched this resource.
39 HostPortPair socket_address;
42 } // namespace net
44 #endif // NET_FTP_FTP_RESPONSE_INFO_H_