Chromium Code Reviews| 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 425 bool bypass_lock_for_test_; // A test is exercising the cache lock. | 425 bool bypass_lock_for_test_; // A test is exercising the cache lock. |
| 426 scoped_refptr<IOBuffer> read_buf_; | 426 scoped_refptr<IOBuffer> read_buf_; |
| 427 int io_buf_len_; | 427 int io_buf_len_; |
| 428 int read_offset_; | 428 int read_offset_; |
| 429 int effective_load_flags_; | 429 int effective_load_flags_; |
| 430 int write_len_; | 430 int write_len_; |
| 431 scoped_ptr<PartialData> partial_; // We are dealing with range requests. | 431 scoped_ptr<PartialData> partial_; // We are dealing with range requests. |
| 432 UploadProgress final_upload_progress_; | 432 UploadProgress final_upload_progress_; |
| 433 base::WeakPtrFactory<Transaction> weak_factory_; | 433 base::WeakPtrFactory<Transaction> weak_factory_; |
| 434 CompletionCallback io_callback_; | 434 CompletionCallback io_callback_; |
| 435 DiskBasedCertCache::GetCallback cert_read_io_callback_; | |
| 436 DiskBasedCertCache::SetCallback cert_write_io_callback_; | |
|
Ryan Sleevi
2014/06/26 19:56:02
You don't need to store these callbacks as member
| |
| 435 | 437 |
| 436 // Members used to track data for histograms. | 438 // Members used to track data for histograms. |
| 437 TransactionPattern transaction_pattern_; | 439 TransactionPattern transaction_pattern_; |
| 438 base::TimeTicks entry_lock_waiting_since_; | 440 base::TimeTicks entry_lock_waiting_since_; |
| 439 base::TimeTicks first_cache_access_since_; | 441 base::TimeTicks first_cache_access_since_; |
| 440 base::TimeTicks send_request_since_; | 442 base::TimeTicks send_request_since_; |
| 441 | 443 |
| 442 int64 total_received_bytes_; | 444 int64 total_received_bytes_; |
| 443 | 445 |
| 444 // Load timing information for the last network request, if any. Set in the | 446 // Load timing information for the last network request, if any. Set in the |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 455 | 457 |
| 456 BeforeNetworkStartCallback before_network_start_callback_; | 458 BeforeNetworkStartCallback before_network_start_callback_; |
| 457 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; | 459 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
| 458 | 460 |
| 459 DISALLOW_COPY_AND_ASSIGN(Transaction); | 461 DISALLOW_COPY_AND_ASSIGN(Transaction); |
| 460 }; | 462 }; |
| 461 | 463 |
| 462 } // namespace net | 464 } // namespace net |
| 463 | 465 |
| 464 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 466 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
| OLD | NEW |