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

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

Issue 793823002: Let prefetched resources skip cache revalidation once for a short duration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test nits Created 5 years, 11 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) 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 // This file declares HttpCache::Transaction, a private class of HttpCache so 5 // This file declares HttpCache::Transaction, a private class of HttpCache so
6 // it should only be included by http_cache.cc 6 // it should only be included by http_cache.cc
7 7
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 STATE_UPDATE_CACHED_RESPONSE, 174 STATE_UPDATE_CACHED_RESPONSE,
175 STATE_UPDATE_CACHED_RESPONSE_COMPLETE, 175 STATE_UPDATE_CACHED_RESPONSE_COMPLETE,
176 STATE_OVERWRITE_CACHED_RESPONSE, 176 STATE_OVERWRITE_CACHED_RESPONSE,
177 STATE_TRUNCATE_CACHED_DATA, 177 STATE_TRUNCATE_CACHED_DATA,
178 STATE_TRUNCATE_CACHED_DATA_COMPLETE, 178 STATE_TRUNCATE_CACHED_DATA_COMPLETE,
179 STATE_TRUNCATE_CACHED_METADATA, 179 STATE_TRUNCATE_CACHED_METADATA,
180 STATE_TRUNCATE_CACHED_METADATA_COMPLETE, 180 STATE_TRUNCATE_CACHED_METADATA_COMPLETE,
181 STATE_PARTIAL_HEADERS_RECEIVED, 181 STATE_PARTIAL_HEADERS_RECEIVED,
182 STATE_CACHE_READ_RESPONSE, 182 STATE_CACHE_READ_RESPONSE,
183 STATE_CACHE_READ_RESPONSE_COMPLETE, 183 STATE_CACHE_READ_RESPONSE_COMPLETE,
184 STATE_CACHE_DISPATCH_VALIDATION,
185 STATE_TOGGLE_UNUSED_SINCE_PREFETCH,
186 STATE_TOGGLE_UNUSED_SINCE_PREFETCH_COMPLETE,
184 STATE_CACHE_WRITE_RESPONSE, 187 STATE_CACHE_WRITE_RESPONSE,
185 STATE_CACHE_WRITE_TRUNCATED_RESPONSE, 188 STATE_CACHE_WRITE_TRUNCATED_RESPONSE,
186 STATE_CACHE_WRITE_RESPONSE_COMPLETE, 189 STATE_CACHE_WRITE_RESPONSE_COMPLETE,
187 STATE_CACHE_READ_METADATA, 190 STATE_CACHE_READ_METADATA,
188 STATE_CACHE_READ_METADATA_COMPLETE, 191 STATE_CACHE_READ_METADATA_COMPLETE,
189 STATE_CACHE_QUERY_DATA, 192 STATE_CACHE_QUERY_DATA,
190 STATE_CACHE_QUERY_DATA_COMPLETE, 193 STATE_CACHE_QUERY_DATA_COMPLETE,
191 STATE_CACHE_READ_DATA, 194 STATE_CACHE_READ_DATA,
192 STATE_CACHE_READ_DATA_COMPLETE, 195 STATE_CACHE_READ_DATA_COMPLETE,
193 STATE_CACHE_WRITE_DATA, 196 STATE_CACHE_WRITE_DATA,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 int DoUpdateCachedResponse(); 248 int DoUpdateCachedResponse();
246 int DoUpdateCachedResponseComplete(int result); 249 int DoUpdateCachedResponseComplete(int result);
247 int DoOverwriteCachedResponse(); 250 int DoOverwriteCachedResponse();
248 int DoTruncateCachedData(); 251 int DoTruncateCachedData();
249 int DoTruncateCachedDataComplete(int result); 252 int DoTruncateCachedDataComplete(int result);
250 int DoTruncateCachedMetadata(); 253 int DoTruncateCachedMetadata();
251 int DoTruncateCachedMetadataComplete(int result); 254 int DoTruncateCachedMetadataComplete(int result);
252 int DoPartialHeadersReceived(); 255 int DoPartialHeadersReceived();
253 int DoCacheReadResponse(); 256 int DoCacheReadResponse();
254 int DoCacheReadResponseComplete(int result); 257 int DoCacheReadResponseComplete(int result);
258 int DoCacheDispatchValidation();
259 int DoCacheToggleUnusedSincePrefetch();
260 int DoCacheToggleUnusedSincePrefetchComplete(int result);
255 int DoCacheWriteResponse(); 261 int DoCacheWriteResponse();
256 int DoCacheWriteTruncatedResponse(); 262 int DoCacheWriteTruncatedResponse();
257 int DoCacheWriteResponseComplete(int result); 263 int DoCacheWriteResponseComplete(int result);
258 int DoCacheReadMetadata(); 264 int DoCacheReadMetadata();
259 int DoCacheReadMetadataComplete(int result); 265 int DoCacheReadMetadataComplete(int result);
260 int DoCacheQueryData(); 266 int DoCacheQueryData();
261 int DoCacheQueryDataComplete(int result); 267 int DoCacheQueryDataComplete(int result);
262 int DoCacheReadData(); 268 int DoCacheReadData();
263 int DoCacheReadDataComplete(int result); 269 int DoCacheReadDataComplete(int result);
264 int DoCacheWriteData(int num_bytes); 270 int DoCacheWriteData(int num_bytes);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; 471 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_;
466 472
467 base::WeakPtrFactory<Transaction> weak_factory_; 473 base::WeakPtrFactory<Transaction> weak_factory_;
468 474
469 DISALLOW_COPY_AND_ASSIGN(Transaction); 475 DISALLOW_COPY_AND_ASSIGN(Transaction);
470 }; 476 };
471 477
472 } // namespace net 478 } // namespace net
473 479
474 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 480 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698