| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |