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

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

Issue 2763393002: Remove stale-while-revalidate from net (Closed)
Patch Set: fixes Created 3 years, 8 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_info.h ('k') | net/http/http_response_info_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "net/http/http_response_info.h" 5 #include "net/http/http_response_info.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/pickle.h" 8 #include "base/pickle.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "net/base/auth.h" 10 #include "net/base/auth.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 HttpResponseInfo::HttpResponseInfo() 123 HttpResponseInfo::HttpResponseInfo()
124 : was_cached(false), 124 : was_cached(false),
125 cache_entry_status(CacheEntryStatus::ENTRY_UNDEFINED), 125 cache_entry_status(CacheEntryStatus::ENTRY_UNDEFINED),
126 server_data_unavailable(false), 126 server_data_unavailable(false),
127 network_accessed(false), 127 network_accessed(false),
128 was_fetched_via_spdy(false), 128 was_fetched_via_spdy(false),
129 was_alpn_negotiated(false), 129 was_alpn_negotiated(false),
130 was_fetched_via_proxy(false), 130 was_fetched_via_proxy(false),
131 did_use_http_auth(false), 131 did_use_http_auth(false),
132 unused_since_prefetch(false), 132 unused_since_prefetch(false),
133 async_revalidation_required(false),
134 connection_info(CONNECTION_INFO_UNKNOWN) {} 133 connection_info(CONNECTION_INFO_UNKNOWN) {}
135 134
136 HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs) 135 HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs)
137 : was_cached(rhs.was_cached), 136 : was_cached(rhs.was_cached),
138 cache_entry_status(rhs.cache_entry_status), 137 cache_entry_status(rhs.cache_entry_status),
139 server_data_unavailable(rhs.server_data_unavailable), 138 server_data_unavailable(rhs.server_data_unavailable),
140 network_accessed(rhs.network_accessed), 139 network_accessed(rhs.network_accessed),
141 was_fetched_via_spdy(rhs.was_fetched_via_spdy), 140 was_fetched_via_spdy(rhs.was_fetched_via_spdy),
142 was_alpn_negotiated(rhs.was_alpn_negotiated), 141 was_alpn_negotiated(rhs.was_alpn_negotiated),
143 was_fetched_via_proxy(rhs.was_fetched_via_proxy), 142 was_fetched_via_proxy(rhs.was_fetched_via_proxy),
144 proxy_server(rhs.proxy_server), 143 proxy_server(rhs.proxy_server),
145 did_use_http_auth(rhs.did_use_http_auth), 144 did_use_http_auth(rhs.did_use_http_auth),
146 unused_since_prefetch(rhs.unused_since_prefetch), 145 unused_since_prefetch(rhs.unused_since_prefetch),
147 async_revalidation_required(rhs.async_revalidation_required),
148 socket_address(rhs.socket_address), 146 socket_address(rhs.socket_address),
149 alpn_negotiated_protocol(rhs.alpn_negotiated_protocol), 147 alpn_negotiated_protocol(rhs.alpn_negotiated_protocol),
150 connection_info(rhs.connection_info), 148 connection_info(rhs.connection_info),
151 request_time(rhs.request_time), 149 request_time(rhs.request_time),
152 response_time(rhs.response_time), 150 response_time(rhs.response_time),
153 auth_challenge(rhs.auth_challenge), 151 auth_challenge(rhs.auth_challenge),
154 cert_request_info(rhs.cert_request_info), 152 cert_request_info(rhs.cert_request_info),
155 ssl_info(rhs.ssl_info), 153 ssl_info(rhs.ssl_info),
156 headers(rhs.headers), 154 headers(rhs.headers),
157 vary_data(rhs.vary_data), 155 vary_data(rhs.vary_data),
158 metadata(rhs.metadata) {} 156 metadata(rhs.metadata) {}
159 157
160 HttpResponseInfo::~HttpResponseInfo() { 158 HttpResponseInfo::~HttpResponseInfo() {
161 } 159 }
162 160
163 HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) { 161 HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) {
164 was_cached = rhs.was_cached; 162 was_cached = rhs.was_cached;
165 cache_entry_status = rhs.cache_entry_status; 163 cache_entry_status = rhs.cache_entry_status;
166 server_data_unavailable = rhs.server_data_unavailable; 164 server_data_unavailable = rhs.server_data_unavailable;
167 network_accessed = rhs.network_accessed; 165 network_accessed = rhs.network_accessed;
168 was_fetched_via_spdy = rhs.was_fetched_via_spdy; 166 was_fetched_via_spdy = rhs.was_fetched_via_spdy;
169 proxy_server = rhs.proxy_server; 167 proxy_server = rhs.proxy_server;
170 was_alpn_negotiated = rhs.was_alpn_negotiated; 168 was_alpn_negotiated = rhs.was_alpn_negotiated;
171 was_fetched_via_proxy = rhs.was_fetched_via_proxy; 169 was_fetched_via_proxy = rhs.was_fetched_via_proxy;
172 did_use_http_auth = rhs.did_use_http_auth; 170 did_use_http_auth = rhs.did_use_http_auth;
173 unused_since_prefetch = rhs.unused_since_prefetch; 171 unused_since_prefetch = rhs.unused_since_prefetch;
174 async_revalidation_required = rhs.async_revalidation_required;
175 socket_address = rhs.socket_address; 172 socket_address = rhs.socket_address;
176 alpn_negotiated_protocol = rhs.alpn_negotiated_protocol; 173 alpn_negotiated_protocol = rhs.alpn_negotiated_protocol;
177 connection_info = rhs.connection_info; 174 connection_info = rhs.connection_info;
178 request_time = rhs.request_time; 175 request_time = rhs.request_time;
179 response_time = rhs.response_time; 176 response_time = rhs.response_time;
180 auth_challenge = rhs.auth_challenge; 177 auth_challenge = rhs.auth_challenge;
181 cert_request_info = rhs.cert_request_info; 178 cert_request_info = rhs.cert_request_info;
182 ssl_info = rhs.ssl_info; 179 ssl_info = rhs.ssl_info;
183 headers = rhs.headers; 180 headers = rhs.headers;
184 vary_data = rhs.vary_data; 181 vary_data = rhs.vary_data;
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 case CONNECTION_INFO_HTTP1_0: 488 case CONNECTION_INFO_HTTP1_0:
492 return "http/1.0"; 489 return "http/1.0";
493 case NUM_OF_CONNECTION_INFOS: 490 case NUM_OF_CONNECTION_INFOS:
494 break; 491 break;
495 } 492 }
496 NOTREACHED(); 493 NOTREACHED();
497 return ""; 494 return "";
498 } 495 }
499 496
500 } // namespace net 497 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_response_info.h ('k') | net/http/http_response_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698