| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include "base/time.h" | 8 #include "base/time.h" |
| 9 #include "net/base/auth.h" | 9 #include "net/base/auth.h" |
| 10 #include "net/base/ssl_info.h" | 10 #include "net/base/ssl_info.h" |
| 11 #include "net/http/http_response_headers.h" | 11 #include "net/http/http_response_headers.h" |
| 12 #include "net/http/http_vary_data.h" | 12 #include "net/http/http_vary_data.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 class HttpResponseInfo { | 16 class HttpResponseInfo { |
| 17 public: | 17 public: |
| 18 // The time at which the request was made that resulted in this response. | 18 // The time at which the request was made that resulted in this response. |
| 19 // For cached responses, this time could be "far" in the past. | 19 // For cached responses, this time could be "far" in the past. |
| 20 Time request_time; | 20 base::Time request_time; |
| 21 | 21 |
| 22 // The time at which the response headers were received. For cached | 22 // The time at which the response headers were received. For cached |
| 23 // responses, this time could be "far" in the past. | 23 // responses, this time could be "far" in the past. |
| 24 Time response_time; | 24 base::Time response_time; |
| 25 | 25 |
| 26 // If the response headers indicate a 401 or 407 failure, then this structure | 26 // If the response headers indicate a 401 or 407 failure, then this structure |
| 27 // will contain additional information about the authentication challenge. | 27 // will contain additional information about the authentication challenge. |
| 28 scoped_refptr<AuthChallengeInfo> auth_challenge; | 28 scoped_refptr<AuthChallengeInfo> auth_challenge; |
| 29 | 29 |
| 30 // The SSL connection info (if HTTPS). | 30 // The SSL connection info (if HTTPS). |
| 31 SSLInfo ssl_info; | 31 SSLInfo ssl_info; |
| 32 | 32 |
| 33 // The parsed response headers and status line. | 33 // The parsed response headers and status line. |
| 34 scoped_refptr<HttpResponseHeaders> headers; | 34 scoped_refptr<HttpResponseHeaders> headers; |
| 35 | 35 |
| 36 // The "Vary" header data for this response. | 36 // The "Vary" header data for this response. |
| 37 HttpVaryData vary_data; | 37 HttpVaryData vary_data; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace net | 40 } // namespace net |
| 41 | 41 |
| 42 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H__ | 42 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H__ |
| 43 | 43 |
| OLD | NEW |