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