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

Side by Side Diff: net/http/http_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: Use HostPortPair everywhere 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_HTTP_HTTP_RESPONSE_INFO_H_ 5 #ifndef NET_HTTP_HTTP_RESPONSE_INFO_H_
6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_ 6 #define NET_HTTP_HTTP_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 #include "net/base/ssl_info.h" 11 #include "net/base/ssl_info.h"
11 #include "net/http/http_vary_data.h" 12 #include "net/http/http_vary_data.h"
12 13
13 class Pickle; 14 class Pickle;
14 15
15 namespace net { 16 namespace net {
16 17
17 class AuthChallengeInfo; 18 class AuthChallengeInfo;
18 class HttpResponseHeaders; 19 class HttpResponseHeaders;
19 class IOBufferWithSize; 20 class IOBufferWithSize;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 54
54 // True if response could use alternate protocol. However, browser 55 // True if response could use alternate protocol. However, browser
55 // will ingore the alternate protocol if spdy is not enabled. 56 // will ingore the alternate protocol if spdy is not enabled.
56 bool was_alternate_protocol_available; 57 bool was_alternate_protocol_available;
57 58
58 // True if the request was fetched via an explicit proxy. The proxy could 59 // True if the request was fetched via an explicit proxy. The proxy could
59 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a 60 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a
60 // transparent proxy may have been involved. 61 // transparent proxy may have been involved.
61 bool was_fetched_via_proxy; 62 bool was_fetched_via_proxy;
62 63
64 // Remote address of the socket which fetched this resource.
65 //
66 // NOTE: If the response was served from the cache (was_cached is true),
67 // the socket address will be set to the address that the content came from
68 // originally. This is true even if the response was re-validated using a
69 // different remote address, or if some of the content came from a byte-range
70 // request to a different address.
71 HostPortPair socket_address;
72
63 // The time at which the request was made that resulted in this response. 73 // The time at which the request was made that resulted in this response.
64 // For cached responses, this is the last time the cache entry was validated. 74 // For cached responses, this is the last time the cache entry was validated.
65 base::Time request_time; 75 base::Time request_time;
66 76
67 // The time at which the response headers were received. For cached 77 // The time at which the response headers were received. For cached
68 // this is the last time the cache entry was validated. 78 // this is the last time the cache entry was validated.
69 base::Time response_time; 79 base::Time response_time;
70 80
71 // If the response headers indicate a 401 or 407 failure, then this structure 81 // If the response headers indicate a 401 or 407 failure, then this structure
72 // will contain additional information about the authentication challenge. 82 // will contain additional information about the authentication challenge.
(...skipping 14 matching lines...) Expand all
87 // The "Vary" header data for this response. 97 // The "Vary" header data for this response.
88 HttpVaryData vary_data; 98 HttpVaryData vary_data;
89 99
90 // Any metadata asociated with this resource's cached data. 100 // Any metadata asociated with this resource's cached data.
91 scoped_refptr<IOBufferWithSize> metadata; 101 scoped_refptr<IOBufferWithSize> metadata;
92 }; 102 };
93 103
94 } // namespace net 104 } // namespace net
95 105
96 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ 106 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698