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

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

Issue 2005753004: Record the number of freshness periods since a stale HttpCache entry was last used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 7 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 | « no previous file | 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 std::unique_ptr<PartialData> partial_; // We are dealing with range requests. 477 std::unique_ptr<PartialData> partial_; // We are dealing with range requests.
478 UploadProgress final_upload_progress_; 478 UploadProgress final_upload_progress_;
479 CompletionCallback io_callback_; 479 CompletionCallback io_callback_;
480 480
481 // Members used to track data for histograms. 481 // Members used to track data for histograms.
482 TransactionPattern transaction_pattern_; 482 TransactionPattern transaction_pattern_;
483 ValidationCause validation_cause_; 483 ValidationCause validation_cause_;
484 base::TimeTicks entry_lock_waiting_since_; 484 base::TimeTicks entry_lock_waiting_since_;
485 base::TimeTicks first_cache_access_since_; 485 base::TimeTicks first_cache_access_since_;
486 base::TimeTicks send_request_since_; 486 base::TimeTicks send_request_since_;
487 base::Time open_entry_last_used_;
488 base::TimeDelta stale_entry_freshness_;
487 489
488 int64_t total_received_bytes_; 490 int64_t total_received_bytes_;
489 int64_t total_sent_bytes_; 491 int64_t total_sent_bytes_;
490 492
491 // Load timing information for the last network request, if any. Set in the 493 // Load timing information for the last network request, if any. Set in the
492 // 304 and 206 response cases, as the network transaction may be destroyed 494 // 304 and 206 response cases, as the network transaction may be destroyed
493 // before the caller requests load timing information. 495 // before the caller requests load timing information.
494 std::unique_ptr<LoadTimingInfo> old_network_trans_load_timing_; 496 std::unique_ptr<LoadTimingInfo> old_network_trans_load_timing_;
495 497
496 ConnectionAttempts old_connection_attempts_; 498 ConnectionAttempts old_connection_attempts_;
(...skipping 10 matching lines...) Expand all
507 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; 509 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_;
508 510
509 base::WeakPtrFactory<Transaction> weak_factory_; 511 base::WeakPtrFactory<Transaction> weak_factory_;
510 512
511 DISALLOW_COPY_AND_ASSIGN(Transaction); 513 DISALLOW_COPY_AND_ASSIGN(Transaction);
512 }; 514 };
513 515
514 } // namespace net 516 } // namespace net
515 517
516 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 518 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698