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

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: 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 <string>
10
9 #include "base/time.h" 11 #include "base/time.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 : needs_auth(false), 18 : needs_auth(false),
17 expected_content_size(-1), 19 expected_content_size(-1),
18 is_directory_listing(false) { 20 is_directory_listing(false) {
(...skipping 10 matching lines...) Expand all
29 // The time at which the response headers were received. For cached 31 // The time at which the response headers were received. For cached
30 // responses, this time could be "far" in the past. 32 // responses, this time could be "far" in the past.
31 base::Time response_time; 33 base::Time response_time;
32 34
33 // Expected content size, in bytes, as reported by SIZE command. Only valid 35 // Expected content size, in bytes, as reported by SIZE command. Only valid
34 // for file downloads. -1 means unknown size. 36 // for file downloads. -1 means unknown size.
35 int64 expected_content_size; 37 int64 expected_content_size;
36 38
37 // True if the response data is of a directory listing. 39 // True if the response data is of a directory listing.
38 bool is_directory_listing; 40 bool is_directory_listing;
41
42 // Remote address of the socket which fetched this resource, for presenting
43 // to inquisitive users. Can be "ipv4:port", "[ipv6]:port", or empty.
44 std::string socket_address;
39 }; 45 };
40 46
41 } // namespace net 47 } // namespace net
42 48
43 #endif // NET_FTP_FTP_RESPONSE_INFO_H_ 49 #endif // NET_FTP_FTP_RESPONSE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698