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

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: Renumber LOAD_SUPPORT_ASYNC_REVALIDATION. Created 5 years, 6 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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool was_fetched_via_proxy; 97 bool was_fetched_via_proxy;
98 HostPortPair proxy_server; 98 HostPortPair proxy_server;
99 99
100 // Whether the request use http proxy or server authentication. 100 // Whether the request use http proxy or server authentication.
101 bool did_use_http_auth; 101 bool did_use_http_auth;
102 102
103 // True if the resource was originally fetched for a prefetch and has not been 103 // True if the resource was originally fetched for a prefetch and has not been
104 // used since. 104 // used since.
105 bool unused_since_prefetch; 105 bool unused_since_prefetch;
106 106
107 // True if this resource is stale and requires async revalidation.
108 // This value is not persisted by Persist(); it is only ever set when the
109 // response is retrieved from the cache.
110 bool async_revalidation_required;
111
107 // Remote address of the socket which fetched this resource. 112 // Remote address of the socket which fetched this resource.
108 // 113 //
109 // NOTE: If the response was served from the cache (was_cached is true), 114 // NOTE: If the response was served from the cache (was_cached is true),
110 // the socket address will be set to the address that the content came from 115 // the socket address will be set to the address that the content came from
111 // originally. This is true even if the response was re-validated using a 116 // originally. This is true even if the response was re-validated using a
112 // different remote address, or if some of the content came from a byte-range 117 // different remote address, or if some of the content came from a byte-range
113 // request to a different address. 118 // request to a different address.
114 HostPortPair socket_address; 119 HostPortPair socket_address;
115 120
116 // Protocol negotiated with the server. 121 // Protocol negotiated with the server.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 scoped_refptr<IOBufferWithSize> metadata; 155 scoped_refptr<IOBufferWithSize> metadata;
151 156
152 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); 157 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto);
153 158
154 static std::string ConnectionInfoToString(ConnectionInfo connection_info); 159 static std::string ConnectionInfoToString(ConnectionInfo connection_info);
155 }; 160 };
156 161
157 } // namespace net 162 } // namespace net
158 163
159 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ 164 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698