Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1476)

Side by Side Diff: net/ftp/ftp_response_info.h

Issue 6488010: Propagate the remote socket address to URLRequest and to ViewHostMsg_FrameNavigate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address eroman's comments Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "net/base/host_port_pair.h"
10 11
11 namespace net { 12 namespace net {
12 13
13 class FtpResponseInfo { 14 class FtpResponseInfo {
14 public: 15 public:
15 FtpResponseInfo() 16 FtpResponseInfo()
16 : needs_auth(false), 17 : needs_auth(false),
17 expected_content_size(-1), 18 expected_content_size(-1),
18 is_directory_listing(false) { 19 is_directory_listing(false) {
19 } 20 }
20 21
21 // True if authentication failed and valid authentication credentials are 22 // True if authentication failed and valid authentication credentials are
22 // needed. 23 // needed.
23 bool needs_auth; 24 bool needs_auth;
24 25
25 // The time at which the request was made that resulted in this response. 26 // The time at which the request was made that resulted in this response.
26 // For cached responses, this time could be "far" in the past. 27 // For cached responses, this time could be "far" in the past.
27 base::Time request_time; 28 base::Time request_time;
28 29
29 // The time at which the response headers were received. For cached 30 // The time at which the response headers were received. For cached
30 // responses, this time could be "far" in the past. 31 // responses, this time could be "far" in the past.
31 base::Time response_time; 32 base::Time response_time;
32 33
33 // Expected content size, in bytes, as reported by SIZE command. Only valid 34 // Expected content size, in bytes, as reported by SIZE command. Only valid
34 // for file downloads. -1 means unknown size. 35 // for file downloads. -1 means unknown size.
35 int64 expected_content_size; 36 int64 expected_content_size;
36 37
37 // True if the response data is of a directory listing. 38 // True if the response data is of a directory listing.
38 bool is_directory_listing; 39 bool is_directory_listing;
40
41 // Remote address of the socket which fetched this resource.
42 HostPortPair socket_address;
39 }; 43 };
40 44
41 } // namespace net 45 } // namespace net
42 46
43 #endif // NET_FTP_FTP_RESPONSE_INFO_H_ 47 #endif // NET_FTP_FTP_RESPONSE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698