| 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" | |
| 12 #include "net/http/http_vary_data.h" | 11 #include "net/http/http_vary_data.h" |
| 13 | 12 |
| 14 namespace net { | 13 namespace net { |
| 15 | 14 |
| 15 class HttpResponseHeaders; |
| 16 |
| 16 class HttpResponseInfo { | 17 class HttpResponseInfo { |
| 17 public: | 18 public: |
| 19 HttpResponseInfo(); |
| 20 ~HttpResponseInfo(); |
| 21 |
| 18 // The following is only defined if the request_time memmber is set. | 22 // The following is only defined if the request_time memmber is set. |
| 19 // If this response was resurrected from cache, then this bool is set, and | 23 // If this response was resurrected from cache, then this bool is set, and |
| 20 // request_time may corresponds to a time "far" in the past. Note that | 24 // request_time may corresponds to a time "far" in the past. Note that |
| 21 // stale content (perhaps un-cacheable) may be fetched from cache subject to | 25 // stale content (perhaps un-cacheable) may be fetched from cache subject to |
| 22 // the load flags specified on the request info. For example, this is done | 26 // the load flags specified on the request info. For example, this is done |
| 23 // when a user presses the back button to re-render pages, or at startup, when | 27 // when a user presses the back button to re-render pages, or at startup, when |
| 24 // reloading previously visited pages (without going over the network). | 28 // reloading previously visited pages (without going over the network). |
| 25 bool was_cached; | 29 bool was_cached; |
| 26 | 30 |
| 27 // The time at which the request was made that resulted in this response. | 31 // The time at which the request was made that resulted in this response. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 41 | 45 |
| 42 // The parsed response headers and status line. | 46 // The parsed response headers and status line. |
| 43 scoped_refptr<HttpResponseHeaders> headers; | 47 scoped_refptr<HttpResponseHeaders> headers; |
| 44 | 48 |
| 45 // The "Vary" header data for this response. | 49 // The "Vary" header data for this response. |
| 46 HttpVaryData vary_data; | 50 HttpVaryData vary_data; |
| 47 }; | 51 }; |
| 48 | 52 |
| 49 } // namespace net | 53 } // namespace net |
| 50 | 54 |
| 51 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H__ | 55 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| 52 | |
| OLD | NEW |