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

Side by Side Diff: net/http/http_cache_transaction.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/base/load_flags_list.h ('k') | net/http/http_cache_transaction.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 // 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 331
332 // Called to restart a network transaction with a client certificate. 332 // Called to restart a network transaction with a client certificate.
333 // Returns network error code. 333 // Returns network error code.
334 int RestartNetworkRequestWithCertificate(X509Certificate* client_cert, 334 int RestartNetworkRequestWithCertificate(X509Certificate* client_cert,
335 SSLPrivateKey* client_private_key); 335 SSLPrivateKey* client_private_key);
336 336
337 // Called to restart a network transaction with authentication credentials. 337 // Called to restart a network transaction with authentication credentials.
338 // Returns network error code. 338 // Returns network error code.
339 int RestartNetworkRequestWithAuth(const AuthCredentials& credentials); 339 int RestartNetworkRequestWithAuth(const AuthCredentials& credentials);
340 340
341 // Called to determine if we need to validate the cache entry before using it, 341 // Called to determine if we need to validate the cache entry before using it.
342 // and whether the validation should be synchronous or asynchronous. 342 bool RequiresValidation();
343 ValidationType RequiresValidation();
344 343
345 // Called to make the request conditional (to ask the server if the cached 344 // Called to make the request conditional (to ask the server if the cached
346 // copy is valid). Returns true if able to make the request conditional. 345 // copy is valid). Returns true if able to make the request conditional.
347 bool ConditionalizeRequest(); 346 bool ConditionalizeRequest();
348 347
349 // Makes sure that a 206 response is expected. Returns true on success. 348 // Makes sure that a 206 response is expected. Returns true on success.
350 // On success, handling_206_ will be set to true if we are processing a 349 // On success, handling_206_ will be set to true if we are processing a
351 // partial entry. 350 // partial entry.
352 bool ValidatePartialResponse(); 351 bool ValidatePartialResponse();
353 352
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 bool in_do_loop_; 515 bool in_do_loop_;
517 516
518 base::WeakPtrFactory<Transaction> weak_factory_; 517 base::WeakPtrFactory<Transaction> weak_factory_;
519 518
520 DISALLOW_COPY_AND_ASSIGN(Transaction); 519 DISALLOW_COPY_AND_ASSIGN(Transaction);
521 }; 520 };
522 521
523 } // namespace net 522 } // namespace net
524 523
525 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 524 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/base/load_flags_list.h ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698