| 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 bool vary_mismatch_; // The request doesn't match the stored vary data. | 431 bool vary_mismatch_; // The request doesn't match the stored vary data. |
| 432 bool couldnt_conditionalize_request_; | 432 bool couldnt_conditionalize_request_; |
| 433 bool bypass_lock_for_test_; // A test is exercising the cache lock. | 433 bool bypass_lock_for_test_; // A test is exercising the cache lock. |
| 434 scoped_refptr<IOBuffer> read_buf_; | 434 scoped_refptr<IOBuffer> read_buf_; |
| 435 int io_buf_len_; | 435 int io_buf_len_; |
| 436 int read_offset_; | 436 int read_offset_; |
| 437 int effective_load_flags_; | 437 int effective_load_flags_; |
| 438 int write_len_; | 438 int write_len_; |
| 439 scoped_ptr<PartialData> partial_; // We are dealing with range requests. | 439 scoped_ptr<PartialData> partial_; // We are dealing with range requests. |
| 440 UploadProgress final_upload_progress_; | 440 UploadProgress final_upload_progress_; |
| 441 base::WeakPtrFactory<Transaction> weak_factory_; | |
| 442 CompletionCallback io_callback_; | 441 CompletionCallback io_callback_; |
| 443 | 442 |
| 444 // Members used to track data for histograms. | 443 // Members used to track data for histograms. |
| 445 TransactionPattern transaction_pattern_; | 444 TransactionPattern transaction_pattern_; |
| 446 base::TimeTicks entry_lock_waiting_since_; | 445 base::TimeTicks entry_lock_waiting_since_; |
| 447 base::TimeTicks first_cache_access_since_; | 446 base::TimeTicks first_cache_access_since_; |
| 448 base::TimeTicks send_request_since_; | 447 base::TimeTicks send_request_since_; |
| 449 | 448 |
| 450 int64 total_received_bytes_; | 449 int64 total_received_bytes_; |
| 451 | 450 |
| 452 // Load timing information for the last network request, if any. Set in the | 451 // Load timing information for the last network request, if any. Set in the |
| 453 // 304 and 206 response cases, as the network transaction may be destroyed | 452 // 304 and 206 response cases, as the network transaction may be destroyed |
| 454 // before the caller requests load timing information. | 453 // before the caller requests load timing information. |
| 455 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_; | 454 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_; |
| 456 | 455 |
| 457 // The helper object to use to create WebSocketHandshakeStreamBase | 456 // The helper object to use to create WebSocketHandshakeStreamBase |
| 458 // objects. Only relevant when establishing a WebSocket connection. | 457 // objects. Only relevant when establishing a WebSocket connection. |
| 459 // This is passed to the underlying network transaction. It is stored here in | 458 // This is passed to the underlying network transaction. It is stored here in |
| 460 // case the transaction does not exist yet. | 459 // case the transaction does not exist yet. |
| 461 WebSocketHandshakeStreamBase::CreateHelper* | 460 WebSocketHandshakeStreamBase::CreateHelper* |
| 462 websocket_handshake_stream_base_create_helper_; | 461 websocket_handshake_stream_base_create_helper_; |
| 463 | 462 |
| 464 BeforeNetworkStartCallback before_network_start_callback_; | 463 BeforeNetworkStartCallback before_network_start_callback_; |
| 465 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; | 464 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
| 466 | 465 |
| 466 base::WeakPtrFactory<Transaction> weak_factory_; |
| 467 |
| 467 DISALLOW_COPY_AND_ASSIGN(Transaction); | 468 DISALLOW_COPY_AND_ASSIGN(Transaction); |
| 468 }; | 469 }; |
| 469 | 470 |
| 470 } // namespace net | 471 } // namespace net |
| 471 | 472 |
| 472 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 473 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
| OLD | NEW |