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

Side by Side Diff: net/http/http_response_info.h

Issue 1039263002: //net changes for stale-while-revalidate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s-w-r-remove-old-impl
Patch Set: Changes suggested by rvargas. Created 5 years, 4 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
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/http/http_response_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool was_fetched_via_proxy; 99 bool was_fetched_via_proxy;
100 HostPortPair proxy_server; 100 HostPortPair proxy_server;
101 101
102 // Whether the request use http proxy or server authentication. 102 // Whether the request use http proxy or server authentication.
103 bool did_use_http_auth; 103 bool did_use_http_auth;
104 104
105 // True if the resource was originally fetched for a prefetch and has not been 105 // True if the resource was originally fetched for a prefetch and has not been
106 // used since. 106 // used since.
107 bool unused_since_prefetch; 107 bool unused_since_prefetch;
108 108
109 // True if this resource is stale and requires async revalidation.
110 // This value is not persisted by Persist(); it is only ever set when the
111 // response is retrieved from the cache.
112 bool async_revalidation_required;
113
109 // Remote address of the socket which fetched this resource. 114 // Remote address of the socket which fetched this resource.
110 // 115 //
111 // NOTE: If the response was served from the cache (was_cached is true), 116 // NOTE: If the response was served from the cache (was_cached is true),
112 // the socket address will be set to the address that the content came from 117 // the socket address will be set to the address that the content came from
113 // originally. This is true even if the response was re-validated using a 118 // originally. This is true even if the response was re-validated using a
114 // different remote address, or if some of the content came from a byte-range 119 // different remote address, or if some of the content came from a byte-range
115 // request to a different address. 120 // request to a different address.
116 HostPortPair socket_address; 121 HostPortPair socket_address;
117 122
118 // Protocol negotiated with the server. 123 // Protocol negotiated with the server.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 scoped_refptr<IOBufferWithSize> metadata; 159 scoped_refptr<IOBufferWithSize> metadata;
155 160
156 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); 161 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto);
157 162
158 static std::string ConnectionInfoToString(ConnectionInfo connection_info); 163 static std::string ConnectionInfoToString(ConnectionInfo connection_info);
159 }; 164 };
160 165
161 } // namespace net 166 } // namespace net
162 167
163 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ 168 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_
OLDNEW
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/http/http_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698