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

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

Issue 2763393002: Remove stale-while-revalidate from net (Closed)
Patch Set: fixes Created 3 years, 9 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_response_headers_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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 bool was_fetched_via_proxy; 136 bool was_fetched_via_proxy;
137 ProxyServer proxy_server; 137 ProxyServer proxy_server;
138 138
139 // Whether the request use http proxy or server authentication. 139 // Whether the request use http proxy or server authentication.
140 bool did_use_http_auth; 140 bool did_use_http_auth;
141 141
142 // True if the resource was originally fetched for a prefetch and has not been 142 // True if the resource was originally fetched for a prefetch and has not been
143 // used since. 143 // used since.
144 bool unused_since_prefetch; 144 bool unused_since_prefetch;
145 145
146 // True if this resource is stale and requires async revalidation.
147 // This value is not persisted by Persist(); it is only ever set when the
148 // response is retrieved from the cache.
149 bool async_revalidation_required;
150
151 // Remote address of the socket which fetched this resource. 146 // Remote address of the socket which fetched this resource.
152 // 147 //
153 // NOTE: If the response was served from the cache (was_cached is true), 148 // NOTE: If the response was served from the cache (was_cached is true),
154 // the socket address will be set to the address that the content came from 149 // the socket address will be set to the address that the content came from
155 // originally. This is true even if the response was re-validated using a 150 // originally. This is true even if the response was re-validated using a
156 // different remote address, or if some of the content came from a byte-range 151 // different remote address, or if some of the content came from a byte-range
157 // request to a different address. 152 // request to a different address.
158 HostPortPair socket_address; 153 HostPortPair socket_address;
159 154
160 // Protocol negotiated with the server. 155 // Protocol negotiated with the server.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 189
195 // Any metadata asociated with this resource's cached data. 190 // Any metadata asociated with this resource's cached data.
196 scoped_refptr<IOBufferWithSize> metadata; 191 scoped_refptr<IOBufferWithSize> metadata;
197 192
198 static std::string ConnectionInfoToString(ConnectionInfo connection_info); 193 static std::string ConnectionInfoToString(ConnectionInfo connection_info);
199 }; 194 };
200 195
201 } // namespace net 196 } // namespace net
202 197
203 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ 198 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_
OLDNEW
« no previous file with comments | « net/http/http_response_headers_unittest.cc ('k') | net/http/http_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698